summaryrefslogtreecommitdiffstats
path: root/arch/sh/include/mach-x3proto
diff options
context:
space:
mode:
authorPaul Mundt <lethal@linux-sh.org>2010-10-04 02:59:29 +0900
committerPaul Mundt <lethal@linux-sh.org>2010-10-04 02:59:29 +0900
commit550591143eead286f2cd9d124a55d4a99ed024de (patch)
tree5f1edc1b8c8e0829f04a5d24b9083bd5a054c1fb /arch/sh/include/mach-x3proto
parentd39d0ed196aa1685bb24771e92f78633c66ac9cb (diff)
sh: mach-x3proto: Support for baseboard GPIOs.
This adds trivial support for the GPIOs implemented through the baseboard CPLD, used for driving the button matrix. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/include/mach-x3proto')
-rw-r--r--arch/sh/include/mach-x3proto/mach/hardware.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/arch/sh/include/mach-x3proto/mach/hardware.h b/arch/sh/include/mach-x3proto/mach/hardware.h
new file mode 100644
index 00000000000..52bca57bfeb
--- /dev/null
+++ b/arch/sh/include/mach-x3proto/mach/hardware.h
@@ -0,0 +1,12 @@
+#ifndef __MACH_X3PROTO_HARDWARE_H
+#define __MACH_X3PROTO_HARDWARE_H
+
+struct gpio_chip;
+
+/* arch/sh/boards/mach-x3proto/gpio.c */
+int x3proto_gpio_setup(void);
+extern struct gpio_chip x3proto_gpio_chip;
+
+#define NR_BASEBOARD_GPIOS 16
+
+#endif /* __MACH_X3PROTO_HARDWARE_H */