blackfin: rotary: Add pm_wakeup flag to platform data structure.
authorSonic Zhang <sonic.zhang@analog.com>
Tue, 8 May 2012 07:41:18 +0000 (15:41 +0800)
committerBob Liu <lliubbo@gmail.com>
Mon, 21 May 2012 06:54:43 +0000 (14:54 +0800)
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>
arch/blackfin/include/asm/bfin_rotary.h
arch/blackfin/mach-bf527/boards/ad7160eval.c
arch/blackfin/mach-bf527/boards/ezkit.c
arch/blackfin/mach-bf548/boards/ezkit.c

index 0b6910bdc57f43b9063522ed402083895b08f1b8..8895a750c70c6511c29507c7f6532b30aff3479d 100644 (file)
@@ -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 */
index fad7fea1b0bf4b5dd6bdb0fa8e981f14ed9beae1..423381da08b2538ce79cef6b33ae7004d721fe08 100644 (file)
@@ -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[] = {
index 2f9a2bd83ce44fb47d165a7fb8d4f772e2d99ef2..3196683e0f2c960f16514919a2f7ccf799c3337b 100644 (file)
@@ -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[] = {
index 4cadaf8d0b56d07c885f9ee5206163bc27e610d8..4f4bd918566c92fef9681fe92cb402f2ef8344a5 100644 (file)
@@ -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[] = {