4 #define EV_ENCALL KEY_F4
7 #define PRESS_LEV_LOW 1
8 #define PRESS_LEV_HIGH 0
10 static struct rk29_keys_button key_button[] = {
13 .code = KEY_VOLUMEDOWN,
14 .gpio = RK30_PIN0_PB5,
15 .active_low = PRESS_LEV_LOW,
20 .gpio = RK30_PIN0_PA4,
21 .active_low = PRESS_LEV_LOW,
29 .active_low = PRESS_LEV_LOW,
36 .active_low = PRESS_LEV_LOW,
43 .active_low = PRESS_LEV_LOW,
50 .active_low = PRESS_LEV_LOW,
57 .active_low = PRESS_LEV_LOW,
60 struct rk29_keys_platform_data rk29_keys_pdata = {
61 .buttons = key_button,
62 .nbuttons = ARRAY_SIZE(key_button),
63 .chn = 1, //chn: 0-7, if do not use ADC,set 'chn' -1