Input: add support for Blackfin BF54x Keypad controller

Signed-off-by: Michael Hennerich <[email protected]>
Signed-off-by: Bryan Wu <[email protected]>
Signed-off-by: Dmitry Torokhov <[email protected]>
This commit is contained in:
Michael Hennerich 2007-10-13 00:36:46 -04:00 • committed by Dmitry Torokhov
commit 8f740ef391
5 changed files with 412 additions and 4 deletions

View file

@ -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