summaryrefslogtreecommitdiff
path: root/board/freescale/ls1046aqds
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2021-08-19 06:12:25 +0300
committerTom Rini <trini@konsulko.com>2021-08-30 21:10:07 +0300
commit52c7e375966ee6e9af6a3d78092122d26a0e0184 (patch)
tree8ea4580a95632d3574675619c57fbadeddb357ba /board/freescale/ls1046aqds
parent55dabcc8f24598e2777f663de09ab55fbe1269da (diff)
downloadu-boot-52c7e375966ee6e9af6a3d78092122d26a0e0184.tar.xz
Convert CONFIG_SYS_I2C_EARLY_INIT to Kconfig
Convert SYS_I2C_EARLY_INIT to Kconfig, and make it depend on SPL_SYS_I2C_LEGACY. Remove the weak implementation as it's either something that needs to exist for real, or shouldn't be called. Signed-off-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'board/freescale/ls1046aqds')
-rw-r--r--board/freescale/ls1046aqds/ls1046aqds.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/board/freescale/ls1046aqds/ls1046aqds.c b/board/freescale/ls1046aqds/ls1046aqds.c
index 2b0786ac30..cc95d441b6 100644
--- a/board/freescale/ls1046aqds/ls1046aqds.c
+++ b/board/freescale/ls1046aqds/ls1046aqds.c
@@ -37,10 +37,6 @@
DECLARE_GLOBAL_DATA_PTR;
-#ifdef CONFIG_SYS_I2C_EARLY_INIT
-void i2c_early_init_f(void);
-#endif
-
#ifdef CONFIG_TFABOOT
struct ifc_regs ifc_cfg_nor_boot[CONFIG_SYS_FSL_IFC_BANK_COUNT] = {
{
@@ -318,7 +314,7 @@ int board_early_init_f(void)
*/
out_le32(cntcr, 0x1);
-#ifdef CONFIG_SYS_I2C_EARLY_INIT
+#if defined(CONFIG_SYS_I2C_EARLY_INIT)
i2c_early_init_f();
#endif
fsl_lsch2_early_init_f();