Go to the documentation of this file.
10 #ifndef ASMARM_ARCH_KEYPAD_H
11 #define ASMARM_ARCH_KEYPAD_H
13 #ifndef CONFIG_ARCH_OMAP1
14 #warning Please update the board to use matrix-keypad driver
15 #define omap_readw(reg) 0
16 #define omap_writew(val, reg) do {} while (0)
40 #define GROUP_SHIFT 14
41 #define GROUP_0 (0 << GROUP_SHIFT)
42 #define GROUP_1 (1 << GROUP_SHIFT)
43 #define GROUP_2 (2 << GROUP_SHIFT)
44 #define GROUP_3 (3 << GROUP_SHIFT)
45 #define GROUP_MASK GROUP_3
46 #if KEY_MAX & GROUP_MASK
47 #error Group bits in conflict with keynum bits