[PATCH 3/3] ARM: i.MX6 cm-fx6: Fix area for get_ram_size
Sascha Hauer
s.hauer at pengutronix.de
Thu Jul 16 06:50:17 PDT 2015
for bank2_size get_ram_size must be called with the CS1 area. With the
recent fix to calculate CS1 start this now starts at 0x90000000 and no
longer at 0x80000000.
Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
---
arch/arm/boards/cm-fx6/lowlevel.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/arm/boards/cm-fx6/lowlevel.c b/arch/arm/boards/cm-fx6/lowlevel.c
index fa8bd7b..60ffbbf 100644
--- a/arch/arm/boards/cm-fx6/lowlevel.c
+++ b/arch/arm/boards/cm-fx6/lowlevel.c
@@ -257,8 +257,8 @@ static unsigned long cm_fx6_spl_dram_init(void)
return SZ_2G;
if (bank1_size == 0x40000000) {
- bank2_size = get_ram_size((long int *)0x80000000,
- 0x80000000);
+ bank2_size = get_ram_size((long int *)0x90000000,
+ 0x40000000);
if (bank2_size == 0x40000000) {
/* Don't do a full reset here */
spl_mx6q_dram_init(DDR_64BIT_2GB, false);
--
2.1.4
More information about the barebox
mailing list