rk3168_86v: add vol+ and vol- key
authorhjc <hjc@rock-chips.com>
Mon, 28 Jan 2013 09:59:55 +0000 (17:59 +0800)
committerhjc <hjc@rock-chips.com>
Mon, 28 Jan 2013 09:59:55 +0000 (17:59 +0800)
arch/arm/mach-rk30/board-rk3168-86v.c

index 4fe2ed589087008205a531c03fa6ca35c152d5d8..e1de29dde0bd1975459c6676b63d6527f041a890 100644 (file)
@@ -87,6 +87,20 @@ static struct rk29_keys_button key_button[] = {
                .gpio = INVALID_GPIO,
                .active_low = PRESS_LEV_LOW,
        },
+       {
+                .desc   = "vol-",
+                .code   = KEY_VOLUMEDOWN,
+                .adc_value      = 150,
+                .gpio   = INVALID_GPIO,
+                .active_low = PRESS_LEV_LOW,
+        },
+       {
+                .desc   = "vol+",
+                .code   = KEY_VOLUMEUP,
+                .adc_value      = 1,
+                .gpio = INVALID_GPIO,
+                .active_low = PRESS_LEV_LOW,
+        },
 };
 struct rk29_keys_platform_data rk29_keys_pdata = {
        .buttons        = key_button,