summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMichael Hennerich <michael.hennerich@analog.com>2007-10-13 04:36:46 (GMT)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2007-10-13 04:36:46 (GMT)
commit8f740ef391fc81cb887fa08d213cf67b843cb3b7 (patch)
tree19228690eb2a962b379e5c0838eaf0dd3c58d285 /include
parent937ad5c1e35191d29d305280525394fe87f4ac4f (diff)
downloadlinux-fsl-qoriq-8f740ef391fc81cb887fa08d213cf67b843cb3b7.tar.xz
Input: add support for Blackfin BF54x Keypad controller
Signed-off-by: Michael Hennerich <michael.hennerich@analog.com> Signed-off-by: Bryan Wu <bryan.wu@analog.com> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'include')
-rw-r--r--include/asm-blackfin/mach-bf548/bf54x_keys.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/include/asm-blackfin/mach-bf548/bf54x_keys.h b/include/asm-blackfin/mach-bf548/bf54x_keys.h
new file mode 100644
index 0000000..1fb4ec7
--- /dev/null
+++ b/include/asm-blackfin/mach-bf548/bf54x_keys.h
@@ -0,0 +1,17 @@
+#ifndef _BFIN_KPAD_H
+#define _BFIN_KPAD_H
+
+struct bfin_kpad_platform_data {
+ int rows;
+ int cols;
+ const unsigned int *keymap;
+ unsigned short keymapsize;
+ unsigned short repeat;
+ u32 debounce_time; /* in ns */
+ u32 coldrive_time; /* in ns */
+ u32 keyup_test_interval; /* in ms */
+};
+
+#define KEYVAL(col, row, val) (((1 << col) << 24) | ((1 << row) << 16) | (val))
+
+#endif