]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
power: regulator: Correct dependencies on SPL_REGULATOR_PWM
authorTom Rini <trini@konsulko.com>
Fri, 3 Oct 2025 20:39:24 +0000 (14:39 -0600)
committerPeng Fan <peng.fan@nxp.com>
Fri, 10 Oct 2025 02:59:41 +0000 (10:59 +0800)
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.

Signed-off-by: Tom Rini <trini@konsulko.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
drivers/power/regulator/Kconfig

index 65b99e896562845493f00e1b52dad164536864f4..1875e61967c0090c0a3775f0c5f74947fc815cd9 100644 (file)
@@ -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.