diff options
Diffstat (limited to 'arch/arm/mach-tegra/include/mach/kbc.h')
-rw-r--r-- | arch/arm/mach-tegra/include/mach/kbc.h | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/arch/arm/mach-tegra/include/mach/kbc.h b/arch/arm/mach-tegra/include/mach/kbc.h index 20bb0545f992..a13025612939 100644 --- a/arch/arm/mach-tegra/include/mach/kbc.h +++ b/arch/arm/mach-tegra/include/mach/kbc.h | |||
@@ -24,20 +24,21 @@ | |||
24 | #include <linux/types.h> | 24 | #include <linux/types.h> |
25 | #include <linux/input/matrix_keypad.h> | 25 | #include <linux/input/matrix_keypad.h> |
26 | 26 | ||
27 | #ifdef CONFIG_ARCH_TEGRA_2x_SOC | ||
28 | #define KBC_MAX_GPIO 24 | 27 | #define KBC_MAX_GPIO 24 |
29 | #define KBC_MAX_KPENT 8 | 28 | #define KBC_MAX_KPENT 8 |
30 | #else | ||
31 | #define KBC_MAX_GPIO 20 | ||
32 | #define KBC_MAX_KPENT 7 | ||
33 | #endif | ||
34 | 29 | ||
35 | #define KBC_MAX_ROW 16 | 30 | #define KBC_MAX_ROW 16 |
36 | #define KBC_MAX_COL 8 | 31 | #define KBC_MAX_COL 8 |
37 | #define KBC_MAX_KEY (KBC_MAX_ROW * KBC_MAX_COL) | 32 | #define KBC_MAX_KEY (KBC_MAX_ROW * KBC_MAX_COL) |
38 | 33 | ||
34 | enum tegra_pin_type { | ||
35 | PIN_CFG_IGNORE, | ||
36 | PIN_CFG_COL, | ||
37 | PIN_CFG_ROW, | ||
38 | }; | ||
39 | |||
39 | struct tegra_kbc_pin_cfg { | 40 | struct tegra_kbc_pin_cfg { |
40 | bool is_row; | 41 | enum tegra_pin_type type; |
41 | unsigned char num; | 42 | unsigned char num; |
42 | }; | 43 | }; |
43 | 44 | ||