summaryrefslogtreecommitdiffstats
path: root/board/freescale/ls1043aqds/ls1043aqds.c
diff options
context:
space:
mode:
authorBiwen Li <biwen.li@nxp.com>2020-07-02 11:13:04 +0800
committerPriyanka Jain <priyanka.jain@nxp.com>2020-07-27 14:16:29 +0530
commit3bb30b9c76f194394ddc46c94714ff5cbd0aac39 (patch)
tree8d9833216310e1e625cd44e6bff051115cb082fb /board/freescale/ls1043aqds/ls1043aqds.c
parent1b2bdd0605bea767de2b43f956e7339c2ee93bad (diff)
downloadu-boot-3bb30b9c76f194394ddc46c94714ff5cbd0aac39.tar.gz
u-boot-3bb30b9c76f194394ddc46c94714ff5cbd0aac39.tar.xz
u-boot-3bb30b9c76f194394ddc46c94714ff5cbd0aac39.zip
freescale: ls1043aqds: 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/freescale/ls1043aqds/ls1043aqds.c')
-rw-r--r--board/freescale/ls1043aqds/ls1043aqds.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/board/freescale/ls1043aqds/ls1043aqds.c b/board/freescale/ls1043aqds/ls1043aqds.c
index 8c0d0dbafa..ef0f2e6122 100644
--- a/board/freescale/ls1043aqds/ls1043aqds.c
+++ b/board/freescale/ls1043aqds/ls1043aqds.c
@@ -50,6 +50,10 @@ enum {
#define CFG_UART_MUX_SHIFT 1
#define CFG_LPUART_EN 0x1
+#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] = {
{
@@ -467,11 +471,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