]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
ARM: dts: stm32: Make PWR regulator driver available on STM32MP13xx
authorMarek Vasut <marex@denx.de>
Tue, 19 Mar 2024 02:45:08 +0000 (03:45 +0100)
committerPatrice Chotard <patrice.chotard@foss.st.com>
Tue, 18 Jun 2024 06:55:51 +0000 (08:55 +0200)
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@denx.de>
Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
arch/arm/mach-stm32mp/Kconfig
arch/arm/mach-stm32mp/Kconfig.15x

index b9af03d57e3db5bb17a4319cf7d4a1af4440a789..d5934a927717645d2f55f8829aa26485c72fc367 100644 (file)
@@ -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
index 71c14eb4955f2078fc155e1381d0ee1c84cb9e67..d99aa9fd694a6ab5fe1bbaa19a8b9550e0d09a86 100644 (file)
@@ -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