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>
This commit is contained in:
Nishanth Menon 2020-11-19 22:10:54 -06:00 committed by Tom Rini
parent 76fde13883
commit 2d572ede11

View File

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