Skip to contentSkip to conversation

GPIO: add support for RDC321x GPIO controller

PATCH In review Florian Fainelli 1 participant 1 message Mar 21, 2010 GPIO

lore
Share & tools
lore
#0 lore raw

PATCH v3 2/4 GPIO: add support for RDC321x GPIO controller

This patch adds a new GPIO driver for the RDC321x SoC GPIO controller.

---
Changes from v2:
- initialize spinlock earlier
- do not declare and assign gpch variables on the same line
- use the pci_dev pointer passed as platform data
- replaced rdc321x_pci_{read,write}

drivers/gpio/Kconfig +8 -0
index fee678f..dd10eb8 100644
@@ -275,6 +275,14 @@ config GPIO_TIMBERDALE
 	---help---
 	Add support for the GPIO IP in the timberdale FPGA.
 
+config GPIO_RDC321X
+	tristate "RDC R-321x GPIO support"
+	depends on PCI && GPIOLIB
+	select MFD_RDC321X
+	help
+	  Support for the RDC R321x SoC GPIOs over southbridge
+	  PCI configuration space.
+
 comment "SPI GPIO expanders:"
 
 config GPIO_MAX7301
drivers/gpio/Makefile +2 -1
index 10f3f8d..d3226d3 100644
@@ -27,4 +27,5 @@ obj-$(CONFIG_GPIO_VR41XX)	+= vr41xx_giu.o
 obj-$(CONFIG_GPIO_WM831X)	+= wm831x-gpio.o
 obj-$(CONFIG_GPIO_WM8350)	+= wm8350-gpiolib.o
 obj-$(CONFIG_GPIO_WM8994)	+= wm8994-gpio.o
-obj-$(CONFIG_GPIO_SCH)		+= sch_gpio.o
\ No newline at end of file
+obj-$(CONFIG_GPIO_SCH)		+= sch_gpio.o
+obj-$(CONFIG_GPIO_RDC321X)	+= rdc321x-gpio.o
drivers/gpio/rdc321x-gpio.c new file +245 -0

245 lines not on this page · raw message