mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-20 16:30:53 +00:00
8f740ef391
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>
18 lines
373 B
C
18 lines
373 B
C
#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
|