Commit 12bd7f321b55ac059387407a42b31cf4877519af

Authored by Biwen Li
Committed by Priyanka Jain
1 parent ddb7ab769f

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>

Showing 1 changed file with 4 additions and 2 deletions Side-by-side Diff

board/freescale/ls1046aqds/ls1046aqds.c
... ... @@ -34,6 +34,10 @@
34 34  
35 35 DECLARE_GLOBAL_DATA_PTR;
36 36  
  37 +#ifdef CONFIG_SYS_I2C_EARLY_INIT
  38 +void i2c_early_init_f(void);
  39 +#endif
  40 +
37 41 #ifdef CONFIG_TFABOOT
38 42 struct ifc_regs ifc_cfg_nor_boot[CONFIG_SYS_FSL_IFC_BANK_COUNT] = {
39 43 {
40 44  
... ... @@ -336,10 +340,8 @@
336 340 */
337 341 out_le32(cntcr, 0x1);
338 342  
339   -#ifdef CONFIG_SYS_I2C
340 343 #ifdef CONFIG_SYS_I2C_EARLY_INIT
341 344 i2c_early_init_f();
342   -#endif
343 345 #endif
344 346 fsl_lsch2_early_init_f();
345 347