diff options
| author | Marek Vasut <[email protected]> | 2026-03-25 02:18:28 +0100 |
|---|---|---|
| committer | Marek Vasut <[email protected]> | 2026-04-08 19:35:05 +0200 |
| commit | f18004993c94ce28537f051987e0f9767c5e0c9b (patch) | |
| tree | 3f0bc137f98f3dffa401ac0e141bd6b3036a6d2b | |
| parent | 0453bcfd16322075e32004c07003644d6e60bb65 (diff) | |
arm64: renesas: Make R-Car board code 32-bit ARMv8-M compatible
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 <[email protected]>
| -rw-r--r-- | board/renesas/common/rcar64-common.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/board/renesas/common/rcar64-common.c b/board/renesas/common/rcar64-common.c index bcb03792494..3d537be4d02 100644 --- a/board/renesas/common/rcar64-common.c +++ b/board/renesas/common/rcar64-common.c @@ -24,7 +24,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. @@ -44,7 +45,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++) { |
