Skip to contentSkip to conversation

tps65912: gpio: add gpio driver

PATCH In review Margarita Olaya 1 participant 1 message Jun 9, 2011

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

PATCH v5 3/4 tps65912: gpio: add gpio driver

TPS65912 has five GPIOs that can be configured for different purposes.

---
 drivers/gpio/Kconfig         |    6 ++
 drivers/gpio/Makefile        |    1 +
 drivers/gpio/gpio-tps65912.c |  156 ++++++++++++++++++++++++++++++++++++++++++
 include/linux/mfd/tps65912.h |    1 +
 4 files changed, 164 insertions(+), 0 deletions(-)
 create mode 100644 drivers/gpio/gpio-tps65912.c
drivers/gpio/Kconfig +6 -0
index 4a7f631..a57867d 100644
@@ -273,6 +273,12 @@ config GPIO_TC3589X
 	  This enables support for the GPIOs found on the TC3589X
 	  I/O Expander.
 
+config GPIO_TPS65912
+	tristate "TI TPS65912 GPIO"
+	depends on (MFD_TPS65912_I2C || MFD_TPS65912_SPI)
+	help
+	  This driver supports TPS65912 gpio chip
+
 config GPIO_TWL4030
 	tristate "TWL4030, TWL5030, and TPS659x0 GPIOs"
 	depends on TWL4030_CORE
drivers/gpio/Makefile +1 -0
index b605f8e..4af9627 100644
@@ -29,6 +29,7 @@ obj-$(CONFIG_GPIO_STMPE)	+= stmpe-gpio.o
 obj-$(CONFIG_GPIO_TC3589X)	+= tc3589x-gpio.o
 obj-$(CONFIG_GPIO_TIMBERDALE)	+= timbgpio.o
 obj-$(CONFIG_GPIO_TWL4030)	+= twl4030-gpio.o
+obj-$(CONFIG_GPIO_TPS65912)	+= gpio-tps65912.o
 obj-$(CONFIG_GPIO_UCB1400)	+= ucb1400_gpio.o
 obj-$(CONFIG_GPIO_XILINX)	+= xilinx_gpio.o
 obj-$(CONFIG_GPIO_CS5535)	+= cs5535-gpio.o
drivers/gpio/gpio-tps65912.c new file +156 -0

156 lines not on this page · raw message

include/linux/mfd/tps65912.h +1 -0
index be60fb2..aaceab4 100644
@@ -275,6 +275,7 @@ struct tps65912_board {
 	int is_dcdc4_avs;
 	int irq;
 	int irq_base;
+	int gpio_base;
 	struct regulator_init_data *tps65912_pmic_init_data;
 };
 
Signature · 1 line
1.7.0.4