Skip to contentSkip to conversation

GPIO: MIPS: add gpio driver for falcon SoC

PATCH New John Crispin 1 participant 1 message Aug 16, 2012 GPIO

lore
Share & tools
lore
#0 lore raw

PATCH v3 5/6 GPIO: MIPS: add gpio driver for falcon SoC

Add driver for GPIO blocks found on Lantiq FALCON SoC. The SoC has 5 banks of up to 32 pads. The GPIO blocks have a per pin IRQs.

---
Changes in V2
* fix typo in the subject line

Changes in V3
* remove gpio_to_irq hack. This is now fixed by a patch going upstream via the MIPS tree and avoids a rather ugly #ifdef

 drivers/gpio/Kconfig       |    5 +
 drivers/gpio/Makefile      |    1 +
 drivers/gpio/gpio-falcon.c |  349 ++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 355 insertions(+), 0 deletions(-)
 create mode 100644 drivers/gpio/gpio-falcon.c
drivers/gpio/Kconfig +5 -0
index b16c8a7..c8d3ada 100644
@@ -114,6 +114,11 @@ config GPIO_EP93XX
 	depends on ARCH_EP93XX
 	select GPIO_GENERIC
 
+config GPIO_FALCON
+	def_bool y
+	depends on MIPS && SOC_FALCON
+	select GPIO_GENERIC
+
 config GPIO_MM_LANTIQ
 	bool "Lantiq Memory mapped GPIOs"
 	depends on LANTIQ && SOC_XWAY
drivers/gpio/Makefile +1 -0
index 153cace..727afc0 100644
@@ -20,6 +20,7 @@ obj-$(CONFIG_GPIO_DA9052)	+= gpio-da9052.o
 obj-$(CONFIG_ARCH_DAVINCI)	+= gpio-davinci.o
 obj-$(CONFIG_GPIO_EM)		+= gpio-em.o
 obj-$(CONFIG_GPIO_EP93XX)	+= gpio-ep93xx.o
+obj-$(CONFIG_GPIO_FALCON)	+= gpio-falcon.o
 obj-$(CONFIG_GPIO_GE_FPGA)	+= gpio-ge.o
 obj-$(CONFIG_GPIO_ICH)		+= gpio-ich.o
 obj-$(CONFIG_GPIO_IT8761E)	+= gpio-it8761e.o
drivers/gpio/gpio-falcon.c new file +349 -0

349 lines not on this page · raw message

Signature · 1 line
1.7.9.1