Skip to contentSkip to conversation

gpio: add Lynxpoint chipset gpio driver

PATCH Applied Mathias Nyman 2 participants 3 messages Dec 12, 2012 – Dec 19, 2012

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

v2 cover gpio: add Lynxpoint chipset gpio driver

This gpio controller driver for the Intel Lynxpoint LP PCH chipset is designed to work with the new ACPI 5 enumeration model and ACPI 5 GpioIo/GpioInt resource translation recently added to linux-acpi.

v2 changes:
- removed variables from lp_gpio struct that are used only locally
- renamed gpio_reg() to lp_gpio_reg()
- renamed gpio variable to offset or hwirq where needed.
- added comments about register layout
- removed __devexit/__devinit macros
- removed #ifdefs and added ACPI dependancy instead
- added simple runtime pm support
- added lp_gpio_free()

Mathias Nyman (1):
gpio: add Lynxpoint chipset gpio driver.

 drivers/gpio/Kconfig          |    8 +
 drivers/gpio/Makefile         |    1 +
 drivers/gpio/gpio-lynxpoint.c |  469 +++++++++++++++++++++++++++++++++++++++++
 3 files changed, 478 insertions(+), 0 deletions(-)
 create mode 100644 drivers/gpio/gpio-lynxpoint.c
Signature · 1 line
1.7.4.1
#1 lore raw

PATCH v2 1/1 gpio: add Lynxpoint chipset gpio driver.

Add gpio support for Intel Lynxpoint chipset.
Lynxpoint supports 94 gpio pins which can generate interrupts. Driver will fail requests for pins that are marked as owned by ACPI, or set in an alternate mode (non-gpio).

---
 drivers/gpio/Kconfig          |    8 +
 drivers/gpio/Makefile         |    1 +
 drivers/gpio/gpio-lynxpoint.c |  469 +++++++++++++++++++++++++++++++++++++++++
 3 files changed, 478 insertions(+), 0 deletions(-)
 create mode 100644 drivers/gpio/gpio-lynxpoint.c
drivers/gpio/Kconfig +8 -0
index a22b5b7..46601a7 100644
@@ -289,6 +289,14 @@ config GPIO_GE_FPGA
 	  and write pin state) for GPIO implemented in a number of GE single
 	  board computers.
 
+config GPIO_LYNXPOINT
+	bool "Intel Lynxpoint GPIO support"
+	depends on ACPI
+	select IRQ_DOMAIN
+	help
+	  driver for GPIO functionality on Intel Lynxpoint PCH chipset
+	  Requires ACPI device enumeration code to set up a platform device.
+
 comment "I2C GPIO expanders:"
 
 config GPIO_ARIZONA
drivers/gpio/Makefile +1 -0
index 1d49aa7..2ad5cbd 100644
@@ -31,6 +31,7 @@ obj-$(CONFIG_GPIO_JANZ_TTL)	+= gpio-janz-ttl.o
 obj-$(CONFIG_ARCH_KS8695)	+= gpio-ks8695.o
 obj-$(CONFIG_GPIO_LANGWELL)	+= gpio-langwell.o
 obj-$(CONFIG_ARCH_LPC32XX)	+= gpio-lpc32xx.o
+obj-$(CONFIG_GPIO_LYNXPOINT)	+= gpio-lynxpoint.o
 obj-$(CONFIG_GPIO_MAX730X)	+= gpio-max730x.o
 obj-$(CONFIG_GPIO_MAX7300)	+= gpio-max7300.o
 obj-$(CONFIG_GPIO_MAX7301)	+= gpio-max7301.o
drivers/gpio/gpio-lynxpoint.c new file +469 -0

469 lines not on this page · raw message

Signature · 1 line
1.7.4.1
Applied
#2 lore raw

Re: [PATCH v2 1/1] gpio: add Lynxpoint chipset gpio driver.

Quoted 6 lines · Mathias Nyman

Add gpio support for Intel Lynxpoint chipset.
Lynxpoint supports 94 gpio pins which can generate interrupts. Driver will fail requests for pins that are marked as owned by ACPI, or set in an alternate mode (non-gpio).

Applied, thanks

g.