diff options
author | Kumar Gala <galak@kernel.crashing.org> | 2008-08-26 08:02:30 -0500 |
---|---|---|
committer | Kumar Gala <galak@kernel.crashing.org> | 2008-08-27 11:43:50 -0500 |
commit | 1167a2fd56138b716e01370c4267f3b70bf9ffa0 (patch) | |
tree | 74cfb5d7919a1063de8f7632df44ed81e53c5181 /board/freescale/mpc8544ds/mpc8544ds.c | |
parent | e6f5b35b41ddbd637bb9ca4ad985b1e0b07dae0e (diff) | |
download | u-boot-imx-1167a2fd56138b716e01370c4267f3b70bf9ffa0.zip u-boot-imx-1167a2fd56138b716e01370c4267f3b70bf9ffa0.tar.gz u-boot-imx-1167a2fd56138b716e01370c4267f3b70bf9ffa0.tar.bz2 |
FSL DDR: Convert MPC8544DS to new DDR code.
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'board/freescale/mpc8544ds/mpc8544ds.c')
-rw-r--r-- | board/freescale/mpc8544ds/mpc8544ds.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/board/freescale/mpc8544ds/mpc8544ds.c b/board/freescale/mpc8544ds/mpc8544ds.c index c39ce11..4e976b7 100644 --- a/board/freescale/mpc8544ds/mpc8544ds.c +++ b/board/freescale/mpc8544ds/mpc8544ds.c @@ -24,10 +24,11 @@ #include <command.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 <asm/io.h> -#include <spd_sdram.h> #include <miiphy.h> #include <libfdt.h> #include <fdt_support.h> @@ -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) /* |