2008-01-31 00:58:37 -05:00
|
|
|
#ifndef __ASM_ARCH_PXA27x_KEYPAD_H
|
|
|
|
#define __ASM_ARCH_PXA27x_KEYPAD_H
|
|
|
|
|
|
|
|
#include <linux/input.h>
|
|
|
|
|
|
|
|
#define MAX_MATRIX_KEY_ROWS (8)
|
|
|
|
#define MAX_MATRIX_KEY_COLS (8)
|
2007-03-16 00:58:52 -04:00
|
|
|
|
2008-01-31 00:56:46 -05:00
|
|
|
struct pxa27x_keypad_platform_data {
|
2008-01-31 00:58:37 -05:00
|
|
|
|
|
|
|
/* code map for the matrix keys */
|
|
|
|
unsigned int matrix_key_rows;
|
|
|
|
unsigned int matrix_key_cols;
|
|
|
|
unsigned int *matrix_key_map;
|
|
|
|
int matrix_key_map_size;
|
2007-03-16 00:58:52 -04:00
|
|
|
};
|
2008-01-31 00:58:37 -05:00
|
|
|
|
|
|
|
#define KEY(row, col, val) (((row) << 28) | ((col) << 24) | (val))
|
|
|
|
|
|
|
|
#endif /* __ASM_ARCH_PXA27x_KEYPAD_H */
|