forked from nuttx/nuttx-update
[MIMXRT1020-EVK:I2C] Fix board I2C code to adapt to last IMXRT I2C/pinmux updates
This commit is contained in:
parent
0083ae1b2c
commit
5cdd0230a8
2 changed files with 5 additions and 5 deletions
|
@ -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 ********************************************************************/
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue