]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
power: spl: add SPL_DM_REGULATOR_GPIO in Kconfig
authorLokesh Vutla <lokeshvutla@ti.com>
Wed, 24 Oct 2018 15:36:50 +0000 (21:06 +0530)
committerTom Rini <trini@konsulko.com>
Thu, 1 Nov 2018 14:02:43 +0000 (10:02 -0400)
The Makefile already tests for SPL_DM_REGULATOR_GPIO, but Kconfig
does not provide it. This adds SPL_DM_REGULATOR_GPIO to Kconfig.

Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
drivers/power/regulator/Kconfig

index 414f4a53f786827a1c140e40e34a10384ea840c2..2561a8a85616652fdea827b37be48daaf0d92e65 100644 (file)
@@ -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