diff options
author | Wolfgang Denk <wd@denx.de> | 2008-08-28 00:26:52 +0200 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2008-08-28 00:26:52 +0200 |
commit | 0ba6bfef061872dbe04e6bebbb225806c7fa34ec (patch) | |
tree | 25d0e07c2d902998c3a679aaf6bf4ffedff9289c /board/freescale/mpc8560ads/mpc8560ads.c | |
parent | d26b739afe5a6760bd345743188759cd9d0f3b47 (diff) | |
parent | 9cff4448a9cb882defe6c8bde73b77fc0c636799 (diff) | |
download | u-boot-imx-0ba6bfef061872dbe04e6bebbb225806c7fa34ec.zip u-boot-imx-0ba6bfef061872dbe04e6bebbb225806c7fa34ec.tar.gz u-boot-imx-0ba6bfef061872dbe04e6bebbb225806c7fa34ec.tar.bz2 |
Merge branch 'master' of git://git.denx.de/u-boot-mpc85xx
Diffstat (limited to 'board/freescale/mpc8560ads/mpc8560ads.c')
-rw-r--r-- | board/freescale/mpc8560ads/mpc8560ads.c | 11 |
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) |