[PATCH] ARM: stm32mp: Make ARCH_STM32MP13 and ARCH_STM32MP157 selectable

Ahmad Fatoum a.fatoum at pengutronix.de
Tue Feb 3 02:24:44 PST 2026


Hello Jonas,

On 2/3/26 11:19 AM, Jonas Rebmann wrote:
> ARCH_STM32MP13 and ARCH_STM32MP157 are automatically selected if a
> dependent machine is selected. However, without any machine selected,
> CONFIG_ARCH_STM32MP still enables build of the
> barebox-stm32mp-generic.img image, which, provided a dtb, is functional
> without requiring further board specific code.
> 
> In this case ARCH_STM32MP13 and/or ARCH_STM32MP157 need to be explicitly
> enabled for the SoC to be fully functional (e.g. clocks).
> 
> Signed-off-by: Jonas Rebmann <jre at pengutronix.de>

Agreed, See d92583d5bab2 ("ARM: cpu: allow selecting CPU_V7/CPU_V8
directly").

Reviewed-by: Ahmad Fatoum <a.fatoum at pengutronix.de>

> ---
>  arch/arm/mach-stm32mp/Kconfig | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/arch/arm/mach-stm32mp/Kconfig b/arch/arm/mach-stm32mp/Kconfig
> index 54ce644d73..18a0bf284b 100644
> --- a/arch/arm/mach-stm32mp/Kconfig
> +++ b/arch/arm/mach-stm32mp/Kconfig
> @@ -8,11 +8,11 @@ config ARCH_NR_GPIO
>  
>  config ARCH_STM32MP13
>  	select ARM_PSCI_CLIENT
> -	bool
> +	bool "Support STM32MP153-based chips"
>  
>  config ARCH_STM32MP157
>  	select ARM_PSCI_CLIENT
> -	bool
> +	bool "Support STM32MP157-based chips"
>  
>  config MACH_STM32MP13XX_DK
>  	select ARCH_STM32MP13
> 
> ---
> base-commit: 378bc32467af0afbbcb9d9e3cc1bfd5fb429a826
> change-id: 20260203-stm32-generic-580c70661681
> 
> Best regards,
> --  
> Jonas Rebmann <jre at pengutronix.de>
> 
> 
> 

-- 
Pengutronix e.K.                  |                             |
Steuerwalder Str. 21              | http://www.pengutronix.de/  |
31137 Hildesheim, Germany         | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686  | Fax:   +49-5121-206917-5555 |




More information about the barebox mailing list