ppc4xx gpio driver
Subsystems (2)
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
@@ -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
@@ -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
@@ -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
Quoted 6 lines · Steven A. Falco
This patch adds support for the GPIO functions of PPC40x and PPC44x SOCs.
Signed-off-by Steve Falco <[email protected]>Acked-by Stefan Roese <[email protected]>Acked-by Sean MacLennan <[email protected]>
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