summaryrefslogtreecommitdiff
path: root/board/freescale
diff options
context:
space:
mode:
authorDave Liu <daveliu@freescale.com>2008-10-28 17:53:45 +0800
committerAndrew Fleming-AFLEMING <afleming@freescale.com>2008-12-03 22:46:05 -0600
commite57f0fa1333cdf3ca36110aac2900712a5f82976 (patch)
treebb76304aadb3a9871c584b6bd4d6a84d2e8b412c /board/freescale
parent9b0ad1b1c7a15ff674978705c7c52264978dc5d8 (diff)
downloadu-boot-imx-e57f0fa1333cdf3ca36110aac2900712a5f82976.zip
u-boot-imx-e57f0fa1333cdf3ca36110aac2900712a5f82976.tar.gz
u-boot-imx-e57f0fa1333cdf3ca36110aac2900712a5f82976.tar.bz2
85xx: the DDR tlb is missed for the !CONFIG_SPD_EEPROM case
we need TLB entry for DDR at !SPD case. Signed-off-by: Dave Liu <daveliu@freescale.com> Acked-by: Andy Fleming <afleming@freescale.com>
Diffstat (limited to 'board/freescale')
-rw-r--r--board/freescale/mpc8536ds/mpc8536ds.c6
-rw-r--r--board/freescale/mpc8572ds/mpc8572ds.c6
2 files changed, 4 insertions, 8 deletions
diff --git a/board/freescale/mpc8536ds/mpc8536ds.c b/board/freescale/mpc8536ds/mpc8536ds.c
index 2538483..2b17612 100644
--- a/board/freescale/mpc8536ds/mpc8536ds.c
+++ b/board/freescale/mpc8536ds/mpc8536ds.c
@@ -61,13 +61,11 @@ initdram(int board_type)
#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();
#endif
+ dram_size = setup_ddr_tlbs(dram_size / 0x100000);
+ dram_size *= 0x100000;
puts(" DDR: ");
return dram_size;
diff --git a/board/freescale/mpc8572ds/mpc8572ds.c b/board/freescale/mpc8572ds/mpc8572ds.c
index 242af86..a14db5a 100644
--- a/board/freescale/mpc8572ds/mpc8572ds.c
+++ b/board/freescale/mpc8572ds/mpc8572ds.c
@@ -57,13 +57,11 @@ phys_size_t initdram(int board_type)
#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();
#endif
+ dram_size = setup_ddr_tlbs(dram_size / 0x100000);
+ dram_size *= 0x100000;
puts(" DDR: ");
return dram_size;