diff options
author | Kumar Gala <galak@kernel.crashing.org> | 2008-08-26 23:14:14 -0500 |
---|---|---|
committer | Kumar Gala <galak@kernel.crashing.org> | 2008-08-27 11:43:51 -0500 |
commit | a947e4c7eb15cea1d9fb633955c516aab5ad35dd (patch) | |
tree | c5bafc6d590130a8fe07ecdf9242bc43aef8a73a /board/atum8548/atum8548.c | |
parent | be0bd8234b9777ecd63c4c686f72af070d886517 (diff) | |
download | u-boot-imx-a947e4c7eb15cea1d9fb633955c516aab5ad35dd.zip u-boot-imx-a947e4c7eb15cea1d9fb633955c516aab5ad35dd.tar.gz u-boot-imx-a947e4c7eb15cea1d9fb633955c516aab5ad35dd.tar.bz2 |
FSL DDR: Convert atum8548 to new DDR code.
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'board/atum8548/atum8548.c')
-rw-r--r-- | board/atum8548/atum8548.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/board/atum8548/atum8548.c b/board/atum8548/atum8548.c index 34f4599..337cf31 100644 --- a/board/atum8548/atum8548.c +++ b/board/atum8548/atum8548.c @@ -29,7 +29,9 @@ #include <asm/processor.h> #include <asm/immap_85xx.h> #include <asm/immap_fsl_pci.h> +#include <asm/fsl_ddr_sdram.h> #include <asm/io.h> +#include <asm/mmu.h> #include <spd_sdram.h> #include <miiphy.h> #include <libfdt.h> @@ -106,8 +108,10 @@ initdram(int board_type) puts("Initializing\n"); #if defined(CONFIG_SPD_EEPROM) - puts("spd_sdram\n"); - dram_size = spd_sdram (); + puts("fsl_ddr_sdram\n"); + dram_size = fsl_ddr_sdram(); + dram_size = setup_ddr_tlbs(dram_size / 0x100000); + dram_size *= 0x100000; #else puts("fixed_sdram\n"); dram_size = fixed_sdram (); |