Skip to contentSkip to conversation

power: regulator: Correct dependencies on SPL_REGULATOR_PWM

PATCH New Tom Rini 1 participant 1 message Oct 3, 2025

lore
Share & tools
lore

Tom Rini

author
#0 lore raw

PATCH 1/1 power: regulator: Correct dependencies on SPL_REGULATOR_PWM

In order to enable and build with SPL_REGULATOR_PWM we need to have both SPL_DM_REGULATOR and SPL_DM_PWM enabled. Build-wise, we can have SPL have PWM regulator support without enabling it in U-Boot itself so drop that dependency.

---
 drivers/power/regulator/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/power/regulator/Kconfig +1 -1
index 65b99e896562..1875e61967c0 100644
@@ -143,7 +143,7 @@ config REGULATOR_PWM
 
 config SPL_REGULATOR_PWM
 	bool "Enable Driver for PWM regulators in SPL"
-	depends on REGULATOR_PWM && 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.
Signature · 1 line
2.43.0