Skip to contentSkip to conversation

ppc4xx gpio driver

PATCH In review Steven A. Falco 2 participants 2 messages Oct 13, 2008

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

PATCH v7 1/1 ppc4xx gpio driver

This patch adds support for the GPIO functions of PPC40x and PPC44x SOCs.

---
I believe I've satisfied all the comments that have been made for this driver.

Josh - is there anything else you'd like to see before pulling this into your tree?

Changes from the previous version:

1) Removed !! from the input routine. A separate patch for sysfs gpio export to sanitize its input has been posted.

2) Used the clr/set macros to improve readability.

3) Changed the device from amcc to ibm.

arch/powerpc/platforms/40x/Kconfig +8 -0
index a9260e2..aaada72 100644
@@ -139,6 +139,14 @@ config STB03xxx
 	select IBM405_ERR77
 	select IBM405_ERR51
 
+config PPC4xx_GPIO
+	bool "PPC4xx GPIO support"
+	depends on 40x
+	select ARCH_REQUIRE_GPIOLIB
+	select GENERIC_GPIO
+	help
+	  Enable gpiolib support for ppc40x based boards
+
 # 40x errata/workaround config symbols, selected by the CPU models above
 
 # All 405-based cores up until the 405GPR and 405EP have this errata.
arch/powerpc/platforms/44x/Kconfig +8 -0
index 249ba01..eec5cb4 100644
@@ -127,6 +143,14 @@ config XILINX_VIRTEX440_GENERIC_BOARD
 	  Most Virtex 5 designs should use this unless it needs to do some
 	  special configuration at board probe time.
 
+config PPC4xx_GPIO
+	bool "PPC4xx GPIO support"
+	depends on 44x
+	select ARCH_REQUIRE_GPIOLIB
+	select GENERIC_GPIO
+	help
+	  Enable gpiolib support for ppc440 based boards
+
 # 44x specific CPU modules, selected based on the board above.
 config 440EP
 	bool
arch/powerpc/sysdev/Makefile +1 -0
index a90054b..35d5765 100644
@@ -35,6 +35,7 @@ obj-$(CONFIG_OF_RTC)		+= of_rtc.o
 ifeq ($(CONFIG_PCI),y)
 obj-$(CONFIG_4xx)		+= ppc4xx_pci.o
 endif
+obj-$(CONFIG_PPC4xx_GPIO)	+= ppc4xx_gpio.o
 
 # Temporary hack until we have migrated to asm-powerpc
 ifeq ($(ARCH),powerpc)
arch/powerpc/sysdev/ppc4xx_gpio.c new file +217 -0

217 lines not on this page · raw message

#1 lore raw
Quoted 6 lines · Steven A. Falco

This patch adds support for the GPIO functions of PPC40x and PPC44x SOCs.

Quoted 6 lines

---
I believe I've satisfied all the comments that have been made for this driver.

Josh - is there anything else you'd like to see before pulling this into your tree?

Nope. It should be added a bit later today. Nice job.

josh