summaryrefslogtreecommitdiff
path: root/board/freescale/imx8mq_evk
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2021-08-08 12:20:27 -0600
committerTom Rini <trini@konsulko.com>2021-09-04 12:26:02 -0400
commit9d8665b7091d7d67df7dd31eafe1b54e25f6c3e4 (patch)
treea433ee15481504deac558c511630d087ec1201b4 /board/freescale/imx8mq_evk
parent29d7153ec384e072755e8951a8a33f29372f925c (diff)
i2c: Convert CONFIG_POWER_I2C et al to Kconfig
This converts the following to Kconfig: CONFIG_POWER_I2C CONFIG_POWER_LEGACY They are handled at the same time due to a dependency between them. Update the Makefile rule to use legacy power only in U-Boot proper. Unfortunately a separate rule is needed in SPL to be able to build legacy power. Add SPL related symbols for both, to allow for SPL-only usage. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Jaehoon Chung <jh80.chung@samsung.com> [trini: More SPL related cleanups, reword commit message] Signed-off-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'board/freescale/imx8mq_evk')
-rw-r--r--board/freescale/imx8mq_evk/spl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/board/freescale/imx8mq_evk/spl.c b/board/freescale/imx8mq_evk/spl.c
index 6ee6230f74..67d069b2b0 100644
--- a/board/freescale/imx8mq_evk/spl.c
+++ b/board/freescale/imx8mq_evk/spl.c
@@ -156,7 +156,7 @@ int board_mmc_init(struct bd_info *bis)
return 0;
}
-#ifdef CONFIG_POWER_LEGACY
+#if CONFIG_IS_ENABLED(POWER_LEGACY)
#define I2C_PMIC 0
int power_init_board(void)
{