arm64: renesas: Move early SPL stack into System RAM SRAM on R-Car V4H boards
authorMarek Vasut <marek.vasut+renesas@mailbox.org>
Sun, 15 Jun 2025 10:47:51 +0000 (12:47 +0200)
committerMarek Vasut <marek.vasut+renesas@mailbox.org>
Wed, 18 Jun 2025 15:18:43 +0000 (17:18 +0200)
The CONFIG_CUSTOM_SYS_INIT_SP_ADDR=0xeb300000 does not make it into
board .config on either R-Car V4H White Hawk or Sparrow Hawk, remove
this configuration option. The early SPL stack is however pointing
into the RT-VRAM and may corrupt payload loaded into the RT-VRAM by
the BootROM. Set the early SPL stack at fixed location at the end of
System RAM instead, where it cannot interfere with the payload loaded
into RT-VRAM.

Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
configs/r8a779g0_whitehawk_defconfig
configs/r8a779g3_sparrowhawk_defconfig

index 8dcf8e3..5d9cfc9 100644 (file)
@@ -26,7 +26,9 @@ CONFIG_PHY_MICREL_KSZ90X1=y
 CONFIG_RENESAS_RAVB=y
 CONFIG_BAUDRATE=921600
 
-CONFIG_CUSTOM_SYS_INIT_SP_ADDR=0xeb300000
+# CONFIG_SPL_SHARES_INIT_SP_ADDR is not set
+CONFIG_SPL_HAVE_INIT_STACK=y
+CONFIG_SPL_STACK=0xe6400000
 CONFIG_SPL_DM_SPI=y
 CONFIG_SPL_TEXT_BASE=0xeb210000
 CONFIG_SPL_STACK_R_ADDR=0x44000000
index 47fc536..7202828 100644 (file)
@@ -29,7 +29,9 @@ CONFIG_PHY_MICREL=y
 CONFIG_PHY_MICREL_KSZ90X1=y
 CONFIG_RENESAS_RAVB=y
 
-CONFIG_CUSTOM_SYS_INIT_SP_ADDR=0xeb300000
+# CONFIG_SPL_SHARES_INIT_SP_ADDR is not set
+CONFIG_SPL_HAVE_INIT_STACK=y
+CONFIG_SPL_STACK=0xe6400000
 CONFIG_SPL_DM_SPI=y
 CONFIG_SPL_TEXT_BASE=0xeb210000
 CONFIG_SPL_STACK_R_ADDR=0x44000000