From 5cdd0230a8947c7cd07d40a02f3293317954793c Mon Sep 17 00:00:00 2001 From: Gabriel Aguilar Date: Sun, 30 Jun 2024 22:22:05 +0200 Subject: [PATCH] [MIMXRT1020-EVK:I2C] Fix board I2C code to adapt to last IMXRT I2C/pinmux updates --- boards/arm/imxrt/imxrt1020-evk/include/board.h | 8 ++++---- boards/arm/imxrt/imxrt1020-evk/src/imxrt_bringup.c | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/boards/arm/imxrt/imxrt1020-evk/include/board.h b/boards/arm/imxrt/imxrt1020-evk/include/board.h index 7d0feb961a..811dde1615 100644 --- a/boards/arm/imxrt/imxrt1020-evk/include/board.h +++ b/boards/arm/imxrt/imxrt1020-evk/include/board.h @@ -222,10 +222,10 @@ /* LPI2Cs *******************************************************************/ -#define GPIO_LPI2C1_SDA GPIO_LPI2C1_SDA_1|IOMUX_I2C_DEFAULT /* AD_B1_15 */ -#define GPIO_LPI2C1_SCL GPIO_LPI2C1_SCL_1|IOMUX_I2C_DEFAULT /* AD_B1_14 */ -#define GPIO_LPI2C4_SDA GPIO_LPI2C4_SDA_1|IOMUX_I2C_DEFAULT /* SD_B1_02 */ -#define GPIO_LPI2C4_SCL GPIO_LPI2C4_SCL_1|IOMUX_I2C_DEFAULT /* SD_B1_03 */ +#define GPIO_LPI2C1_SDA GPIO_LPI2C1_SDA_1|IOMUX_LPI2C_DEFAULT /* AD_B1_15 */ +#define GPIO_LPI2C1_SCL GPIO_LPI2C1_SCL_1|IOMUX_LPI2C_DEFAULT /* AD_B1_14 */ +#define GPIO_LPI2C4_SDA GPIO_LPI2C4_SDA_1|IOMUX_LPI2C_DEFAULT /* SD_B1_02 */ +#define GPIO_LPI2C4_SCL GPIO_LPI2C4_SCL_1|IOMUX_LPI2C_DEFAULT /* SD_B1_03 */ /* LPSPI ********************************************************************/ diff --git a/boards/arm/imxrt/imxrt1020-evk/src/imxrt_bringup.c b/boards/arm/imxrt/imxrt1020-evk/src/imxrt_bringup.c index 11fb1fe4ca..ddf87cb7d5 100644 --- a/boards/arm/imxrt/imxrt1020-evk/src/imxrt_bringup.c +++ b/boards/arm/imxrt/imxrt1020-evk/src/imxrt_bringup.c @@ -173,7 +173,7 @@ int imxrt_bringup(void) struct i2c_master_s *i2c; #if defined(CONFIG_IMXRT_LPI2C1) - i2c = imxrt_i2c_register(1); + imxrt_i2c_register(1); #endif #if defined(CONFIG_IMXRT_LPI2C4) i2c = imxrt_i2cbus_initialize(4);