From: Quentin Schulz Date: Fri, 12 Dec 2025 18:13:20 +0000 (+0100) Subject: power: regulator: remove SPL_REGULATOR_PWM due to unmeetable SPL_DM_PWM dependency X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8d3e8af93649f4b2d8e00475695bdf59545fd589;p=thirdparty%2Fu-boot.git power: regulator: remove SPL_REGULATOR_PWM due to unmeetable SPL_DM_PWM dependency 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 Reviewed-by: Anshul Dalal Reviewed-by: Kory Maincent Signed-off-by: Peng Fan --- diff --git a/drivers/power/regulator/Kconfig b/drivers/power/regulator/Kconfig index d6b451ca407..124b0b34c41 100644 --- a/drivers/power/regulator/Kconfig +++ b/drivers/power/regulator/Kconfig @@ -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