mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-06-13 15:03:58 +03:00
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 <marek.vasut+renesas@mailbox.org>
This commit is contained in:
@@ -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++) {
|
||||
|
||||
Reference in New Issue
Block a user