[MIMXRT1020-EVK:I2C] Fix board I2C code to adapt to last IMXRT I2C/pinmux updates
This commit is contained in:
parent
0083ae1b2c
commit
5cdd0230a8
@ -222,10 +222,10 @@
|
|||||||
|
|
||||||
/* LPI2Cs *******************************************************************/
|
/* LPI2Cs *******************************************************************/
|
||||||
|
|
||||||
#define GPIO_LPI2C1_SDA GPIO_LPI2C1_SDA_1|IOMUX_I2C_DEFAULT /* AD_B1_15 */
|
#define GPIO_LPI2C1_SDA GPIO_LPI2C1_SDA_1|IOMUX_LPI2C_DEFAULT /* AD_B1_15 */
|
||||||
#define GPIO_LPI2C1_SCL GPIO_LPI2C1_SCL_1|IOMUX_I2C_DEFAULT /* AD_B1_14 */
|
#define GPIO_LPI2C1_SCL GPIO_LPI2C1_SCL_1|IOMUX_LPI2C_DEFAULT /* AD_B1_14 */
|
||||||
#define GPIO_LPI2C4_SDA GPIO_LPI2C4_SDA_1|IOMUX_I2C_DEFAULT /* SD_B1_02 */
|
#define GPIO_LPI2C4_SDA GPIO_LPI2C4_SDA_1|IOMUX_LPI2C_DEFAULT /* SD_B1_02 */
|
||||||
#define GPIO_LPI2C4_SCL GPIO_LPI2C4_SCL_1|IOMUX_I2C_DEFAULT /* SD_B1_03 */
|
#define GPIO_LPI2C4_SCL GPIO_LPI2C4_SCL_1|IOMUX_LPI2C_DEFAULT /* SD_B1_03 */
|
||||||
|
|
||||||
/* LPSPI ********************************************************************/
|
/* LPSPI ********************************************************************/
|
||||||
|
|
||||||
|
@ -173,7 +173,7 @@ int imxrt_bringup(void)
|
|||||||
struct i2c_master_s *i2c;
|
struct i2c_master_s *i2c;
|
||||||
|
|
||||||
#if defined(CONFIG_IMXRT_LPI2C1)
|
#if defined(CONFIG_IMXRT_LPI2C1)
|
||||||
i2c = imxrt_i2c_register(1);
|
imxrt_i2c_register(1);
|
||||||
#endif
|
#endif
|
||||||
#if defined(CONFIG_IMXRT_LPI2C4)
|
#if defined(CONFIG_IMXRT_LPI2C4)
|
||||||
i2c = imxrt_i2cbus_initialize(4);
|
i2c = imxrt_i2cbus_initialize(4);
|
||||||
|
Loading…
Reference in New Issue
Block a user