diff options
author | Jon Loeliger <jdl@freescale.com> | 2008-03-18 21:51:05 +0300 |
---|---|---|
committer | Kumar Gala <galak@kernel.crashing.org> | 2008-08-27 20:43:50 +0400 |
commit | e6f5b35b41ddbd637bb9ca4ad985b1e0b07dae0e (patch) | |
tree | f87e55ccfd5ad5a853d2fb69c0889bf4dc4991f8 /board/freescale/mpc8568mds/mpc8568mds.c | |
parent | e31d2c1e2bc954dc32e33bb2076139f85b95f8e6 (diff) | |
download | u-boot-e6f5b35b41ddbd637bb9ca4ad985b1e0b07dae0e.tar.xz |
FSL DDR: Convert MPC8568MDS 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/mpc8568mds/mpc8568mds.c')
-rw-r--r-- | board/freescale/mpc8568mds/mpc8568mds.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/board/freescale/mpc8568mds/mpc8568mds.c b/board/freescale/mpc8568mds/mpc8568mds.c index 2ccff7d81e..f9e35cc7e8 100644 --- a/board/freescale/mpc8568mds/mpc8568mds.c +++ b/board/freescale/mpc8568mds/mpc8568mds.c @@ -25,8 +25,10 @@ #include <common.h> #include <pci.h> #include <asm/processor.h> +#include <asm/mmu.h> #include <asm/immap_85xx.h> #include <asm/immap_fsl_pci.h> +#include <asm/fsl_ddr_sdram.h> #include <spd_sdram.h> #include <i2c.h> #include <ioports.h> @@ -163,7 +165,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) /* @@ -171,6 +176,7 @@ initdram(int board_type) */ ddr_enable_ecc(dram_size); #endif + /* * SDRAM Initialization */ |