Skip to contentSkip to conversation

add I2C adapter driver for the netX family of processors

PATCH New Juergen Beisert 1 participant 1 message Apr 27, 2012 I2C subsystem host drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 add I2C adapter driver for the netX family of processors

drivers/i2c/busses/Kconfig +10 -0
index d2c5095..6c01f17 100644
@@ -425,6 +425,16 @@ config I2C_IMX
 	  This driver can also be built as a module.  If so, the module
 	  will be called i2c-imx.
 
+config I2C_NETX
+	tristate "NETX I2C interface"
+	depends on ARCH_NETX
+	help
+	  Say Y here if you want to use the IIC bus controller on
+	  the Hilscher netX processors.
+
+	  This driver can also be built as a module.  If so, the module
+	  will be called i2c-netx.
+
 config I2C_INTEL_MID
 	tristate "Intel Moorestown/Medfield Platform I2C controller"
 	depends on PCI
drivers/i2c/busses/Makefile +1 -0
index 569567b..acbe444 100644
@@ -65,6 +65,7 @@ obj-$(CONFIG_I2C_SH7760)	+= i2c-sh7760.o
 obj-$(CONFIG_I2C_SH_MOBILE)	+= i2c-sh_mobile.o
 obj-$(CONFIG_I2C_SIMTEC)	+= i2c-simtec.o
 obj-$(CONFIG_I2C_SIRF)		+= i2c-sirf.o
+obj-$(CONFIG_I2C_NETX)		+= i2c-netx.o
 obj-$(CONFIG_I2C_STU300)	+= i2c-stu300.o
 obj-$(CONFIG_I2C_TEGRA)		+= i2c-tegra.o
 obj-$(CONFIG_I2C_VERSATILE)	+= i2c-versatile.o
drivers/i2c/busses/i2c-netx.c new file +422 -0

422 lines not on this page · raw message

include/linux/platform_data/netx_iic.h new file +10 -0
new file mode 100644
index 0000000..a3e9536
@@ -0,0 +1,10 @@
+#ifndef PLATFORM_DATA_NETX_IIC_H
+# define PLATFORM_DATA_NETX_IIC_H
+
+struct netx_i2c_pdata {
+	unsigned speed;	/* in [kHz] */
+};
+
+#define NETX_IIC_DRIVER_NAME "netx-iic"
+
+#endif
Signature · 2 lines
Pengutronix e.K.                              | Juergen Beisert             |
Linux Solutions for Science and Industry      | http://www.pengutronix.de/  |