[PATCH] arm64: renesas: Make R-Car board code 32-bit ARMv8-M compatible
Marek Vasut
marek.vasut+renesas at mailbox.org
Wed Mar 25 02:18:28 CET 2026
The 64-bit R-Car board code is currently unbuildable on 32-bit ARM
cores. Skip DRAM initialization bits to make the code compatible with
these cores, because those cores do not use the DRAM, they only use
SRAM.
Signed-off-by: Marek Vasut <marek.vasut+renesas at mailbox.org>
---
Cc: Hai Pham <hai.pham.ud at renesas.com>
Cc: Khanh Le <khanh.le.xr at renesas.com>
Cc: Nobuhiro Iwamatsu <iwamatsu at nigauri.org>
Cc: Tom Rini <trini at konsulko.com>
Cc: u-boot at lists.denx.de
---
board/renesas/common/rcar64-common.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/board/renesas/common/rcar64-common.c b/board/renesas/common/rcar64-common.c
index 2d956611056..497e7663aea 100644
--- a/board/renesas/common/rcar64-common.c
+++ b/board/renesas/common/rcar64-common.c
@@ -25,7 +25,8 @@ int dram_init(void)
{
int ret = fdtdec_setup_mem_size_base();
- if (current_el() == 3 && gd->ram_base == 0x48000000) {
+ if (IS_ENABLED(CONFIG_ARM64) && current_el() == 3 &&
+ gd->ram_base == 0x48000000) {
/*
* If this U-Boot runs in EL3, make the bottom 128 MiB
* available for loading of follow up firmware blobs.
@@ -45,7 +46,7 @@ int dram_init_banksize(void)
fdtdec_setup_memory_banksize();
- if (current_el() != 3)
+ if (IS_ENABLED(CONFIG_ARM64) && current_el() != 3)
return 0;
for (bank = 0; bank < CONFIG_NR_DRAM_BANKS; bank++) {
--
2.53.0
More information about the U-Boot
mailing list