aboutsummaryrefslogtreecommitdiff
path: root/common/spl
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2021-08-08 12:20:29 -0600
committerTom Rini <trini@konsulko.com>2021-09-04 12:26:02 -0400
commita4faf1f563160b1b9cfbdbf388d33464691d0440 (patch)
treec2ec2dc3ca4ca49999d043cc7a9ee16ee5503969 /common/spl
parent14c251ffe156e5b5b1332efcf5ed6fb7ae62cdc3 (diff)
downloadu-boot-a4faf1f563160b1b9cfbdbf388d33464691d0440.zip
u-boot-a4faf1f563160b1b9cfbdbf388d33464691d0440.tar.gz
u-boot-a4faf1f563160b1b9cfbdbf388d33464691d0440.tar.bz2
power: Refactor Makefile rules
Move the power/ rules into drivers/power to avoid clutter in the Makefile and drivers/Makefile files. We must select SPL_POWER if SPL_POWER_DOMAIN is used, since the two are currently independent and boards do not necessarily enable SPL_POWER. Add a TPL_POWER as well, as that is used by one board. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Jaehoon Chung <jh80.chung@samsung.com>
Diffstat (limited to 'common/spl')
-rw-r--r--common/spl/Kconfig13
1 files changed, 13 insertions, 0 deletions
diff --git a/common/spl/Kconfig b/common/spl/Kconfig
index 2618857..690926d 100644
--- a/common/spl/Kconfig
+++ b/common/spl/Kconfig
@@ -1038,6 +1038,7 @@ config SPL_POWER
config SPL_POWER_DOMAIN
bool "Support power domain drivers"
+ select SPL_POWER
help
Enable support for power domain control in SPL. Many SoCs allow
power to be applied to or removed from portions of the SoC (power
@@ -1425,6 +1426,18 @@ config TPL_NEEDS_SEPARATE_STACK
Enable, if the TPL stage should not inherit its initial
stack-pointer from the settings for the SPL stage.
+config TPL_POWER
+ bool "Support power drivers"
+ help
+ Enable support for power control in TPL. This includes support
+ for PMICs (Power-management Integrated Circuits) and some of the
+ features provided by PMICs. In particular, voltage regulators can
+ be used to enable/disable power and vary its voltage. That can be
+ useful in TPL to turn on boot peripherals and adjust CPU voltage
+ so that the clock speed can be increased. This enables the drivers
+ in drivers/power, drivers/power/pmic and drivers/power/regulator
+ as part of an TPL build.
+
config TPL_TEXT_BASE
hex "Base address for the .text section of the TPL stage"
depends on TPL_NEEDS_SEPARATE_TEXT_BASE