Skip to contentSkip to conversation

I2C bus driver for Philips ARM boards

PATCH New Vitaly Wool 1 participant 1 message Jun 23, 2006

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 I2C bus driver for Philips ARM boards

Please find below the updated version of the I2C bus driver for Philips ARM boards (Philips IP3204 I2C IP block). This I2C controller can be found on PNX010x, PNX52xx and PNX4008 Philips boards. Any comments are welcome.

 arch/arm/mach-pnx4008/Makefile     |    2
 arch/arm/mach-pnx4008/i2c.c        |  186 +++++++++
 drivers/i2c/busses/Kconfig         |   10
 drivers/i2c/busses/Makefile        |    2
 drivers/i2c/busses/i2c-pnx.c       |  761 +++++++++++++++++++++++++++++++++++++
 include/asm-arm/arch-pnx4008/i2c.h |   80 +++
 include/linux/i2c-pnx.h            |   51 ++
 7 files changed, 1091 insertions(+), 1 deletion(-)
drivers/i2c/busses/Kconfig +10 -0
Index: linux-2.6.git/drivers/i2c/busses/Kconfig
===================================================================
@@ -517,4 +517,14 @@ config I2C_MV64XXX
 	  This driver can also be built as a module.  If so, the module
 	  will be called i2c-mv64xxx.
 
+config I2C_PNX
+       tristate "I2C bus support for Philips PNX targets"
+       depends on ARCH_PNX4008 && I2C
+       help
+         This driver supports the Philips IP3204 I2C IP block master and/or
+         slave controller
+
+         This driver can also be built as a module.  If so, the module
+         will be called i2c-pnx.
+
 endmenu
drivers/i2c/busses/Makefile +2 -0
Index: linux-2.6.git/drivers/i2c/busses/Makefile
===================================================================
@@ -42,6 +42,8 @@ obj-$(CONFIG_I2C_VIAPRO)	+= i2c-viapro.o
 obj-$(CONFIG_I2C_VOODOO3)	+= i2c-voodoo3.o
 obj-$(CONFIG_SCx200_ACB)	+= scx200_acb.o
 obj-$(CONFIG_SCx200_I2C)	+= scx200_i2c.o
+obj-$(CONFIG_I2C_PNX)		+= i2c-pnx.o
+
 
 ifeq ($(CONFIG_I2C_DEBUG_BUS),y)
 EXTRA_CFLAGS += -DDEBUG
drivers/i2c/busses/i2c-pnx.c new file +761 -0

761 lines not on this page · raw message

include/asm-arm/arch-pnx4008/i2c.h new file +80 -0

80 lines not on this page · raw message

include/linux/i2c-pnx.h new file +51 -0

51 lines not on this page · raw message

arch/arm/mach-pnx4008/Makefile +1 -1
Index: linux-2.6.git/arch/arm/mach-pnx4008/Makefile
===================================================================
@@ -2,7 +2,7 @@
 # Makefile for the linux kernel.
 #
 
-obj-y			:= core.o irq.o time.o clock.o gpio.o serial.o dma.o
+obj-y			:= core.o irq.o time.o clock.o gpio.o serial.o dma.o i2c.o
 obj-m			:=
 obj-n			:=
 obj-			:=
arch/arm/mach-pnx4008/i2c.c new file +186 -0

186 lines not on this page · raw message