mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input: (34 commits) Input: i8042 - non-x86 build fix Input: pxa27x_keypad - also enable on PXA3xx Input: pxa27x_keypad - add debounce_interval to the keypad platform data Input: pxa27x_keypad - use device resources for I/O memory mapping and IRQ Input: pxa27x_keypad - enable rotary encoders and direct keys Input: pxa27x_keypad - introduce pxa27x_keypad_config() Input: pxa27x_keypad - introduce driver structure and use KEY() to define matrix keys Input: pxa27x_keypad - remove pin configuration from the driver Input: pxa27x_keypad - rename the driver (was pxa27x_keyboard) Input: constify function pointer tables (seq_operations) Input: i8042 - add Fujitsu-Siemens Amilo Pro 2010 to nomux list Input: i8042 - enable DMI quirks on x86-64 Input: i8042 - add Dritek quirk for Acer Aspire 9110 Input: add input event to APM event bridge Input: mousedev - use BIT_MASK instead of BIT Input: remove duplicate includes Input: remove cdev from input_dev structure Input: remove duplicated headers in drivers/char/keyboard.c Input: i8042 - add Dritek keyboard extension quirk Input: add Tosa keyboard driver ...
This commit is contained in:
commit
6e5565f949
47 changed files with 2073 additions and 484 deletions
|
|
@ -1,13 +0,0 @@
|
|||
#define PXAKBD_MAXROW 8
|
||||
#define PXAKBD_MAXCOL 8
|
||||
|
||||
struct pxa27x_keyboard_platform_data {
|
||||
int nr_rows, nr_cols;
|
||||
int keycodes[PXAKBD_MAXROW][PXAKBD_MAXCOL];
|
||||
int gpio_modes[PXAKBD_MAXROW + PXAKBD_MAXCOL];
|
||||
|
||||
#ifdef CONFIG_PM
|
||||
u32 reg_kpc;
|
||||
u32 reg_kprec;
|
||||
#endif
|
||||
};
|
||||
56
include/asm-arm/arch-pxa/pxa27x_keypad.h
Normal file
56
include/asm-arm/arch-pxa/pxa27x_keypad.h
Normal file
|
|
@ -0,0 +1,56 @@
|
|||
#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)
|
||||
|
||||
/* pxa3xx keypad platform specific parameters
|
||||
*
|
||||
* NOTE:
|
||||
* 1. direct_key_num indicates the number of keys in the direct keypad
|
||||
* _plus_ the number of rotary-encoder sensor inputs, this can be
|
||||
* left as 0 if only rotary encoders are enabled, the driver will
|
||||
* automatically calculate this
|
||||
*
|
||||
* 2. direct_key_map is the key code map for the direct keys, if rotary
|
||||
* encoder(s) are enabled, direct key 0/1(2/3) will be ignored
|
||||
*
|
||||
* 3. rotary can be either interpreted as a relative input event (e.g.
|
||||
* REL_WHEEL/REL_HWHEEL) or specific keys (e.g. UP/DOWN/LEFT/RIGHT)
|
||||
*
|
||||
* 4. matrix key and direct key will use the same debounce_interval by
|
||||
* default, which should be sufficient in most cases
|
||||
*/
|
||||
struct pxa27x_keypad_platform_data {
|
||||
|
||||
/* 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;
|
||||
|
||||
/* direct keys */
|
||||
int direct_key_num;
|
||||
unsigned int direct_key_map[8];
|
||||
|
||||
/* rotary encoders 0 */
|
||||
int enable_rotary0;
|
||||
int rotary0_rel_code;
|
||||
int rotary0_up_key;
|
||||
int rotary0_down_key;
|
||||
|
||||
/* rotary encoders 1 */
|
||||
int enable_rotary1;
|
||||
int rotary1_rel_code;
|
||||
int rotary1_up_key;
|
||||
int rotary1_down_key;
|
||||
|
||||
/* key debounce interval */
|
||||
unsigned int debounce_interval;
|
||||
};
|
||||
|
||||
#define KEY(row, col, val) (((row) << 28) | ((col) << 24) | (val))
|
||||
|
||||
#endif /* __ASM_ARCH_PXA27x_KEYPAD_H */
|
||||
|
|
@ -163,4 +163,34 @@
|
|||
|
||||
extern struct platform_device tosascoop_jc_device;
|
||||
extern struct platform_device tosascoop_device;
|
||||
|
||||
#define TOSA_KEY_SYNC KEY_102ND /* ??? */
|
||||
|
||||
|
||||
#ifndef CONFIG_KEYBOARD_TOSA_USE_EXT_KEYCODES
|
||||
#define TOSA_KEY_RECORD KEY_YEN
|
||||
#define TOSA_KEY_ADDRESSBOOK KEY_KATAKANA
|
||||
#define TOSA_KEY_CANCEL KEY_ESC
|
||||
#define TOSA_KEY_CENTER KEY_HIRAGANA
|
||||
#define TOSA_KEY_OK KEY_HENKAN
|
||||
#define TOSA_KEY_CALENDAR KEY_KATAKANAHIRAGANA
|
||||
#define TOSA_KEY_HOMEPAGE KEY_HANGEUL
|
||||
#define TOSA_KEY_LIGHT KEY_MUHENKAN
|
||||
#define TOSA_KEY_MENU KEY_HANJA
|
||||
#define TOSA_KEY_FN KEY_RIGHTALT
|
||||
#define TOSA_KEY_MAIL KEY_ZENKAKUHANKAKU
|
||||
#else
|
||||
#define TOSA_KEY_RECORD KEY_RECORD
|
||||
#define TOSA_KEY_ADDRESSBOOK KEY_ADDRESSBOOK
|
||||
#define TOSA_KEY_CANCEL KEY_CANCEL
|
||||
#define TOSA_KEY_CENTER KEY_SELECT /* ??? */
|
||||
#define TOSA_KEY_OK KEY_OK
|
||||
#define TOSA_KEY_CALENDAR KEY_CALENDAR
|
||||
#define TOSA_KEY_HOMEPAGE KEY_HOMEPAGE
|
||||
#define TOSA_KEY_LIGHT KEY_KBDILLUMTOGGLE
|
||||
#define TOSA_KEY_MENU KEY_MENU
|
||||
#define TOSA_KEY_FN KEY_FN
|
||||
#define TOSA_KEY_MAIL KEY_MAIL
|
||||
#endif
|
||||
|
||||
#endif /* _ASM_ARCH_TOSA_H_ */
|
||||
|
|
|
|||
Loading…
Reference in a new issue