Skip to contentSkip to conversation

EMMA2RH I2C driver

PATCH In review dmitry pervushin 2 participants 2 messages Mar 13, 2007 – Mar 14, 2007 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore
#1 lore raw

PATCH 1/1 EMMA2RH I2C driver

In reply to a message not in the archive

Below is patch to support I2C controller on NEC EMMA2RH board

Signed-off: dmitry pervushin <[email protected]>

 drivers/i2c/algos/Kconfig            |    5 
 drivers/i2c/algos/Makefile           |    1 
 drivers/i2c/algos/i2c-algo-emma2rh.c |  426 +++++++++++++++++++++++++++++++++++
 drivers/i2c/algos/i2c-algo-emma2rh.h |  105 ++++++++
 drivers/i2c/busses/Kconfig           |    7 
 drivers/i2c/busses/Makefile          |    1 
 drivers/i2c/busses/i2c-emma2rh.c     |  253 ++++++++++++++++++++
 7 files changed, 798 insertions(+)
drivers/i2c/algos/Kconfig +5 -0
Index: linux-2.6.20/drivers/i2c/algos/Kconfig
===================================================================
@@ -49,5 +49,10 @@ config I2C_ALGO_SGI
 	  Supports the SGI interfaces like the ones found on SGI Indy VINO
 	  or SGI O2 MACE.
 
+config I2C_ALGO_EMMA2RH
+	tristate "I2C EMMA2RH interfaces"
+	depends on I2C && MARKEINS
+	help
+	  NEC EMMA2RH I2C Algorithm
 endmenu
 
drivers/i2c/algos/Makefile +1 -0
Index: linux-2.6.20/drivers/i2c/algos/Makefile
===================================================================
@@ -6,6 +6,7 @@ obj-$(CONFIG_I2C_ALGOBIT)	+= i2c-algo-bi
 obj-$(CONFIG_I2C_ALGOPCF)	+= i2c-algo-pcf.o
 obj-$(CONFIG_I2C_ALGOPCA)	+= i2c-algo-pca.o
 obj-$(CONFIG_I2C_ALGO_SGI)	+= i2c-algo-sgi.o
+obj-$(CONFIG_I2C_ALGO_EMMA2RH)	+= i2c-algo-emma2rh.o
 
 ifeq ($(CONFIG_I2C_DEBUG_ALGO),y)
 EXTRA_CFLAGS += -DDEBUG
drivers/i2c/algos/i2c-algo-emma2rh.c new file +426 -0

426 lines not on this page · raw message

drivers/i2c/algos/i2c-algo-emma2rh.h new file +105 -0

105 lines not on this page · raw message

drivers/i2c/busses/Kconfig +7 -0
Index: linux-2.6.20/drivers/i2c/busses/Kconfig
===================================================================
@@ -573,4 +573,11 @@ config I2C_PNX
 	  This driver can also be built as a module.  If so, the module
 	  will be called i2c-pnx.
 
+config I2C_EMMA2RH
+	tristate "EMMA2RH I2C adapter"
+	depends on I2C && MARKEINS
+	select I2C_ALGO_EMMA2RH
+	help
+ 	  Support for NEC EMMA2RH I2C Adapter
+
 endmenu
drivers/i2c/busses/Makefile +1 -0
Index: linux-2.6.20/drivers/i2c/busses/Makefile
===================================================================
@@ -47,6 +47,7 @@ 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_EMMA2RH)	+= i2c-emma2rh.o
 
 ifeq ($(CONFIG_I2C_DEBUG_BUS),y)
 EXTRA_CFLAGS += -DDEBUG
drivers/i2c/busses/i2c-emma2rh.c new file +253 -0

253 lines not on this page · raw message

#2 lore raw
Quoted 1 line · dmitry pervushin

Below is patch to support I2C controller on NEC EMMA2RH board

I've dropped this one into the queue tree. Markus Gothe has already reported a bunch of issues so I'll leave polishing to him.

Ralf