]> git.dujemihanovic.xyz Git - u-boot.git/commit
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)
commit2d572ede1185db2129685e8cedfb690a5e3c4d3d
tree03220ea2bdc8d2e6c474dfacf6a73cd0c618af13
parent76fde138832c82d87db0a29f62379bdcf21a5442
power: regulator: Kconfig: add a dependency for POWER_SUPPORT for SPL

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