From 1167a2fd56138b716e01370c4267f3b70bf9ffa0 Mon Sep 17 00:00:00 2001 From: Kumar Gala Date: Tue, 26 Aug 2008 08:02:30 -0500 Subject: FSL DDR: Convert MPC8544DS to new DDR code. Signed-off-by: Kumar Gala --- board/freescale/mpc8544ds/mpc8544ds.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'board/freescale/mpc8544ds/mpc8544ds.c') diff --git a/board/freescale/mpc8544ds/mpc8544ds.c b/board/freescale/mpc8544ds/mpc8544ds.c index c39ce1172..4e976b78f 100644 --- a/board/freescale/mpc8544ds/mpc8544ds.c +++ b/board/freescale/mpc8544ds/mpc8544ds.c @@ -24,10 +24,11 @@ #include #include #include +#include #include #include +#include #include -#include #include #include #include @@ -38,8 +39,6 @@ extern void ddr_enable_ecc(unsigned int dram_size); #endif -void sdram_init(void); - int checkboard (void) { volatile ccsr_gur_t *gur = (void *)(CFG_MPC85xx_GUTS_ADDR); @@ -69,7 +68,11 @@ initdram(int board_type) puts("Initializing\n"); - 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) /* -- cgit v1.2.3