On 6/30/25 02:10, Marek Vasut wrote:
> Introduce Kconfig options used by SPL on STM32MP13xx and isolate
> the Kconfig options only used in case TFA BL2 is used as a SPL
> behind CONFIG_TFABOOT dependency.
> 
> Reviewed-by: Patrice Chotard <patrice.chot...@foss.st.com>
> Signed-off-by: Marek Vasut <marek.va...@mailbox.org>
> ---
> Cc: Cheick Traore <cheick.tra...@foss.st.com>
> Cc: Fabrice Gasnier <fabrice.gasn...@foss.st.com>
> Cc: Gatien Chevallier <gatien.chevall...@foss.st.com>
> Cc: Lionel Debieve <lionel.debi...@foss.st.com>
> Cc: Pascal Zimmermann <pzimmerm...@dh-electronics.com>
> Cc: Patrice Chotard <patrice.chot...@foss.st.com>
> Cc: Patrick Delaunay <patrick.delau...@foss.st.com>
> Cc: Simon Glass <s...@chromium.org>
> Cc: Sughosh Ganu <sughosh.g...@linaro.org>
> Cc: Tom Rini <tr...@konsulko.com>
> Cc: u-b...@dh-electronics.com
> Cc: u-boot@lists.denx.de
> Cc: uboot-st...@st-md-mailman.stormreply.com
> ---
> V2: Add RB from Patrice
> ---
>  arch/arm/mach-stm32mp/Kconfig     | 7 +++++--
>  arch/arm/mach-stm32mp/Kconfig.13x | 3 ++-
>  2 files changed, 7 insertions(+), 3 deletions(-)
> 
> diff --git a/arch/arm/mach-stm32mp/Kconfig b/arch/arm/mach-stm32mp/Kconfig
> index 09b7d5123ae..c658ac19b41 100644
> --- a/arch/arm/mach-stm32mp/Kconfig
> +++ b/arch/arm/mach-stm32mp/Kconfig
> @@ -40,16 +40,19 @@ choice
>  config STM32MP13X
>       bool "Support STMicroelectronics STM32MP13x Soc"
>       select ARCH_EARLY_INIT_R
> -     select ARM_SMCCC
> +     select ARM_SMCCC if TFABOOT
> +     select ARCH_SUPPORT_PSCI if !TFABOOT
> +     select BINMAN if !TFABOOT
>       select CPU_V7A
>       select CPU_V7_HAS_NONSEC
>       select CPU_V7_HAS_VIRT
> -     select OF_BOARD
> +     select OF_BOARD if TFABOOT
>       select OF_BOARD_SETUP
>       select PINCTRL_STM32
>       select STM32_RCC
>       select STM32_RESET
>       select STM32_SERIAL
> +     select SUPPORT_SPL if !TFABOOT
>       select SYS_ARCH_TIMER
>       imply CMD_NVEDIT_INFO
>       imply OF_UPSTREAM
> diff --git a/arch/arm/mach-stm32mp/Kconfig.13x 
> b/arch/arm/mach-stm32mp/Kconfig.13x
> index bc8b3f8cf77..cecf9e3b8c7 100644
> --- a/arch/arm/mach-stm32mp/Kconfig.13x
> +++ b/arch/arm/mach-stm32mp/Kconfig.13x
> @@ -20,7 +20,8 @@ config TARGET_ST_STM32MP13X
>  endchoice
>  
>  config TEXT_BASE
> -     default 0xC0000000
> +     default 0xC0000000 if TFABOOT
> +     default 0xC0100000 if !TFABOOT
>  
>  config PRE_CON_BUF_ADDR
>       default 0xC0800000

Applied to u-boot-stm32/master

Thanks
Patrice

Reply via email to