3 #include <mach/board.h>
5 #define EV_ENCALL KEY_F4
8 #define PRESS_LEV_LOW 1
9 #define PRESS_LEV_HIGH 0
11 static struct rk29_keys_button key_button[] = {
15 .gpio = RK29_PIN6_PA4,
16 .active_low = PRESS_LEV_LOW,
21 .gpio = RK29_PIN6_PA1,
22 .active_low = PRESS_LEV_LOW,
26 .code = KEY_VOLUMEDOWN,
27 .gpio = RK29_PIN6_PA2,
28 .active_low = PRESS_LEV_LOW,
33 .gpio = RK29_PIN6_PA3,
34 .active_low = PRESS_LEV_LOW,
39 .gpio = RK29_PIN6_PA0,
40 .active_low = PRESS_LEV_LOW,
45 .gpio = RK29_PIN6_PA6,
46 .active_low = PRESS_LEV_LOW,
51 .gpio = RK29_PIN6_PA7,
52 .active_low = PRESS_LEV_LOW,
53 //.code_long_press = EV_ENCALL,
59 .code = KEY_VOLUMEDOWN,
62 .active_low = PRESS_LEV_LOW,
69 .active_low = PRESS_LEV_LOW,
76 .active_low = PRESS_LEV_LOW,
81 .code_long_press = KEY_F4,
84 .active_low = PRESS_LEV_LOW,
91 .active_low = PRESS_LEV_LOW,
96 .code_long_press = EV_ENCALL,
99 .active_low = PRESS_LEV_LOW,
103 struct rk29_keys_platform_data rk29_keys_pdata = {
104 .buttons = key_button,
105 .nbuttons = ARRAY_SIZE(key_button),
106 .chn = -1, //chn: 0-7, if do not use ADC,set 'chn' -1