Skip to content

Commit b97c1d7

Browse files
JiafeiPankartben
authored andcommitted
drivers: i2c: add NXP i2c driver used on imx8m platforms
This native i2c driver works together with ii2c drive in hal_nxp. Signed-off-by: Jiafei Pan <[email protected]>
1 parent 5ccbcc7 commit b97c1d7

File tree

4 files changed

+437
-0
lines changed

4 files changed

+437
-0
lines changed

drivers/i2c/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ zephyr_library_sources_ifdef(CONFIG_I2C_NPCX i2c_npcx_controller.c)
4848
zephyr_library_sources_ifdef(CONFIG_I2C_NPCX i2c_npcx_port.c)
4949
zephyr_library_sources_ifdef(CONFIG_I2C_NRFX_TWIS i2c_nrfx_twis.c)
5050
zephyr_library_sources_ifdef(CONFIG_I2C_NUMAKER i2c_numaker.c)
51+
zephyr_library_sources_ifdef(CONFIG_I2C_NXP_II2C i2c_nxp_ii2c.c)
5152
zephyr_library_sources_ifdef(CONFIG_I2C_OMAP i2c_omap.c)
5253
zephyr_library_sources_ifdef(CONFIG_I2C_RCAR i2c_rcar.c)
5354
zephyr_library_sources_ifdef(CONFIG_I2C_RENESAS_RA_IIC i2c_renesas_ra_iic.c)

drivers/i2c/Kconfig

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -261,4 +261,11 @@ config GPIO_I2C_SWITCH
261261
help
262262
Enable GPIO controlled I2C bus switch driver.
263263

264+
config I2C_NXP_II2C
265+
bool "NXP i.MX8M serial I2C driver"
266+
default y
267+
depends on DT_HAS_NXP_II2C_ENABLED
268+
help
269+
Enable the NXP II2C driver.
270+
264271
endif # I2C

0 commit comments

Comments
 (0)