]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
vexpress64_fvp: Set DRAM to 4G to match with kernel devicetree
authorDiego Sueiro <diego.sueiro@arm.com>
Mon, 15 Feb 2021 07:27:57 +0000 (07:27 +0000)
committerTom Rini <trini@konsulko.com>
Wed, 24 Feb 2021 21:51:48 +0000 (16:51 -0500)
Currently, the kernel devicetree is setting the DRAM size to ~4G.

Signed-off-by: Diego Sueiro <diego.sueiro@arm.com>
configs/vexpress_aemv8a_semi_defconfig
include/configs/vexpress_aemv8a.h

index a26137ef5dca4961265bcbf0ae09d75a07e0def6..2ecb7762ce1716ef3dea27cf5330214631af6f4b 100644 (file)
@@ -2,7 +2,7 @@ CONFIG_ARM=y
 CONFIG_TARGET_VEXPRESS64_BASE_FVP=y
 CONFIG_SYS_TEXT_BASE=0x88000000
 CONFIG_SYS_MALLOC_F_LEN=0x2000
-CONFIG_NR_DRAM_BANKS=1
+CONFIG_NR_DRAM_BANKS=2
 CONFIG_SYS_MEMTEST_START=0x80000000
 CONFIG_SYS_MEMTEST_END=0xff000000
 CONFIG_ENV_SIZE=0x40000
index 566bee5b87b63df688208c465b4e2ecb27353d9e..7318fb6c5855879612adb9ce6108bb125e560db6 100644 (file)
 #ifdef CONFIG_TARGET_VEXPRESS64_JUNO
 #define PHYS_SDRAM_2                   (0x880000000)
 #define PHYS_SDRAM_2_SIZE              0x180000000
+#elif CONFIG_TARGET_VEXPRESS64_BASE_FVP && CONFIG_NR_DRAM_BANKS == 2
+#define PHYS_SDRAM_2                   (0x880000000)
+#define PHYS_SDRAM_2_SIZE              0x80000000
 #endif
 
 /* Enable memtest */