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_PA1,
16 .active_low = PRESS_LEV_LOW,
20 .code = KEY_VOLUMEDOWN,
21 .gpio = RK29_PIN6_PA2,
22 .active_low = PRESS_LEV_LOW,
27 .gpio = RK29_PIN6_PA7,
28 .active_low = PRESS_LEV_HIGH,
32 struct rk29_keys_platform_data rk29_keys_pdata = {
33 .buttons = key_button,
34 .nbuttons = ARRAY_SIZE(key_button),
35 .chn = -1, //chn: 0-7, if do not use ADC,set 'chn' -1