twl4030-gpio driver
PATCH 3/3 twl4030-gpio driver
From: David Brownell <[email protected]>
This adds basic support for the GPIOs in the twl4030 power management chip. That includes two open drain LED drivers, and the use of GPIO-0 (and GPIO-1) as MMC/SD card detect switches which can control whether the VMMC1 (and VMMC2) regulators are active.
This version of the code has a debounce call that will probably be replaced before long, when a more generic interface exists.
Signed-off-by David Brownell <[email protected]>
Signed-off-by Tony Lindgren <[email protected]>
---
Patch depends on the twl4030-irq patch.
drivers/gpio/Kconfig | 7 drivers/gpio/Makefile | 1 drivers/gpio/twl4030-gpio.c | 521 ++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 529 insertions(+)
drivers/gpio/Kconfig +7 -0
@@ -127,6 +127,13 @@ config GPIO_PCF857X This driver provides an in-kernel interface to those GPIOs using platform-neutral GPIO calls. +config GPIO_TWL4030 + tristate "TWL4030, TWL5030, and TPS659x0 GPIOs" + depends on TWL4030_CORE + help + Say yes here to access the GPIO signals of various multi-function + power management chips from Texas Instruments. + comment "PCI GPIO expanders:" config GPIO_BT8XX
drivers/gpio/Makefile +1 -0
@@ -9,4 +9,5 @@ obj-$(CONFIG_GPIO_MAX732X) += max732x.o obj-$(CONFIG_GPIO_MCP23S08) += mcp23s08.o obj-$(CONFIG_GPIO_PCA953X) += pca953x.o obj-$(CONFIG_GPIO_PCF857X) += pcf857x.o +obj-$(CONFIG_GPIO_TWL4030) += twl4030-gpio.o obj-$(CONFIG_GPIO_BT8XX) += bt8xxgpio.o
drivers/gpio/twl4030-gpio.c new file +521 -0
521 lines not on this page · raw message