diff --git a/arch/arm/mach-rk3026/board-rk3026-tb.c b/arch/arm/mach-rk3026/board-rk3026-tb.c index a2ce0ec549d2..73910aaabf9e 100755 --- a/arch/arm/mach-rk3026/board-rk3026-tb.c +++ b/arch/arm/mach-rk3026/board-rk3026-tb.c @@ -434,6 +434,19 @@ static struct sensor_platform_data mma8452_info = { #include static struct rk29_keys_button key_button[] = { + { + .desc = "play", + .code = KEY_POWER, + .gpio = PLAY_ON_PIN, + .active_low = PRESS_LEV_LOW, + .wakeup = 1, + }, +/* disable adc keyboard, + * because rk280a adc reference voltage is 3.3V, but + * rk30xx mainbord key's supply voltage is 2.5V and + * rk31xx mainbord key's supply voltage is 1.8V. + */ +#if 0 #ifdef RK31XX_MAINBOARD_V1 { .desc = "vol-", @@ -528,6 +541,7 @@ static struct rk29_keys_button key_button[] = { .active_low = PRESS_LEV_LOW, }, #endif +#endif }; struct rk29_keys_platform_data rk29_keys_pdata = { diff --git a/arch/arm/mach-rk3026/board-rk3028a-tb.c b/arch/arm/mach-rk3026/board-rk3028a-tb.c index 390a35cd8734..2114a474f4db 100755 --- a/arch/arm/mach-rk3026/board-rk3028a-tb.c +++ b/arch/arm/mach-rk3026/board-rk3028a-tb.c @@ -434,6 +434,19 @@ static struct sensor_platform_data mma8452_info = { #include static struct rk29_keys_button key_button[] = { + { + .desc = "play", + .code = KEY_POWER, + .gpio = PLAY_ON_PIN, + .active_low = PRESS_LEV_LOW, + .wakeup = 1, + }, +/* disable adc keyboard, + * because rk280a adc reference voltage is 3.3V, but + * rk30xx mainbord key's supply voltage is 2.5V and + * rk31xx mainbord key's supply voltage is 1.8V. + */ +#if 0 #ifdef RK31XX_MAINBOARD_V1 { .desc = "vol-", @@ -528,6 +541,7 @@ static struct rk29_keys_button key_button[] = { .active_low = PRESS_LEV_LOW, }, #endif +#endif }; struct rk29_keys_platform_data rk29_keys_pdata = {