Eric Miao | 1814db6 | 2008-01-31 00:58:37 -0500 | [diff] [blame^] | 1 | #ifndef __ASM_ARCH_PXA27x_KEYPAD_H |
| 2 | #define __ASM_ARCH_PXA27x_KEYPAD_H |
| 3 | |
| 4 | #include <linux/input.h> |
| 5 | |
| 6 | #define MAX_MATRIX_KEY_ROWS (8) |
| 7 | #define MAX_MATRIX_KEY_COLS (8) |
Rodolfo Giometti | 5a90e5b | 2007-03-16 00:58:52 -0400 | [diff] [blame] | 8 | |
Eric Miao | 0e5f11a | 2008-01-31 00:56:46 -0500 | [diff] [blame] | 9 | struct pxa27x_keypad_platform_data { |
Eric Miao | 1814db6 | 2008-01-31 00:58:37 -0500 | [diff] [blame^] | 10 | |
| 11 | /* code map for the matrix keys */ |
| 12 | unsigned int matrix_key_rows; |
| 13 | unsigned int matrix_key_cols; |
| 14 | unsigned int *matrix_key_map; |
| 15 | int matrix_key_map_size; |
Rodolfo Giometti | 5a90e5b | 2007-03-16 00:58:52 -0400 | [diff] [blame] | 16 | |
| 17 | #ifdef CONFIG_PM |
| 18 | u32 reg_kpc; |
| 19 | u32 reg_kprec; |
| 20 | #endif |
| 21 | }; |
Eric Miao | 1814db6 | 2008-01-31 00:58:37 -0500 | [diff] [blame^] | 22 | |
| 23 | #define KEY(row, col, val) (((row) << 28) | ((col) << 24) | (val)) |
| 24 | |
| 25 | #endif /* __ASM_ARCH_PXA27x_KEYPAD_H */ |