Skip to content

Commit

Permalink
blackfin: rotary: Add pm_wakeup flag to platform data structure.
Browse files Browse the repository at this point in the history
Rotary can't be used as a wakeup source in all platform.

Signed-off-by: Sonic Zhang <sonic.zhang@analog.com>
Signed-off-by: Bob Liu <lliubbo@gmail.com>
  • Loading branch information
Sonic Zhang authored and Bob Liu committed May 21, 2012
1 parent ec98e6b commit 5b8163a
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions arch/blackfin/include/asm/bfin_rotary.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ struct bfin_rotary_platform_data {
unsigned int rotary_rel_code;
unsigned short debounce; /* 0..17 */
unsigned short mode;
unsigned short pm_wakeup;
};

/* CNT_CONFIG bitmasks */
Expand Down
1 change: 1 addition & 0 deletions arch/blackfin/mach-bf527/boards/ad7160eval.c
Original file line number Diff line number Diff line change
Expand Up @@ -681,6 +681,7 @@ static struct bfin_rotary_platform_data bfin_rotary_data = {
.rotary_button_key = KEY_ENTER,
.debounce = 10, /* 0..17 */
.mode = ROT_QUAD_ENC | ROT_DEBE,
.pm_wakeup = 1,
};

static struct resource bfin_rotary_resources[] = {
Expand Down
1 change: 1 addition & 0 deletions arch/blackfin/mach-bf527/boards/ezkit.c
Original file line number Diff line number Diff line change
Expand Up @@ -1105,6 +1105,7 @@ static struct bfin_rotary_platform_data bfin_rotary_data = {
.rotary_button_key = KEY_ENTER,
.debounce = 10, /* 0..17 */
.mode = ROT_QUAD_ENC | ROT_DEBE,
.pm_wakeup = 1,
};

static struct resource bfin_rotary_resources[] = {
Expand Down
1 change: 1 addition & 0 deletions arch/blackfin/mach-bf548/boards/ezkit.c
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ static struct bfin_rotary_platform_data bfin_rotary_data = {
.rotary_button_key = KEY_ENTER,
.debounce = 10, /* 0..17 */
.mode = ROT_QUAD_ENC | ROT_DEBE,
.pm_wakeup = 1,
};

static struct resource bfin_rotary_resources[] = {
Expand Down

0 comments on commit 5b8163a

Please sign in to comment.