Skip to contentSkip to conversation

gpio: add MSIC gpio driver

PATCH Superseded Alan Cox 1 participant 1 message Feb 6, 2012 GPIO

lore
Share & tools
lore

Alan Cox

author
#0 lore raw

PATCH 1/1 gpio: add MSIC gpio driver

From: Mathias Nyman <[email protected]>

Add gpio support for Intel MSIC chips found in Intel Medfield platforms. MSIC supports totally 24 GPIOs with 16 low voltage and 8 high voltage pins. Driver uses MSIC mfd interface for MSIC access.

---

 drivers/gpio/Kconfig     |    8 +
 drivers/gpio/Makefile    |    1 
 drivers/gpio/gpio-msic.c |  336 ++++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 345 insertions(+), 0 deletions(-)
 create mode 100644 drivers/gpio/gpio-msic.c
drivers/gpio/Kconfig +8 -0
index eaa7d38..313c8c7 100644
@@ -495,4 +495,12 @@ config GPIO_TPS65910
 	help
 	  Select this option to enable GPIO driver for the TPS65910
 	  chip family.
+
+config GPIO_MSIC
+	bool "Intel MSIC mixed signal gpio support"
+	depends on MFD_INTEL_MSIC
+	help
+	  Enable support for GPIO on intel MSIC controllers found in
+	  intel MID devices
+
 endif
drivers/gpio/Makefile +1 -0
index 8863a7f..5517f7f 100644
@@ -31,6 +31,7 @@ obj-$(CONFIG_GPIO_MCP23S08)	+= gpio-mcp23s08.o
 obj-$(CONFIG_GPIO_ML_IOH)	+= gpio-ml-ioh.o
 obj-$(CONFIG_GPIO_MPC5200)	+= gpio-mpc5200.o
 obj-$(CONFIG_GPIO_MPC8XXX)	+= gpio-mpc8xxx.o
+obj-$(CONFIG_GPIO_MSIC)		+= gpio-msic.o
 obj-$(CONFIG_GPIO_MSM_V1)	+= gpio-msm-v1.o
 obj-$(CONFIG_GPIO_MSM_V2)	+= gpio-msm-v2.o
 obj-$(CONFIG_GPIO_MXC)		+= gpio-mxc.o
drivers/gpio/gpio-msic.c new file +336 -0

336 lines not on this page · raw message