summaryrefslogtreecommitdiff
path: root/board/freescale/mpc8560ads/mpc8560ads.c
diff options
context:
space:
mode:
authorJon Loeliger <jdl@freescale.com>2008-03-18 11:12:44 -0500
committerKumar Gala <galak@kernel.crashing.org>2008-08-27 11:43:49 -0500
commit8b625114e8bc5a6b436181167a6e7fcd3303dd2c (patch)
treed94c4bea4d4deec108e9316482fc53b343732996 /board/freescale/mpc8560ads/mpc8560ads.c
parent9617c8d49a21703eaf13a4033ab1a56eecc033cc (diff)
downloadu-boot-imx-8b625114e8bc5a6b436181167a6e7fcd3303dd2c.zip
u-boot-imx-8b625114e8bc5a6b436181167a6e7fcd3303dd2c.tar.gz
u-boot-imx-8b625114e8bc5a6b436181167a6e7fcd3303dd2c.tar.bz2
FSL DDR: Convert MPC8560ADS 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/mpc8560ads/mpc8560ads.c')
-rw-r--r--board/freescale/mpc8560ads/mpc8560ads.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/board/freescale/mpc8560ads/mpc8560ads.c b/board/freescale/mpc8560ads/mpc8560ads.c
index 2c14a88..851fc57 100644
--- a/board/freescale/mpc8560ads/mpc8560ads.c
+++ b/board/freescale/mpc8560ads/mpc8560ads.c
@@ -28,7 +28,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 <miiphy.h>
@@ -285,10 +287,13 @@ initdram(int board_type)
}
#endif
-#if defined(CONFIG_SPD_EEPROM)
- dram_size = spd_sdram ();
+#ifdef CONFIG_SPD_EEPROM
+ dram_size = fsl_ddr_sdram();
+ dram_size = setup_ddr_tlbs(dram_size / 0x100000);
+
+ dram_size *= 0x100000;
#else
- dram_size = fixed_sdram ();
+ dram_size = fixed_sdram();
#endif
#if defined(CONFIG_DDR_ECC) && !defined(CONFIG_ECC_INIT_VIA_DDRCONTROLLER)