mirror of
https://xff.cz/git/u-boot/
synced 2025-09-07 19:52:15 +02:00
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>
This commit is contained in:
@@ -35,6 +35,10 @@
|
|||||||
|
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
DECLARE_GLOBAL_DATA_PTR;
|
||||||
|
|
||||||
|
#ifdef CONFIG_SYS_I2C_EARLY_INIT
|
||||||
|
void i2c_early_init_f(void);
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_TFABOOT
|
#ifdef CONFIG_TFABOOT
|
||||||
struct ifc_regs ifc_cfg_nor_boot[CONFIG_SYS_FSL_IFC_BANK_COUNT] = {
|
struct ifc_regs ifc_cfg_nor_boot[CONFIG_SYS_FSL_IFC_BANK_COUNT] = {
|
||||||
{
|
{
|
||||||
@@ -337,10 +341,8 @@ int board_early_init_f(void)
|
|||||||
*/
|
*/
|
||||||
out_le32(cntcr, 0x1);
|
out_le32(cntcr, 0x1);
|
||||||
|
|
||||||
#ifdef CONFIG_SYS_I2C
|
|
||||||
#ifdef CONFIG_SYS_I2C_EARLY_INIT
|
#ifdef CONFIG_SYS_I2C_EARLY_INIT
|
||||||
i2c_early_init_f();
|
i2c_early_init_f();
|
||||||
#endif
|
|
||||||
#endif
|
#endif
|
||||||
fsl_lsch2_early_init_f();
|
fsl_lsch2_early_init_f();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user