diff options
author | Dmitry Baryshkov <dbaryshkov@gmail.com> | 2008-01-21 01:04:20 -0500 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2008-01-21 01:11:07 -0500 |
commit | 93e9012f40f75b8ab8a37deaf532b3c5e9b527c6 (patch) | |
tree | de4ebf8b33dca1e3466af829fb72bee9fad759a1 /include/asm-arm/arch-pxa | |
parent | 52fe0cdb090a344cad9d95461ad06239e0c28712 (diff) |
Input: add Tosa keyboard driver
Add keyboard support on tosa (Sharp Zaurus SL-6000x).
Largely based on patches by Dirk Opfer.
Signed-off-by: Dmitry Baryshkov <dbaryshkov@gmail.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'include/asm-arm/arch-pxa')
-rw-r--r-- | include/asm-arm/arch-pxa/tosa.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/include/asm-arm/arch-pxa/tosa.h b/include/asm-arm/arch-pxa/tosa.h index c3364a2c4758..c05e4faf85a6 100644 --- a/include/asm-arm/arch-pxa/tosa.h +++ b/include/asm-arm/arch-pxa/tosa.h | |||
@@ -163,4 +163,34 @@ | |||
163 | 163 | ||
164 | extern struct platform_device tosascoop_jc_device; | 164 | extern struct platform_device tosascoop_jc_device; |
165 | extern struct platform_device tosascoop_device; | 165 | extern struct platform_device tosascoop_device; |
166 | |||
167 | #define TOSA_KEY_SYNC KEY_102ND /* ??? */ | ||
168 | |||
169 | |||
170 | #ifndef CONFIG_KEYBOARD_TOSA_USE_EXT_KEYCODES | ||
171 | #define TOSA_KEY_RECORD KEY_YEN | ||
172 | #define TOSA_KEY_ADDRESSBOOK KEY_KATAKANA | ||
173 | #define TOSA_KEY_CANCEL KEY_ESC | ||
174 | #define TOSA_KEY_CENTER KEY_HIRAGANA | ||
175 | #define TOSA_KEY_OK KEY_HENKAN | ||
176 | #define TOSA_KEY_CALENDAR KEY_KATAKANAHIRAGANA | ||
177 | #define TOSA_KEY_HOMEPAGE KEY_HANGEUL | ||
178 | #define TOSA_KEY_LIGHT KEY_MUHENKAN | ||
179 | #define TOSA_KEY_MENU KEY_HANJA | ||
180 | #define TOSA_KEY_FN KEY_RIGHTALT | ||
181 | #define TOSA_KEY_MAIL KEY_ZENKAKUHANKAKU | ||
182 | #else | ||
183 | #define TOSA_KEY_RECORD KEY_RECORD | ||
184 | #define TOSA_KEY_ADDRESSBOOK KEY_ADDRESSBOOK | ||
185 | #define TOSA_KEY_CANCEL KEY_CANCEL | ||
186 | #define TOSA_KEY_CENTER KEY_SELECT /* ??? */ | ||
187 | #define TOSA_KEY_OK KEY_OK | ||
188 | #define TOSA_KEY_CALENDAR KEY_CALENDAR | ||
189 | #define TOSA_KEY_HOMEPAGE KEY_HOMEPAGE | ||
190 | #define TOSA_KEY_LIGHT KEY_KBDILLUMTOGGLE | ||
191 | #define TOSA_KEY_MENU KEY_MENU | ||
192 | #define TOSA_KEY_FN KEY_FN | ||
193 | #define TOSA_KEY_MAIL KEY_MAIL | ||
194 | #endif | ||
195 | |||
166 | #endif /* _ASM_ARCH_TOSA_H_ */ | 196 | #endif /* _ASM_ARCH_TOSA_H_ */ |