Message ID | 20220520182444.v2.7.Ifb968953516a3d73a38718892a7c58726bf641ae@changeid |
---|---|
State | Accepted |
Commit | 741090c5107c798ce3b8cd8e62edaf4727e93c6f |
Delegated to: | Patrick Delaunay |
Headers | show |
Series | stm32mp: add STM32MP13x support | expand |
Hi Patrick On 5/20/22 18:24, Patrick Delaunay wrote: > 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> > --- > > Changes in v2: > - fix commit message > > arch/arm/mach-stm32mp/Kconfig.15x | 16 ++++++++++++++++ > arch/arm/mach-stm32mp/Makefile | 2 +- > 2 files changed, 17 insertions(+), 1 deletion(-) > > diff --git a/arch/arm/mach-stm32mp/Kconfig.15x b/arch/arm/mach-stm32mp/Kconfig.15x > index 19f161cf5c..d516270292 100644 > --- a/arch/arm/mach-stm32mp/Kconfig.15x > +++ b/arch/arm/mach-stm32mp/Kconfig.15x > @@ -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 > > diff --git a/arch/arm/mach-stm32mp/Makefile b/arch/arm/mach-stm32mp/Makefile > index d362104fee..0ffec6e02f 100644 > --- a/arch/arm/mach-stm32mp/Makefile > +++ b/arch/arm/mach-stm32mp/Makefile > @@ -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 Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com> Thanks Patrice
diff --git a/arch/arm/mach-stm32mp/Kconfig.15x b/arch/arm/mach-stm32mp/Kconfig.15x index 19f161cf5c..d516270292 100644 --- a/arch/arm/mach-stm32mp/Kconfig.15x +++ b/arch/arm/mach-stm32mp/Kconfig.15x @@ -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 diff --git a/arch/arm/mach-stm32mp/Makefile b/arch/arm/mach-stm32mp/Makefile index d362104fee..0ffec6e02f 100644 --- a/arch/arm/mach-stm32mp/Makefile +++ b/arch/arm/mach-stm32mp/Makefile @@ -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
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> --- Changes in v2: - fix commit message arch/arm/mach-stm32mp/Kconfig.15x | 16 ++++++++++++++++ arch/arm/mach-stm32mp/Makefile | 2 +- 2 files changed, 17 insertions(+), 1 deletion(-)