diff options
author | Michael Hennerich <michael.hennerich@analog.com> | 2010-03-10 09:26:06 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2010-05-21 09:40:16 -0400 |
commit | bb84dbf69b0730fcc78c275f900ed74b2b8453a5 (patch) | |
tree | c6389f2a68b1f511f685ef5069a4704614ed11c2 /arch/blackfin/mach-common | |
parent | 85eb0e4b15efc8034cbae193c99536dae7896701 (diff) |
Blackfin: punt Blackfin-specific GPIO wakeup API
This patch removes a custom GPIO wakeup API which allowed GPIOs to act
as wakeup sources, which are not configured as Interrupts.
This API is a leftover from the time before irq_wake was established.
From now on people must use enable_irq_wake(GPIO_IRQx) and the GPIO in
question needs to be configured as Interrupt.
Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'arch/blackfin/mach-common')
-rw-r--r-- | arch/blackfin/mach-common/ints-priority.c | 9 | ||||
-rw-r--r-- | arch/blackfin/mach-common/pm.c | 24 |
2 files changed, 1 insertions, 32 deletions
diff --git a/arch/blackfin/mach-common/ints-priority.c b/arch/blackfin/mach-common/ints-priority.c index 7ad8878bfa18..ce988713445d 100644 --- a/arch/blackfin/mach-common/ints-priority.c +++ b/arch/blackfin/mach-common/ints-priority.c | |||
@@ -662,14 +662,7 @@ static int bfin_gpio_irq_type(unsigned int irq, unsigned int type) | |||
662 | #ifdef CONFIG_PM | 662 | #ifdef CONFIG_PM |
663 | int bfin_gpio_set_wake(unsigned int irq, unsigned int state) | 663 | int bfin_gpio_set_wake(unsigned int irq, unsigned int state) |
664 | { | 664 | { |
665 | unsigned gpio = irq_to_gpio(irq); | 665 | return gpio_pm_wakeup_ctrl(irq_to_gpio(irq), state); |
666 | |||
667 | if (state) | ||
668 | gpio_pm_wakeup_request(gpio, PM_WAKE_IGNORE); | ||
669 | else | ||
670 | gpio_pm_wakeup_free(gpio); | ||
671 | |||
672 | return 0; | ||
673 | } | 666 | } |
674 | #endif | 667 | #endif |
675 | 668 | ||
diff --git a/arch/blackfin/mach-common/pm.c b/arch/blackfin/mach-common/pm.c index c1f1ccc846f0..ea7f95f6bb4c 100644 --- a/arch/blackfin/mach-common/pm.c +++ b/arch/blackfin/mach-common/pm.c | |||
@@ -20,35 +20,11 @@ | |||
20 | #include <asm/dma.h> | 20 | #include <asm/dma.h> |
21 | #include <asm/dpmc.h> | 21 | #include <asm/dpmc.h> |
22 | 22 | ||
23 | #ifdef CONFIG_PM_WAKEUP_GPIO_POLAR_H | ||
24 | #define WAKEUP_TYPE PM_WAKE_HIGH | ||
25 | #endif | ||
26 | |||
27 | #ifdef CONFIG_PM_WAKEUP_GPIO_POLAR_L | ||
28 | #define WAKEUP_TYPE PM_WAKE_LOW | ||
29 | #endif | ||
30 | |||
31 | #ifdef CONFIG_PM_WAKEUP_GPIO_POLAR_EDGE_F | ||
32 | #define WAKEUP_TYPE PM_WAKE_FALLING | ||
33 | #endif | ||
34 | |||
35 | #ifdef CONFIG_PM_WAKEUP_GPIO_POLAR_EDGE_R | ||
36 | #define WAKEUP_TYPE PM_WAKE_RISING | ||
37 | #endif | ||
38 | |||
39 | #ifdef CONFIG_PM_WAKEUP_GPIO_POLAR_EDGE_B | ||
40 | #define WAKEUP_TYPE PM_WAKE_BOTH_EDGES | ||
41 | #endif | ||
42 | |||
43 | 23 | ||
44 | void bfin_pm_suspend_standby_enter(void) | 24 | void bfin_pm_suspend_standby_enter(void) |
45 | { | 25 | { |
46 | unsigned long flags; | 26 | unsigned long flags; |
47 | 27 | ||
48 | #ifdef CONFIG_PM_WAKEUP_BY_GPIO | ||
49 | gpio_pm_wakeup_request(CONFIG_PM_WAKEUP_GPIO_NUMBER, WAKEUP_TYPE); | ||
50 | #endif | ||
51 | |||
52 | local_irq_save_hw(flags); | 28 | local_irq_save_hw(flags); |
53 | bfin_pm_standby_setup(); | 29 | bfin_pm_standby_setup(); |
54 | 30 | ||