Skip to contentSkip to conversation

sysdev: implement support for MPC8349-compatible SOC GPIOs

PATCH Superseded Anton Vorontsov 1 participant 1 message Jun 4, 2008 PowerPC

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 sysdev: implement support for MPC8349-compatible SOC GPIOs

This patch implements GPIOLIB support for MPC8349-compatible SOC GPIOs. MPC8610 adopted this GPIO unit, so let's place it into sysdev.

We'll need these gpios to support IrDA transceiver on MPC8610HPCD.

---
 arch/powerpc/sysdev/Kconfig            |    7 ++
 arch/powerpc/sysdev/Makefile           |    2 +
 arch/powerpc/sysdev/fsl_mpc8349_gpio.c |  161 ++++++++++++++++++++++++++++++++
 3 files changed, 170 insertions(+), 0 deletions(-)
 create mode 100644 arch/powerpc/sysdev/fsl_mpc8349_gpio.c
arch/powerpc/sysdev/Kconfig +7 -0
index 72fb35b..37d0143 100644
@@ -6,3 +6,10 @@ config PPC4xx_PCI_EXPRESS
 	bool
 	depends on PCI && 4xx
 	default n
+
+config FSL_MPC8349_GPIO
+	bool
+	select GENERIC_GPIO
+	select HAVE_GPIO_LIB
+	help
+	  Support for Freescale MPC8349 compatible GPIOs.
arch/powerpc/sysdev/Makefile +2 -0
index 16a0ed2..3f93f5e 100644
@@ -25,6 +25,8 @@ obj-$(CONFIG_MV64X60)		+= $(mv64x60-y) mv64x60_pic.o mv64x60_dev.o \
 obj-$(CONFIG_RTC_DRV_CMOS)	+= rtc_cmos_setup.o
 obj-$(CONFIG_AXON_RAM)		+= axonram.o
 
+obj-$(CONFIG_FSL_MPC8349_GPIO)	+= fsl_mpc8349_gpio.o
+
 ifeq ($(CONFIG_PPC_MERGE),y)
 obj-$(CONFIG_PPC_INDIRECT_PCI)	+= indirect_pci.o
 obj-$(CONFIG_PPC_I8259)		+= i8259.o
arch/powerpc/sysdev/fsl_mpc8349_gpio.c new file +161 -0

161 lines not on this page · raw message

Signature · 1 line
1.5.5.1