Skip to contentSkip to conversation

vexpress64_fvp: Set DRAM to 4G to match with kernel devicetree

PATCH New Diego Sueiro 2 participants 2 messages Feb 15, 2021 – Feb 25, 2021 Arm/versatile express platform

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 vexpress64_fvp: Set DRAM to 4G to match with kernel devicetree

Currently, the kernel devicetree is setting the DRAM size to ~4G.

---
 configs/vexpress_aemv8a_semi_defconfig | 2 +-
 include/configs/vexpress_aemv8a.h      | 3 +++
 2 files changed, 4 insertions(+), 1 deletion(-)
configs/vexpress_aemv8a_semi_defconfig +1 -1
index a26137ef5d..2ecb7762ce 100644
@@ -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
include/configs/vexpress_aemv8a.h +3 -0
index 566bee5b87..f1490a86b9 100644
@@ -117,6 +117,9 @@
 #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 */
Signature · 1 line
2.17.1
#1 lore raw

PATCH 1/1 vexpress64_fvp: Set DRAM to 4G to match with kernel devicetree

Quoted 3 lines · Diego Sueiro

Currently, the kernel devicetree is setting the DRAM size to ~4G.

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20210225/bef0a7c0/attachment.sig>