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[] = {
12 #ifdef CONFIG_MACH_RK30_PHONE_PAD_DS763
18 .active_low = PRESS_LEV_LOW,
22 .code = KEY_VOLUMEDOWN,
25 .active_low = PRESS_LEV_LOW,
32 .active_low = PRESS_LEV_LOW,
38 .gpio = RK30_PIN6_PA2,
39 .active_low = PRESS_LEV_LOW,
40 //.code_long_press = EV_ENCALL,
45 #ifdef CONFIG_MACH_RK30_PHONE_PAD_C8003
51 .active_low = PRESS_LEV_LOW,
55 .code = KEY_VOLUMEDOWN,
56 .gpio = RK30_PIN4_PC5,
57 .active_low = PRESS_LEV_LOW,
63 .gpio = RK30_PIN6_PA2,
64 .active_low = PRESS_LEV_LOW,
65 //.code_long_press = EV_ENCALL,
70 struct rk29_keys_platform_data rk29_keys_pdata = {
71 .buttons = key_button,
72 .nbuttons = ARRAY_SIZE(key_button),
73 .chn = 1, //chn: 0-7, if do not use ADC,set 'chn' -1