]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
arm: stm32mp: add CONFIG_STM32MP15_PWR
authorPatrick Delaunay <patrick.delaunay@foss.st.com>
Fri, 20 May 2022 16:24:45 +0000 (18:24 +0200)
committerPatrick Delaunay <patrick.delaunay@foss.st.com>
Fri, 17 Jun 2022 07:58:21 +0000 (09:58 +0200)
Add config CONFIG_STM32MP15_PWR to handle the
access to regulators managed by the PWR driver defined in
pwr_regulator.c

This driver is only used in U-Boot by STM32MP15x family.

Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
arch/arm/mach-stm32mp/Kconfig.15x
arch/arm/mach-stm32mp/Makefile

index 19f161cf5c1d6d9511b42158f7d6db883c33d971..d516270292a3081e630a92f3082df277c8eb3e6d 100644 (file)
@@ -77,6 +77,22 @@ 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 SYS_TEXT_BASE
        default 0xC0100000
 
index d362104fee4f44778ea9227fd65e305966687dcd..0ffec6e02fa50ab7a13327a296f8c1d197f4a700 100644 (file)
@@ -21,5 +21,5 @@ obj-$(CONFIG_ARMV7_PSCI) += psci.o
 obj-$(CONFIG_TFABOOT) += boot_params.o
 endif
 
-obj-$(CONFIG_$(SPL_)DM_REGULATOR) += pwr_regulator.o
+obj-$(CONFIG_$(SPL_)STM32MP15_PWR) += pwr_regulator.o
 obj-$(CONFIG_OF_SYSTEM_SETUP) += fdt.o