[PATCH 2/2] ARM: stm32: Make PWR regulator driver available on STM32MP13xx

Patrice CHOTARD patrice.chotard at foss.st.com
Fri Jun 14 13:57:39 CEST 2024



On 3/19/24 03:45, Marek Vasut wrote:
> This patch makes STM32 PWR regulators available on stm32mp13xx.
> This requires TFA to clear RCC_SECCFGR, is disabled by default
> on stm32mp13xx and can only be enabled on board config level.
> 
> Signed-off-by: Marek Vasut <marex at denx.de>
> ---
> Cc: Patrice Chotard <patrice.chotard at foss.st.com>
> Cc: Patrick Delaunay <patrick.delaunay at foss.st.com>
> Cc: Tom Rini <trini at konsulko.com>
> Cc: u-boot at dh-electronics.com
> Cc: u-boot at lists.denx.de
> Cc: uboot-stm32 at st-md-mailman.stormreply.com
> ---
>  arch/arm/mach-stm32mp/Kconfig     | 17 +++++++++++++++++
>  arch/arm/mach-stm32mp/Kconfig.15x | 16 ----------------
>  2 files changed, 17 insertions(+), 16 deletions(-)
> 
> diff --git a/arch/arm/mach-stm32mp/Kconfig b/arch/arm/mach-stm32mp/Kconfig
> index b9af03d57e3..d5934a92771 100644
> --- a/arch/arm/mach-stm32mp/Kconfig
> +++ b/arch/arm/mach-stm32mp/Kconfig
> @@ -155,4 +155,21 @@ source "arch/arm/mach-stm32mp/Kconfig.13x"
>  source "arch/arm/mach-stm32mp/Kconfig.15x"
>  source "arch/arm/mach-stm32mp/Kconfig.25x"
>  source "arch/arm/mach-stm32mp/cmd_stm32prog/Kconfig"
> +
> +config STM32MP15_PWR
> +	bool "Enable driver for STM32MP15x PWR"
> +	depends on DM_REGULATOR && DM_PMIC && (STM32MP13X || STM32MP15X)
> +	default y if STM32MP15X
> +	help
> +		This config enables implementation of driver-model pmic and
> +		regulator uclass features for access to STM32MP15x PWR.
> +
> +config SPL_STM32MP15_PWR
> +	bool "Enable driver for STM32MP15x PWR in SPL"
> +	depends on SPL && SPL_DM_REGULATOR && SPL_DM_PMIC && (STM32MP13X || STM32MP15X)
> +	default y if STM32MP15X
> +	help
> +		This config enables implementation of driver-model pmic and
> +		regulator uclass features for access to STM32MP15x PWR in SPL.
> +
>  endif
> diff --git a/arch/arm/mach-stm32mp/Kconfig.15x b/arch/arm/mach-stm32mp/Kconfig.15x
> index 71c14eb4955..d99aa9fd694 100644
> --- a/arch/arm/mach-stm32mp/Kconfig.15x
> +++ b/arch/arm/mach-stm32mp/Kconfig.15x
> @@ -77,22 +77,6 @@ config TARGET_ICORE_STM32MP1
>  
>  endchoice
>  
> -config STM32MP15_PWR
> -	bool "Enable driver for STM32MP15x PWR"
> -	depends on DM_REGULATOR && DM_PMIC
> -	default y
> -	help
> -		This config enables implementation of driver-model pmic and
> -		regulator uclass features for access to STM32MP15x PWR.
> -
> -config SPL_STM32MP15_PWR
> -	bool "Enable driver for STM32MP15x PWR in SPL"
> -	depends on SPL && SPL_DM_REGULATOR && SPL_DM_PMIC
> -	default y
> -	help
> -		This config enables implementation of driver-model pmic and
> -		regulator uclass features for access to STM32MP15x PWR in SPL.
> -
>  config TEXT_BASE
>  	default 0xC0100000
>  
Applied to u-boot-stm32/next

Thanks
Patrice


More information about the U-Boot mailing list