gpio: add Lynxpoint chipset gpio driver
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
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
@@ -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
@@ -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
Grant Likely
AppliedRe: [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).Signed-off-by Mathias Nyman <[email protected]>
Applied, thanks
g.