Skip to content
Snippets Groups Projects
Commit 5a3b5a9f authored by paris_yeh's avatar paris_yeh Committed by Ed Tam
Browse files

flo/deb: keypad: set powerkey button to have reset notification


hardware reset notfication is sent by keypad driver if powerkey
button is pressed more than 7000 ms when can_reset flag is set.

Change-Id: I642c01cf9a53dbbd8a55f87e93310f920f1f1f3c
Signed-off-by: default avatarparis_yeh <paris_yeh@asus.com>
parent 040354b9
No related branches found
No related tags found
No related merge requests found
...@@ -36,7 +36,7 @@ ...@@ -36,7 +36,7 @@
#define GPIO_PM8921_KEY2_VOLUME_UP PM8921_GPIO_PM_TO_SYS(4) #define GPIO_PM8921_KEY2_VOLUME_UP PM8921_GPIO_PM_TO_SYS(4)
#define GPIO_PM8921_KEY2_VOLUME_DOWN GPIO_PM8921_KEY_VOLUME_DOWN #define GPIO_PM8921_KEY2_VOLUME_DOWN GPIO_PM8921_KEY_VOLUME_DOWN
#define GPIO_KEY(_id, _iswake) \ #define GPIO_KEY(_id, _iswake, _isreset) \
{ \ { \
.code = _id, \ .code = _id, \
.gpio = GPIO_##_id, \ .gpio = GPIO_##_id, \
...@@ -45,12 +45,14 @@ ...@@ -45,12 +45,14 @@
.type = EV_KEY, \ .type = EV_KEY, \
.wakeup = _iswake, \ .wakeup = _iswake, \
.debounce_interval = 5, \ .debounce_interval = 5, \
.can_reset= _isreset, \
.reset_interval= 7000, \
} }
static struct gpio_keys_button asustek_keys[] = { static struct gpio_keys_button asustek_keys[] = {
[0] = GPIO_KEY(KEY_POWER, 1), [0] = GPIO_KEY(KEY_POWER, 1, 1),
[1] = GPIO_KEY(KEY_VOLUMEUP, 0), [1] = GPIO_KEY(KEY_VOLUMEUP, 0, 0),
[2] = GPIO_KEY(KEY_VOLUMEDOWN, 0), [2] = GPIO_KEY(KEY_VOLUMEDOWN, 0, 0),
}; };
static struct gpio_keys_platform_data asustek_keys_platform_data = { static struct gpio_keys_platform_data asustek_keys_platform_data = {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment