Skip to contentSkip to conversation

sh: GPIO and pinmux base code

PATCH New Magnus Damm 1 participant 1 message Oct 8, 2008 SuperH

lore
Share & tools
lore
#0 lore raw

PATCH 1/9 sh: GPIO and pinmux base code

From: Magnus Damm <[email protected]>

This patch adds gpio code together with the pinmux table parser. In the future we should optimize this and switch back to gpiolib.

---

 arch/sh/Kconfig            |    3 
 arch/sh/include/asm/gpio.h |   92 +++++++-
 arch/sh/kernel/Makefile_32 |    2 
 arch/sh/kernel/Makefile_64 |    2 
 arch/sh/kernel/gpio.c      |  498 ++++++++++++++++++++++++++++++++++++++++++++
 5 files changed, 593 insertions(+), 4 deletions(-)
arch/sh/Kconfig +3 -0
@@ -59,6 +59,9 @@ config GENERIC_HARDIRQS_NO__DO_IRQ
 config GENERIC_IRQ_PROBE
 	def_bool y
 
+config GENERIC_GPIO
+	def_bool n
+
 config GENERIC_CALIBRATE_DELAY
 	bool
 
arch/sh/include/asm/gpio.h +90 -2

103 lines not on this page · raw message

arch/sh/kernel/Makefile_32 +1 -1
@@ -5,7 +5,7 @@
 extra-y	:= head_32.o init_task.o vmlinux.lds
 
 obj-y	:= debugtraps.o io.o io_generic.o irq.o machvec.o process_32.o \
-	   ptrace_32.o setup.o signal_32.o sys_sh.o sys_sh32.o \
+	   ptrace_32.o setup.o signal_32.o sys_sh.o sys_sh32.o gpio.o \
 	   syscalls_32.o time_32.o topology.o traps.o traps_32.o
 
 obj-y				+= cpu/ timers/
arch/sh/kernel/Makefile_64 +1 -1
@@ -1,7 +1,7 @@
 extra-y	:= head_64.o init_task.o vmlinux.lds
 
 obj-y	:= debugtraps.o io.o io_generic.o irq.o machvec.o process_64.o \
-	   ptrace_64.o setup.o signal_64.o sys_sh.o sys_sh64.o \
+	   ptrace_64.o setup.o signal_64.o sys_sh.o sys_sh64.o gpio.o \
 	   syscalls_64.o time_64.o topology.o traps.o traps_64.o
 
 obj-y				+= cpu/ timers/
arch/sh/kernel/gpio.c new file +498 -0

498 lines not on this page · raw message