Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: Sonic Zhang <sonic.zhang@analog.com>
Signed-off-by: Bob Liu <lliubbo@gmail.com>

authored by

Sonic Zhang and committed by
Bob Liu
5b8163a3 ec98e6b8

+4
+1
arch/blackfin/include/asm/bfin_rotary.h
··· 39 39 unsigned int rotary_rel_code; 40 40 unsigned short debounce; /* 0..17 */ 41 41 unsigned short mode; 42 + unsigned short pm_wakeup; 42 43 }; 43 44 44 45 /* CNT_CONFIG bitmasks */
+1
arch/blackfin/mach-bf527/boards/ad7160eval.c
··· 681 681 .rotary_button_key = KEY_ENTER, 682 682 .debounce = 10, /* 0..17 */ 683 683 .mode = ROT_QUAD_ENC | ROT_DEBE, 684 + .pm_wakeup = 1, 684 685 }; 685 686 686 687 static struct resource bfin_rotary_resources[] = {
+1
arch/blackfin/mach-bf527/boards/ezkit.c
··· 1105 1105 .rotary_button_key = KEY_ENTER, 1106 1106 .debounce = 10, /* 0..17 */ 1107 1107 .mode = ROT_QUAD_ENC | ROT_DEBE, 1108 + .pm_wakeup = 1, 1108 1109 }; 1109 1110 1110 1111 static struct resource bfin_rotary_resources[] = {
+1
arch/blackfin/mach-bf548/boards/ezkit.c
··· 165 165 .rotary_button_key = KEY_ENTER, 166 166 .debounce = 10, /* 0..17 */ 167 167 .mode = ROT_QUAD_ENC | ROT_DEBE, 168 + .pm_wakeup = 1, 168 169 }; 169 170 170 171 static struct resource bfin_rotary_resources[] = {