aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorQuentin Schulz <quentin.schulz@cherry.de>2024-05-23 18:59:35 +0200
committerKever Yang <kever.yang@rock-chips.com>2024-05-24 17:58:59 +0800
commited4b0ce247b99b3dfff144068170ae2119ee76ec (patch)
tree48acb02f57cee73ea11d9b2b87b047457bc045d1
parent78d1f04fa61586a7c2b965a273912fcbcf629936 (diff)
downloadu-boot-ed4b0ce247b99b3dfff144068170ae2119ee76ec.zip
u-boot-ed4b0ce247b99b3dfff144068170ae2119ee76ec.tar.gz
u-boot-ed4b0ce247b99b3dfff144068170ae2119ee76ec.tar.bz2
rockchip: Use common bss and stack addresses on PX30
See commit 008ba0d56d00 ("rockchip: Add common default bss and stack addresses") for memory layout. This migrates PX30 to use the new layout, except for TPL. Indeed, PX30 is extremely limited in SRAM, so we need to be extra careful about what goes into the TPL and how much we can allocate there, so let's keep the current value for TPL_SYS_MALLOC_F_LEN (already present in the PX30-specific Kconfig, from an earlier commit). This will allow us to use the same memory layout on one more Rockchip SoC, which is always a nice thing. Additionally, this will make it easier to fix U-Boot proper pre-reloc running out of memory on PX30 in a subsequent commit. Reviewed-by: Kever Yang <kever.yang@rock-chips.com> Tested-by: Heiko Stuebner <heiko@sntech.de> Signed-off-by: Quentin Schulz <quentin.schulz@cherry.de>
-rw-r--r--arch/arm/mach-rockchip/px30/Kconfig5
1 files changed, 4 insertions, 1 deletions
diff --git a/arch/arm/mach-rockchip/px30/Kconfig b/arch/arm/mach-rockchip/px30/Kconfig
index e394726..dcf9eb8 100644
--- a/arch/arm/mach-rockchip/px30/Kconfig
+++ b/arch/arm/mach-rockchip/px30/Kconfig
@@ -68,8 +68,11 @@ config ROCKCHIP_STIMER_BASE
config SYS_SOC
default "px30"
+config ROCKCHIP_COMMON_STACK_ADDR
+ default y
+
config SYS_MALLOC_F_LEN
- default 0x400
+ default 0x400 if !SPL_SHARES_INIT_SP_ADDR
config SPL_SERIAL
default y