sh: Add GPIO and pinmux base code V2
PATCH 1/1 sh: Add GPIO and pinmux base code V2
From: Magnus Damm <[email protected]>
This patch adds pinmux table parser code and gpiolib glue.
Signed-off-by Magnus Damm <[email protected]>
---
Requires the request/free gpiolib patch by David Brownell.
arch/sh/Kconfig | 3 arch/sh/include/asm/gpio.h | 105 ++++++++++ arch/sh/kernel/Makefile_32 | 1 arch/sh/kernel/Makefile_64 | 1 arch/sh/kernel/gpio.c | 440 ++++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 550 insertions(+)
arch/sh/Kconfig +3 -0
@@ -60,6 +60,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 +105 -0
115 lines not on this page · raw message
arch/sh/kernel/Makefile_32 +1 -0
@@ -23,5 +23,6 @@ obj-$(CONFIG_PM) += pm.o obj-$(CONFIG_STACKTRACE) += stacktrace.o obj-$(CONFIG_IO_TRAPPED) += io_trapped.o obj-$(CONFIG_KPROBES) += kprobes.o +obj-$(CONFIG_GPIOLIB) += gpio.o EXTRA_CFLAGS += -Werror
arch/sh/kernel/Makefile_64 +1 -0
@@ -18,5 +18,6 @@ obj-$(CONFIG_CRASH_DUMP) += crash_dump.o obj-$(CONFIG_PM) += pm.o obj-$(CONFIG_STACKTRACE) += stacktrace.o obj-$(CONFIG_IO_TRAPPED) += io_trapped.o +obj-$(CONFIG_GPIOLIB) += gpio.o EXTRA_CFLAGS += -Werror
arch/sh/kernel/gpio.c new file +440 -0
440 lines not on this page · raw message