]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
power: regulator: remove SPL_REGULATOR_PWM due to unmeetable SPL_DM_PWM dependency
authorQuentin Schulz <quentin.schulz@cherry.de>
Fri, 12 Dec 2025 18:13:20 +0000 (19:13 +0100)
committerPeng Fan <peng.fan@nxp.com>
Wed, 24 Dec 2025 04:06:45 +0000 (12:06 +0800)
SPL_DM_PWM option simply doesn't exist. Moreover, drivers/pwm is only
included by drivers/Makefile for non-xPL stages so making
SPL_REGULATOR_PWM properly build for SPL/xPL is more involved than just
adding an SPL_DM_PWM option.

Reading the original commit (ddc824f89aa8 ("power: regulator: Allow PWM
regulator to be omitted from SPL."), the intent seemingly wasn't to
allow building support in XPL but rather to allow removing it which is
done by using $(PHASE_) ($(SPL_) at that time) in the Makefile. If
anyone needs that, let them figure out what they need to do without
misleading potential users of this symbol by simply removing it.

Fixes: 2a846e04c622 ("power: regulator: Correct dependencies on SPL_REGULATOR_PWM")
Signed-off-by: Quentin Schulz <quentin.schulz@cherry.de>
Reviewed-by: Anshul Dalal <anshuld@ti.com>
Reviewed-by: Kory Maincent <kory.maincent@bootlin.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
drivers/power/regulator/Kconfig

index d6b451ca40797316bb485630b127b65dc193ecc1..124b0b34c4167a99d7abbf00e0c557cd588a5524 100644 (file)
@@ -141,13 +141,6 @@ config REGULATOR_PWM
        This driver is controlled by a device tree node
        which includes voltage limits.
 
-config SPL_REGULATOR_PWM
-       bool "Enable Driver for PWM regulators in SPL"
-       depends on SPL_DM_REGULATOR && SPL && SPL_DM_PWM
-       help
-         This config enables implementation of driver-model regulator uclass
-         features for PWM regulators in SPL.
-
 config DM_REGULATOR_MAX8907
        bool "Enable Driver Model for REGULATOR MAX8907"
        depends on DM_REGULATOR && DM_PMIC_MAX8907