Skip to contentSkip to conversation

I2C driver supporting Moorestown and Medfield platform

PATCH New Alan Cox 1 participant 1 message Oct 14, 2010 I2C subsystem host drivers

lore
Share & tools
lore

Alan Cox

author
#0 lore raw

PATCH 1/1 I2C driver supporting Moorestown and Medfield platform

From: Wen Wang <[email protected]>

Initial release of the driver. Updated and verified on hardware.

Cleaned up as follows and with fixes backported out of the internal tree for Meego.

Alan Cox:
Squash down the switches into tables, and use the PCI ident field. We could perhaps take this further and put the platform and port number into this.
uint32t -> u32
bracketing of case statements
spacing and '!' usage
Check the speed (which is now 0/1/2) is valid and ignore otherwise.

Arjan van de Ven:
Initial power management hooks

Yong Wang <[email protected]>:
Shared IRQ support

Wen Wang <[email protected]>:
D3 support
Fixes for OCT test runs
Interrupt optimisations

Hong Liu <[email protected]>

	The runtime PM code is working on the wrong device (i2c_adapter->dev).
	The correct one should be pci_dev->dev. This breaks attached i2c
	slave devices with runtime PM enabled. Slave device needs to runtime
	resume parent device before runtime resuming itself, but we always get
	error since we don't have pm_runtime callback for i2c_adapter->dev.

Bin Yang <[email protected]>:
Update speed table

Saadi Maalem <[email protected]>:
Clear all interrupts in the hardware init

Celine Chotard <[email protected]>:
Correct ordering of clear/disable of IRQs

---

 drivers/i2c/busses/Kconfig         |    9 
 drivers/i2c/busses/Makefile        |    1 
 drivers/i2c/busses/i2c-intel-mid.c | 1132 ++++++++++++++++++++++++++++++++++++
 3 files changed, 1142 insertions(+), 0 deletions(-)
 create mode 100644 drivers/i2c/busses/i2c-intel-mid.c
drivers/i2c/busses/Kconfig +9 -0
index 6539ac2..1ba849a 100644
@@ -420,6 +420,15 @@ config I2C_IXP2000
 	  This driver is deprecated and will be dropped soon. Use i2c-gpio
 	  instead.
 
+config I2C_INTEL_MID
+	tristate "Intel Moorestown/Medfield Platform I2C controller"
+	help
+	  Say Y here if you have an Intel Moorestown/Medfield platform I2C
+	  controller.
+
+	  This support is also available as a module. If so, the module
+	  will be called i2c-intel-mid.
+
 config I2C_MPC
 	tristate "MPC107/824x/85xx/512x/52xx/83xx/86xx"
 	depends on PPC32
drivers/i2c/busses/Makefile +1 -0
index 033ad41..3742d58 100644
@@ -40,6 +40,7 @@ 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_INTEL_MID)	+= i2c-intel-mid.o
 obj-$(CONFIG_I2C_MPC)		+= i2c-mpc.o
 obj-$(CONFIG_I2C_MV64XXX)	+= i2c-mv64xxx.o
 obj-$(CONFIG_I2C_NOMADIK)	+= i2c-nomadik.o
drivers/i2c/busses/i2c-intel-mid.c new file +1132 -0

1,132 lines not on this page · raw message