aboutsummaryrefslogtreecommitdiff
path: root/board
diff options
context:
space:
mode:
authorBiwen Li2020-07-02 11:13:02 +0800
committerPriyanka Jain2020-07-27 14:16:29 +0530
commit51d893cd3da63a880fc82bbeea1c3a2650cf9552 (patch)
treee2b1785bd68588d11f2868e4ac49636e29712f40 /board
parente70e10bc499de3e4c9090430249f37fe963e319c (diff)
freescale: ls1046aqds: drop ifdef CONFIG_SYS_I2C
- Drop ifdef CONFIG_SYS_I2C to initialize baudrate of i2c - Drop warning of i2c_early_init_f as follows, warning: implicit declaration of function 'i2c_early_init_f'; did you mean 'arch_early_init_r'? [-Wimplicit-function-declaration] Signed-off-by: Biwen Li <biwen.li@nxp.com> Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
Diffstat (limited to 'board')
-rw-r--r--board/freescale/ls1046aqds/ls1046aqds.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/board/freescale/ls1046aqds/ls1046aqds.c b/board/freescale/ls1046aqds/ls1046aqds.c
index de55a5d557a..33b10277af7 100644
--- a/board/freescale/ls1046aqds/ls1046aqds.c
+++ b/board/freescale/ls1046aqds/ls1046aqds.c
@@ -35,6 +35,10 @@
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] = {
{
@@ -337,11 +341,9 @@ int board_early_init_f(void)
*/
out_le32(cntcr, 0x1);
-#ifdef CONFIG_SYS_I2C
#ifdef CONFIG_SYS_I2C_EARLY_INIT
i2c_early_init_f();
#endif
-#endif
fsl_lsch2_early_init_f();
#ifdef CONFIG_HAS_FSL_XHCI_USB