diff options
author | Rajeev Kumar <rajeev-dlh.kumar@st.com> | 2012-02-24 03:51:40 -0500 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2012-02-28 04:18:32 -0500 |
commit | f8354c60ca2212810c168d8f992559226c8c0e71 (patch) | |
tree | a9d8d77c9e6c7e76fa982c757e0eb82d98024998 /arch/arm/plat-spear/include | |
parent | 5e238b548aac6227ce296d41364a3f7b10caff44 (diff) |
Input: spear-keyboard - configure device according to supplied mode
Let platform pass mode information to keyboard driver according to which
it configures itself. The mode can be
- KEYPAD_9x9 0
- KEYPAD_6x6 1
- KEYPAD_2x2 2
Signed-off-by: Rajeev Kumar <rajeev-dlh.kumar@st.com>
Signed-off-by: Viresh Kumar <viresh.kumar@st.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'arch/arm/plat-spear/include')
-rw-r--r-- | arch/arm/plat-spear/include/plat/keyboard.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/arm/plat-spear/include/plat/keyboard.h b/arch/arm/plat-spear/include/plat/keyboard.h index 130c045a5b89..c16cc31ecbed 100644 --- a/arch/arm/plat-spear/include/plat/keyboard.h +++ b/arch/arm/plat-spear/include/plat/keyboard.h | |||
@@ -140,10 +140,15 @@ int _name[] = { \ | |||
140 | KEY(5, 5, KEY_ZENKAKUHANKAKU), \ | 140 | KEY(5, 5, KEY_ZENKAKUHANKAKU), \ |
141 | } | 141 | } |
142 | 142 | ||
143 | #define KEYPAD_9x9 0 | ||
144 | #define KEYPAD_6x6 1 | ||
145 | #define KEYPAD_2x2 2 | ||
146 | |||
143 | /** | 147 | /** |
144 | * struct kbd_platform_data - spear keyboard platform data | 148 | * struct kbd_platform_data - spear keyboard platform data |
145 | * keymap: pointer to keymap data (table and size) | 149 | * keymap: pointer to keymap data (table and size) |
146 | * rep: enables key autorepeat | 150 | * rep: enables key autorepeat |
151 | * mode: choose keyboard support(9x9, 6x6, 2x2) | ||
147 | * | 152 | * |
148 | * This structure is supposed to be used by platform code to supply | 153 | * This structure is supposed to be used by platform code to supply |
149 | * keymaps to drivers that implement keyboards. | 154 | * keymaps to drivers that implement keyboards. |
@@ -151,6 +156,7 @@ int _name[] = { \ | |||
151 | struct kbd_platform_data { | 156 | struct kbd_platform_data { |
152 | const struct matrix_keymap_data *keymap; | 157 | const struct matrix_keymap_data *keymap; |
153 | bool rep; | 158 | bool rep; |
159 | unsigned int mode; | ||
154 | }; | 160 | }; |
155 | 161 | ||
156 | /* This function is used to set platform data field of pdev->dev */ | 162 | /* This function is used to set platform data field of pdev->dev */ |