[PATCH v2 2/6] rockchip: Make ROCKCHIP_COMMON_STACK_ADDR depend on TPL

Kever Yang kever.yang at rock-chips.com
Tue Apr 8 02:49:44 CEST 2025


On 2025/2/21 05:56, Jonas Karlman wrote:
> The stack-pointer addresses used with ROCKCHIP_COMMON_STACK_ADDR expect
> that DRAM is initialized by TPL or ROCKCHIP_EXTERNAL_TPL, that SPL has
> access to full DRAM and SPL is loaded to/executed from start of DRAM.
>
> Add depends on to ensure use of the ROCKCHIP_COMMON_STACK_ADDR symbol
> does not cause problem for any board not using TPL and back-to-BROM
> loading of SPL.
>
> Signed-off-by: Jonas Karlman <jonas at kwiboo.se>
Reviewed-by: Kever Yang <kever.yang at rock-chips.com>

Thanks,
- Kever
> ---
> v2: New patch
> ---
>   arch/arm/mach-rockchip/Kconfig | 1 +
>   1 file changed, 1 insertion(+)
>
> diff --git a/arch/arm/mach-rockchip/Kconfig b/arch/arm/mach-rockchip/Kconfig
> index bb5d009a1c34..a44fdddd46ab 100644
> --- a/arch/arm/mach-rockchip/Kconfig
> +++ b/arch/arm/mach-rockchip/Kconfig
> @@ -605,6 +605,7 @@ config LNX_KRNL_IMG_TEXT_OFFSET_BASE
>   config ROCKCHIP_COMMON_STACK_ADDR
>   	bool
>   	depends on SPL_SHARES_INIT_SP_ADDR
> +	depends on TPL || ROCKCHIP_EXTERNAL_TPL
>   	select HAS_CUSTOM_SYS_INIT_SP_ADDR
>   	imply SPL_LIBCOMMON_SUPPORT if SPL
>   	imply SPL_LIBGENERIC_SUPPORT if SPL


More information about the U-Boot mailing list