Skip to content

Commit

Permalink
power: regulator: Allow PWM regulator to be omitted from SPL.
Browse files Browse the repository at this point in the history
This patch allows to enable the PWM regulator driver
independent for U-Boot and SPL.

Signed-off-by: Christoph Muellner <[email protected]>
Reviewed-by: Philipp Tomsich <[email protected]>
  • Loading branch information
cmuellner authored and Philipp Tomsich committed Jan 2, 2019
1 parent 00268e6 commit ddc824f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions drivers/power/regulator/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion drivers/power/regulator/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ddc824f

Please sign in to comment.