Skip to contentSkip to conversation

power: spl: add SPL_DM_REGULATOR_GPIO in Kconfig

PATCH In review Lokesh Vutla 2 participants 2 messages Oct 24, 2018 – Nov 2, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 power: spl: add SPL_DM_REGULATOR_GPIO in Kconfig

The Makefile already tests for SPL_DM_REGULATOR_GPIO, but Kconfig does not provide it. This adds SPL_DM_REGULATOR_GPIO to Kconfig.

---
 drivers/power/regulator/Kconfig | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)
drivers/power/regulator/Kconfig +8 -1
index 414f4a53f7..2561a8a856 100644
@@ -86,12 +86,19 @@ config SPL_DM_REGULATOR_FIXED
 
 config DM_REGULATOR_GPIO
 	bool "Enable Driver Model for GPIO REGULATOR"
-	depends on DM_REGULATOR
+	depends on DM_REGULATOR && DM_GPIO
 	---help---
 	This config enables implementation of driver-model regulator uclass
 	features for gpio regulators. The driver implements get/set for
 	voltage value.
 
+config SPL_DM_REGULATOR_GPIO
+	bool "Enable Driver Model for GPIO REGULATOR in SPL"
+	depends on DM_REGULATOR_GPIO && SPL_GPIO_SUPPORT
+	---help---
+	This config enables implementation of driver-model regulator uclass
+	features for gpio regulators in SPL.
+
 config REGULATOR_RK8XX
 	bool "Enable driver for RK8XX regulators"
 	depends on DM_REGULATOR && PMIC_RK8XX
Signature · 1 line
2.19.1
#1 lore raw
Quoted 4 lines · Lokesh Vutla

The Makefile already tests for SPL_DM_REGULATOR_GPIO, but Kconfig does not provide it. This adds SPL_DM_REGULATOR_GPIO to Kconfig.

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20181102/624d3cf8/attachment.sig>