提交 5b8163a3 编写于 作者: S Sonic Zhang 提交者: Bob Liu

blackfin: rotary: Add pm_wakeup flag to platform data structure.

Rotary can't be used as a wakeup source in all platform.
Signed-off-by: NSonic Zhang <sonic.zhang@analog.com>
Signed-off-by: NBob Liu <lliubbo@gmail.com>
上级 ec98e6b8
...@@ -39,6 +39,7 @@ struct bfin_rotary_platform_data { ...@@ -39,6 +39,7 @@ struct bfin_rotary_platform_data {
unsigned int rotary_rel_code; unsigned int rotary_rel_code;
unsigned short debounce; /* 0..17 */ unsigned short debounce; /* 0..17 */
unsigned short mode; unsigned short mode;
unsigned short pm_wakeup;
}; };
/* CNT_CONFIG bitmasks */ /* CNT_CONFIG bitmasks */
......
...@@ -681,6 +681,7 @@ static struct bfin_rotary_platform_data bfin_rotary_data = { ...@@ -681,6 +681,7 @@ static struct bfin_rotary_platform_data bfin_rotary_data = {
.rotary_button_key = KEY_ENTER, .rotary_button_key = KEY_ENTER,
.debounce = 10, /* 0..17 */ .debounce = 10, /* 0..17 */
.mode = ROT_QUAD_ENC | ROT_DEBE, .mode = ROT_QUAD_ENC | ROT_DEBE,
.pm_wakeup = 1,
}; };
static struct resource bfin_rotary_resources[] = { static struct resource bfin_rotary_resources[] = {
......
...@@ -1105,6 +1105,7 @@ static struct bfin_rotary_platform_data bfin_rotary_data = { ...@@ -1105,6 +1105,7 @@ static struct bfin_rotary_platform_data bfin_rotary_data = {
.rotary_button_key = KEY_ENTER, .rotary_button_key = KEY_ENTER,
.debounce = 10, /* 0..17 */ .debounce = 10, /* 0..17 */
.mode = ROT_QUAD_ENC | ROT_DEBE, .mode = ROT_QUAD_ENC | ROT_DEBE,
.pm_wakeup = 1,
}; };
static struct resource bfin_rotary_resources[] = { static struct resource bfin_rotary_resources[] = {
......
...@@ -165,6 +165,7 @@ static struct bfin_rotary_platform_data bfin_rotary_data = { ...@@ -165,6 +165,7 @@ static struct bfin_rotary_platform_data bfin_rotary_data = {
.rotary_button_key = KEY_ENTER, .rotary_button_key = KEY_ENTER,
.debounce = 10, /* 0..17 */ .debounce = 10, /* 0..17 */
.mode = ROT_QUAD_ENC | ROT_DEBE, .mode = ROT_QUAD_ENC | ROT_DEBE,
.pm_wakeup = 1,
}; };
static struct resource bfin_rotary_resources[] = { static struct resource bfin_rotary_resources[] = {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册