diff options
author | Kumar Gala <galak@kernel.crashing.org> | 2008-08-27 01:03:42 -0500 |
---|---|---|
committer | Kumar Gala <galak@kernel.crashing.org> | 2008-08-27 11:43:52 -0500 |
commit | c360d9b970fbb9c13744c355879671165bbb9b9e (patch) | |
tree | 8b421f634303b379282bf63e99741d6d1fa5e101 /board/stxgp3/stxgp3.c | |
parent | 8e55313b7ae12352a343f9b9962e662dbd897187 (diff) | |
download | u-boot-imx-c360d9b970fbb9c13744c355879671165bbb9b9e.zip u-boot-imx-c360d9b970fbb9c13744c355879671165bbb9b9e.tar.gz u-boot-imx-c360d9b970fbb9c13744c355879671165bbb9b9e.tar.bz2 |
FSL DDR: Convert STXGP3 to new DDR code.
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'board/stxgp3/stxgp3.c')
-rw-r--r-- | board/stxgp3/stxgp3.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/board/stxgp3/stxgp3.c b/board/stxgp3/stxgp3.c index 218e805..c80f1b3 100644 --- a/board/stxgp3/stxgp3.c +++ b/board/stxgp3/stxgp3.c @@ -32,7 +32,9 @@ #include <common.h> #include <pci.h> #include <asm/processor.h> +#include <asm/mmu.h> #include <asm/immap_85xx.h> +#include <asm/fsl_ddr_sdram.h> #include <ioports.h> #include <asm/io.h> #include <spd_sdram.h> @@ -292,7 +294,9 @@ initdram (int board_type) } #endif - dram_size = spd_sdram (); + dram_size = fsl_ddr_sdram(); + dram_size = setup_ddr_tlbs(dram_size / 0x100000); + dram_size *= 0x100000; #if defined(CONFIG_DDR_ECC) /* Initialize and enable DDR ECC. |