You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
373 B
17 lines
373 B
#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
|
|
|