bool "Enable regulators for SPL"
- depends on DM_REGULATOR
+ depends on DM_REGULATOR && SPL_POWER_SUPPORT
Regulators are seldom needed in SPL. Even if they are accessed, some
code space can be saved by accessing the PMIC registers directly.
Re: [PATCH] power: regulator: Kconfig: add a dependency for POWER_SUPPORT for SPL
On 11/20/20 1:10 PM, Nishanth Menon wrote:
> 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:
> Will not suffice, since the entire regulator build for SPL depends on
> CONFIG_SPL_POWER_SUPPORT. Elaborate that information in the Kconfig
> Signed-off-by: Nishanth Menon <[hidden email]>