diff options
author | Jon Loeliger <jdl@freescale.com> | 2008-03-17 15:48:18 -0500 |
---|---|---|
committer | Kumar Gala <galak@kernel.crashing.org> | 2008-08-27 11:43:50 -0500 |
commit | aa11d85cf318b961e029fe50d68ca47d004bce93 (patch) | |
tree | 30fb129452749c5a8ea5e817d8fd125986b85dc9 /board/freescale/mpc8541cds/mpc8541cds.c | |
parent | 2b40edb10d81da7bba724edbccd7f53777112579 (diff) | |
download | u-boot-imx-aa11d85cf318b961e029fe50d68ca47d004bce93.zip u-boot-imx-aa11d85cf318b961e029fe50d68ca47d004bce93.tar.gz u-boot-imx-aa11d85cf318b961e029fe50d68ca47d004bce93.tar.bz2 |
FSL DDR: Convert MPC8541CDS to new DDR code.
Signed-off-by: Jon Loeliger <jdl@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'board/freescale/mpc8541cds/mpc8541cds.c')
-rw-r--r-- | board/freescale/mpc8541cds/mpc8541cds.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/board/freescale/mpc8541cds/mpc8541cds.c b/board/freescale/mpc8541cds/mpc8541cds.c index 3669ba9..de3a791 100644 --- a/board/freescale/mpc8541cds/mpc8541cds.c +++ b/board/freescale/mpc8541cds/mpc8541cds.c @@ -25,7 +25,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 <spd_sdram.h> #include <libfdt.h> @@ -263,7 +265,9 @@ initdram(int board_type) udelay(200); } #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) && !defined(CONFIG_ECC_INIT_VIA_DDRCONTROLLER) /* |