power: regulator: Allow PWM regulator to be omitted from SPL.
authorChristoph Muellner <christoph.muellner@theobroma-systems.com>
Wed, 2 Jan 2019 14:09:16 +0000 (15:09 +0100)
committerPhilipp Tomsich <philipp.tomsich@theobroma-systems.com>
Wed, 2 Jan 2019 21:38:09 +0000 (22:38 +0100)
This patch allows to enable the PWM regulator driver
independent for U-Boot and SPL.

Signed-off-by: Christoph Muellner <christoph.muellner@theobroma-systems.com>
Reviewed-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
drivers/power/regulator/Kconfig
drivers/power/regulator/Makefile

index 09b311d..3ed0dd2 100644 (file)
@@ -61,6 +61,13 @@ 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 REGULATOR_PWM
+       help
+         This config enables implementation of driver-model regulator uclass
+         features for PWM regulators in SPL.
+
 config DM_REGULATOR_MAX77686
        bool "Enable Driver Model for REGULATOR MAX77686"
        depends on DM_REGULATOR && DM_PMIC_MAX77686
index 8017045..f617ce7 100644 (file)
@@ -9,7 +9,7 @@ obj-$(CONFIG_REGULATOR_ACT8846) += act8846.o
 obj-$(CONFIG_REGULATOR_AS3722) += as3722_regulator.o
 obj-$(CONFIG_DM_REGULATOR_MAX77686) += max77686.o
 obj-$(CONFIG_$(SPL_)DM_PMIC_PFUZE100) += pfuze100.o
-obj-$(CONFIG_REGULATOR_PWM) += pwm_regulator.o
+obj-$(CONFIG_$(SPL_)REGULATOR_PWM) += pwm_regulator.o
 obj-$(CONFIG_$(SPL_)DM_REGULATOR_FAN53555) += fan53555.o
 obj-$(CONFIG_$(SPL_)DM_REGULATOR_FIXED) += fixed.o
 obj-$(CONFIG_$(SPL_)DM_REGULATOR_GPIO) += gpio-regulator.o