]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
power: regulator: Kconfig: add a dependency for POWER_SUPPORT for SPL
authorNishanth Menon <nm@ti.com>
Fri, 20 Nov 2020 04:10:54 +0000 (22:10 -0600)
committerTom Rini <trini@konsulko.com>
Sat, 16 Jan 2021 19:49:09 +0000 (14:49 -0500)
power/regulator will not be built if just CONFIG_SPL_DM_REGULATOR is
enabled. It needs CONFIG_SPL_POWER_SUPPORT to be enabled as well.

For example, if we just need a GPIO regulator in SPL:
CONFIG_DM_REGULATOR=y
CONFIG_SPL_DM_REGULATOR=y
CONFIG_DM_REGULATOR_GPIO=y
CONFIG_SPL_DM_REGULATOR_GPIO=y

Will not suffice, since the entire regulator build for SPL depends on
CONFIG_SPL_POWER_SUPPORT. Elaborate that information in the Kconfig
dependency.

Signed-off-by: Nishanth Menon <nm@ti.com>
Reviewed-by: Jaehoon Chung <jh80.chung@samsung.com>
drivers/power/regulator/Kconfig

index d431102462a82ddb6c66c500e513fe402e3d014a..fbbea18c7d1b6258b324fd2323462cd3d9de653e 100644 (file)
@@ -18,7 +18,7 @@ config DM_REGULATOR
 
 config SPL_DM_REGULATOR
        bool "Enable regulators for SPL"
-       depends on DM_REGULATOR
+       depends on DM_REGULATOR && SPL_POWER_SUPPORT
        ---help---
        Regulators are seldom needed in SPL. Even if they are accessed, some
        code space can be saved by accessing the PMIC registers directly.