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 <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>
This commit is contained in:
Quentin Schulz 2025-12-12 19:13:20 +01:00 committed by Peng Fan
parent 2c01c4b720
commit 8d3e8af936

View 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