summaryrefslogtreecommitdiffstats
path: root/drivers/power/regulator/Kconfig
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2016-01-21 19:43:55 -0700
committerSimon Glass <sjg@chromium.org>2016-01-21 20:42:35 -0700
commit1f2b4b06ae327ea899d63b1dd0d12751b9ac850b (patch)
tree8392621cf24ab111c7b8382bd161b9064d357346 /drivers/power/regulator/Kconfig
parentd178a1c5b2b3d47a6380b7990a8a3f44b1cafe24 (diff)
downloadblackbird-obmc-uboot-1f2b4b06ae327ea899d63b1dd0d12751b9ac850b.tar.gz
blackbird-obmc-uboot-1f2b4b06ae327ea899d63b1dd0d12751b9ac850b.zip
dm: power: Allow regulators to be omitted from SPL
For some boards the pmic interface is useful but the regulator interface (which comes with it) is too large. Allow them to be separated such that SPL can decide which it needs. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/power/regulator/Kconfig')
-rw-r--r--drivers/power/regulator/Kconfig9
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/power/regulator/Kconfig b/drivers/power/regulator/Kconfig
index 8f638a9d0e..465ff3fda6 100644
--- a/drivers/power/regulator/Kconfig
+++ b/drivers/power/regulator/Kconfig
@@ -16,6 +16,15 @@ config DM_REGULATOR
for this purpose if PMIC I/O driver is implemented or dm_scan_fdt_node()
otherwise. Detailed information can be found in the header file.
+config SPL_DM_REGULATOR
+ bool "Enable regulators for SPL"
+ depends on DM_REGULATOR
+ ---help---
+ Regulators are seldom needed in SPL. Even if they are accessed, some
+ code space can be saved by accessing the PMIC registers directly.
+ Enable this option if you need regulators in SPL and can cope with
+ the extra code size.
+
config REGULATOR_ACT8846
bool "Enable driver for ACT8846 regulator"
depends on DM_REGULATOR && PMIC_ACT8846
OpenPOWER on IntegriCloud