Skip to content

Commit a55fa9d

Browse files
Gao PanWolfram Sang
authored andcommitted
i2c: imx-lpi2c: add low power i2c bus driver
This patch adds lpi2c bus driver to support new i.MX products which use lpi2c instead of the old imx i2c. The lpi2c can continue operating in stop mode when an appropriate clock is available. It is also designed for low CPU overhead with DMA offloading of FIFO register accesses. Signed-off-by: Gao Pan <[email protected]> Reviewed-by: Fugang Duan <[email protected]> Reviewed-by: Vladimir Zapolskiy <[email protected]> Signed-off-by: Wolfram Sang <[email protected]>
1 parent 20ce1e3 commit a55fa9d

File tree

3 files changed

+657
-0
lines changed

3 files changed

+657
-0
lines changed

drivers/i2c/busses/Kconfig

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -597,6 +597,16 @@ config I2C_IMX
597597
This driver can also be built as a module. If so, the module
598598
will be called i2c-imx.
599599

600+
config I2C_IMX_LPI2C
601+
tristate "IMX Low Power I2C interface"
602+
depends on ARCH_MXC || COMPILE_TEST
603+
help
604+
Say Y here if you want to use the Low Power IIC bus controller
605+
on the Freescale i.MX processors.
606+
607+
This driver can also be built as a module. If so, the module
608+
will be called i2c-imx-lpi2c.
609+
600610
config I2C_IOP3XX
601611
tristate "Intel IOPx3xx and IXP4xx on-chip I2C interface"
602612
depends on ARCH_IOP32X || ARCH_IOP33X || ARCH_IXP4XX || ARCH_IOP13XX

drivers/i2c/busses/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ obj-$(CONFIG_I2C_HIX5HD2) += i2c-hix5hd2.o
5656
obj-$(CONFIG_I2C_IBM_IIC) += i2c-ibm_iic.o
5757
obj-$(CONFIG_I2C_IMG) += i2c-img-scb.o
5858
obj-$(CONFIG_I2C_IMX) += i2c-imx.o
59+
obj-$(CONFIG_I2C_IMX_LPI2C) += i2c-imx-lpi2c.o
5960
obj-$(CONFIG_I2C_IOP3XX) += i2c-iop3xx.o
6061
obj-$(CONFIG_I2C_JZ4780) += i2c-jz4780.o
6162
obj-$(CONFIG_I2C_KEMPLD) += i2c-kempld.o

0 commit comments

Comments
 (0)