summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPhil Blundell <pb@handhelds.org>2007-01-18 00:44:09 -0500
committerDmitry Torokhov <dtor@insightbb.com>2007-01-18 00:44:09 -0500
commit78a56aab11234e53b7e94e5a255cc3d27ab0a62b (patch)
treecf71989a69933ad51d38a5725727212d0b11656a /include
parent285b0b62bc8f1a3cb18ce3f2d9806f1d99736784 (diff)
downloadlinux-3.10-78a56aab11234e53b7e94e5a255cc3d27ab0a62b.tar.gz
linux-3.10-78a56aab11234e53b7e94e5a255cc3d27ab0a62b.tar.bz2
linux-3.10-78a56aab11234e53b7e94e5a255cc3d27ab0a62b.zip
Input: gpio-keys - keyboard driver for GPIO buttons
This is an interrupt-driven keyboard driver for simple buttons connected directly to CPU GPIO lines of embedded ARM systems. It supports pxa architectures and is used by a number of PDAs and PocketPC phones in the handhelds.org kernel. Support for other architectures, such as sa11xx and sc2410, will be added once generic GPIO API is available. Signed-off-by: Paul Sokolovsky <pmiscml@gmail.com> Signed-off-by: Philipp Zabel <philipp.zabel@gmail.com> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'include')
-rw-r--r--include/asm-arm/hardware/gpio_keys.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/include/asm-arm/hardware/gpio_keys.h b/include/asm-arm/hardware/gpio_keys.h
new file mode 100644
index 00000000000..2b217c7b931
--- /dev/null
+++ b/include/asm-arm/hardware/gpio_keys.h
@@ -0,0 +1,17 @@
+#ifndef _GPIO_KEYS_H
+#define _GPIO_KEYS_H
+
+struct gpio_keys_button {
+ /* Configuration parameters */
+ int keycode;
+ int gpio;
+ int active_low;
+ char *desc;
+};
+
+struct gpio_keys_platform_data {
+ struct gpio_keys_button *buttons;
+ int nbuttons;
+};
+
+#endif