Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
keypad-ep93xx.h
Go to the documentation of this file.
1 /*
2  * arch/arm/mach-ep93xx/include/mach/ep93xx_keypad.h
3  */
4 
5 #ifndef __ASM_ARCH_EP93XX_KEYPAD_H
6 #define __ASM_ARCH_EP93XX_KEYPAD_H
7 
8 struct matrix_keymap_data;
9 
10 /* flags for the ep93xx_keypad driver */
11 #define EP93XX_KEYPAD_DISABLE_3_KEY (1<<0) /* disable 3-key reset */
12 #define EP93XX_KEYPAD_DIAG_MODE (1<<1) /* diagnostic mode */
13 #define EP93XX_KEYPAD_BACK_DRIVE (1<<2) /* back driving mode */
14 #define EP93XX_KEYPAD_TEST_MODE (1<<3) /* scan only column 0 */
15 #define EP93XX_KEYPAD_KDIV (1<<4) /* 1/4 clock or 1/16 clock */
16 #define EP93XX_KEYPAD_AUTOREPEAT (1<<5) /* enable key autorepeat */
17 
27  unsigned int debounce;
28  unsigned int prescale;
29  unsigned int flags;
30 };
31 
32 #define EP93XX_MATRIX_ROWS (8)
33 #define EP93XX_MATRIX_COLS (8)
34 
35 #endif /* __ASM_ARCH_EP93XX_KEYPAD_H */