mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
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:
parent
937ad5c1e3
commit
8f740ef391
5 changed files with 412 additions and 4 deletions
17
include/asm-blackfin/mach-bf548/bf54x_keys.h
Normal file
17
include/asm-blackfin/mach-bf548/bf54x_keys.h
Normal 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
|
||||
Loading…
Reference in a new issue