[U-Boot] [PATCH 2/2] 85xx: the DDR tlb is missed for the !CONFIG_SPD_EEPROM case
Dave Liu
daveliu at freescale.com
Tue Oct 28 10:53:45 CET 2008
we need TLB entry for DDR at !SPD case.
Signed-off-by: Dave Liu <daveliu at freescale.com>
---
board/freescale/mpc8536ds/mpc8536ds.c | 6 ++----
board/freescale/mpc8572ds/mpc8572ds.c | 6 ++----
2 files changed, 4 insertions(+), 8 deletions(-)
diff --git a/board/freescale/mpc8536ds/mpc8536ds.c b/board/freescale/mpc8536ds/mpc8536ds.c
index 443f5a7..3b56f25 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 2364812..66cf1f0 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;
--
1.5.4
More information about the U-Boot
mailing list