summaryrefslogtreecommitdiffstats
path: root/board/freescale/mpc8555cds/mpc8555cds.c
diff options
context:
space:
mode:
authorJon Loeliger <jdl@freescale.com>2008-03-18 11:12:42 -0500
committerKumar Gala <galak@kernel.crashing.org>2008-08-27 11:43:49 -0500
commit2b40edb10d81da7bba724edbccd7f53777112579 (patch)
tree72ba47fdc075bb4b7856477fa0ae1e50689aa304 /board/freescale/mpc8555cds/mpc8555cds.c
parent8b625114e8bc5a6b436181167a6e7fcd3303dd2c (diff)
downloadblackbird-obmc-uboot-2b40edb10d81da7bba724edbccd7f53777112579.tar.gz
blackbird-obmc-uboot-2b40edb10d81da7bba724edbccd7f53777112579.zip
FSL DDR: Convert MPC8555ADS 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/mpc8555cds/mpc8555cds.c')
-rw-r--r--board/freescale/mpc8555cds/mpc8555cds.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/board/freescale/mpc8555cds/mpc8555cds.c b/board/freescale/mpc8555cds/mpc8555cds.c
index 9a65101dd2..826056a845 100644
--- a/board/freescale/mpc8555cds/mpc8555cds.c
+++ b/board/freescale/mpc8555cds/mpc8555cds.c
@@ -23,7 +23,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>
@@ -261,7 +263,10 @@ 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)
/*
@@ -269,6 +274,7 @@ initdram(int board_type)
*/
ddr_enable_ecc(dram_size);
#endif
+
/*
* SDRAM Initialization
*/
OpenPOWER on IntegriCloud