1 #include <mach/key.h>
\r
2 #include <mach/gpio.h>
\r
4 #define EV_ENCALL KEY_F4
\r
5 #define EV_MENU KEY_F1
\r
7 #define PRESS_LEV_LOW 1
\r
8 #define PRESS_LEV_HIGH 0
\r
10 static struct rk29_keys_button key_button[] = {
\r
14 .gpio = RK29_PIN6_PA0,
\r
15 .active_low = PRESS_LEV_LOW,
\r
19 .code = KEY_VOLUMEUP,
\r
20 .gpio = RK29_PIN6_PA1,
\r
21 .active_low = PRESS_LEV_LOW,
\r
25 .code = KEY_VOLUMEDOWN,
\r
26 .gpio = RK29_PIN6_PA2,
\r
27 .active_low = PRESS_LEV_LOW,
\r
32 .gpio = RK29_PIN6_PA3,
\r
33 .active_low = PRESS_LEV_LOW,
\r
38 .gpio = RK29_PIN6_PA5,
\r
39 .active_low = PRESS_LEV_LOW,
\r
44 .gpio = RK29_PIN6_PA7,
\r
45 .active_low = PRESS_LEV_LOW,
\r
48 struct rk29_keys_platform_data rk29_keys_pdata = {
\r
49 .buttons = key_button,
\r
50 .nbuttons = ARRAY_SIZE(key_button),
\r
51 .chn = -1, //chn: 0-7, if do not use ADC,set 'chn' -1
\r