aboutsummaryrefslogtreecommitdiff
path: root/board/samsung
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2021-08-08 12:20:26 -0600
committerTom Rini <trini@konsulko.com>2021-09-04 12:26:02 -0400
commit29d7153ec384e072755e8951a8a33f29372f925c (patch)
treeb4ff954c27a2e645593f01811dee4e2823d3bf5c /board/samsung
parent7abf178bb815df7d7e1f6c5db202e02ae7d9489f (diff)
downloadu-boot-29d7153ec384e072755e8951a8a33f29372f925c.zip
u-boot-29d7153ec384e072755e8951a8a33f29372f925c.tar.gz
u-boot-29d7153ec384e072755e8951a8a33f29372f925c.tar.bz2
power: Rename CONFIG_POWER to CONFIG_POWER_LEGACY
This option is used in pre-driver model code and much of it has never been converted to driver model. We want to add a new option to enable power support, so we can use a simple rule in the Makefile. Rename this one, which is really about a particular implementation of power. Also update the pmic.h header file so it either includes the legacy API or the driver model one. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Jaehoon Chung <jh80.chung@samsung.com>
Diffstat (limited to 'board/samsung')
-rw-r--r--board/samsung/common/board.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/board/samsung/common/board.c b/board/samsung/common/board.c
index 1c2fe02..08f9202 100644
--- a/board/samsung/common/board.c
+++ b/board/samsung/common/board.c
@@ -185,7 +185,7 @@ int board_early_init_f(void)
}
#endif
-#if defined(CONFIG_POWER) || defined(CONFIG_DM_PMIC)
+#if defined(CONFIG_POWER_LEGACY) || defined(CONFIG_DM_PMIC)
int power_init_board(void)
{
set_ps_hold_ctrl();