From: hjc Date: Mon, 28 Jan 2013 09:59:55 +0000 (+0800) Subject: rk3168_86v: add vol+ and vol- key X-Git-Tag: firefly_0821_release~7724 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=b765844f6bd97cac7bbf3f530d352d3bd6718733;p=firefly-linux-kernel-4.4.55.git rk3168_86v: add vol+ and vol- key --- diff --git a/arch/arm/mach-rk30/board-rk3168-86v.c b/arch/arm/mach-rk30/board-rk3168-86v.c index 4fe2ed589087..e1de29dde0bd 100644 --- a/arch/arm/mach-rk30/board-rk3168-86v.c +++ b/arch/arm/mach-rk30/board-rk3168-86v.c @@ -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,