I2C driver for IMX
Subsystems (5)
Arm (32-bit) Arm sub-architectures Arm i.MX and Layerscape I2C subsystem host drivers +1 more subsystems
PATCH v7 1/1 I2C driver for IMX
Changes from V6 version:
- Debug print fixed
- Function prototypes removed
Ben, can you put my patch to Linus git?
Signed-off-by Darius Augulis <[email protected]>
---
arch/arm/mach-imx/mx1ads.c +21 -0
@@ -109,10 +109,31 @@ static struct platform_device imx_uart2_ } }; +static struct resource imx_i2c_resources[] = { + [0 ] = { + .start =0x00217000 , + .end =0x00217010 , + .flags =IORESOURCE_MEM , + }, + [1 ] = { + .start =I2C_INT , + .end =I2C_INT , + .flags =IORESOURCE_IRQ , + }, +}; + +static struct platform_device imx_i2c_device = { + .name ="imx-i2c" , + .id =0 , + .resource = imx_i2c_resources, + .num_resources =ARRAY_SIZE (imx_i2c_resources), +}; +static struct platform_device *devices[]__initdata = { &cs89x0_device, &imx_uart1_device, &imx_uart2_device, + &imx_i2c_device, };#ifdef CONFIG_MMC_IMX
drivers/i2c/busses/i2c-imx.c new file +629 -0
629 lines not on this page · raw message
drivers/i2c/busses/Kconfig +10 -0
@@ -257,6 +257,16 @@ config I2C_IBM_IIC This driver can also be built as a module. If so, the module will be called i2c-ibm_iic. +config I2C_IMX + tristate "IMX I2C interface" + depends on ARCH_IMX + help + Say Y here if you want to use the IIC bus controller on + the Freescale i.MXL and i.MX1 processors. + + This driver can also be built as a module. If so, the module + will be called i2c-imx. + config I2C_IOP3XX tristate "Intel IOPx3xx and IXP4xx on-chip I2C interface" depends on ARCH_IOP32X || ARCH_IOP33X || ARCH_IXP4XX || ARCH_IOP13XX
drivers/i2c/busses/Makefile +1 -0
@@ -18,6 +18,7 @@ obj-$(CONFIG_I2C_HYDRA) += i2c-hydra.o obj-$(CONFIG_I2C_I801) += i2c-i801.o obj-$(CONFIG_I2C_I810) += i2c-i810.o obj-$(CONFIG_I2C_IBM_IIC) += i2c-ibm_iic.o +obj-$(CONFIG_I2C_IMX) += i2c-imx.o obj-$(CONFIG_I2C_IOP3XX) += i2c-iop3xx.o obj-$(CONFIG_I2C_IXP2000) += i2c-ixp2000.o obj-$(CONFIG_I2C_POWERMAC) += i2c-powermac.o
-------------------------------------------------------------------
List admin: http://lists.arm.linux.org.uk/mailman/listinfo/linux-arm-kernel FAQ: http://www.arm.linux.org.uk/mailinglists/faq.php Etiquette: http://www.arm.linux.org.uk/mailinglists/etiquette.php