diff options
author | Michal Marek <mmarek@suse.cz> | 2010-08-04 07:59:13 -0400 |
---|---|---|
committer | Michal Marek <mmarek@suse.cz> | 2010-08-04 07:59:13 -0400 |
commit | 772320e84588dcbe1600ffb83e5f328f2209ac2a (patch) | |
tree | a7de21b79340aeaa17c58126f6b801b82c77b53a /arch/blackfin/mach-common/pm.c | |
parent | 1ce53adf13a54375d2a5c7cdbe341b2558389615 (diff) | |
parent | 9fe6206f400646a2322096b56c59891d530e8d51 (diff) |
Merge commit 'v2.6.35' into kbuild/kbuild
Conflicts:
arch/powerpc/Makefile
Diffstat (limited to 'arch/blackfin/mach-common/pm.c')
-rw-r--r-- | arch/blackfin/mach-common/pm.c | 25 |
1 files changed, 1 insertions, 24 deletions
diff --git a/arch/blackfin/mach-common/pm.c b/arch/blackfin/mach-common/pm.c index 8837be4edb4a..ea7f95f6bb4c 100644 --- a/arch/blackfin/mach-common/pm.c +++ b/arch/blackfin/mach-common/pm.c | |||
@@ -11,6 +11,7 @@ | |||
11 | #include <linux/suspend.h> | 11 | #include <linux/suspend.h> |
12 | #include <linux/sched.h> | 12 | #include <linux/sched.h> |
13 | #include <linux/proc_fs.h> | 13 | #include <linux/proc_fs.h> |
14 | #include <linux/slab.h> | ||
14 | #include <linux/io.h> | 15 | #include <linux/io.h> |
15 | #include <linux/irq.h> | 16 | #include <linux/irq.h> |
16 | 17 | ||
@@ -19,35 +20,11 @@ | |||
19 | #include <asm/dma.h> | 20 | #include <asm/dma.h> |
20 | #include <asm/dpmc.h> | 21 | #include <asm/dpmc.h> |
21 | 22 | ||
22 | #ifdef CONFIG_PM_WAKEUP_GPIO_POLAR_H | ||
23 | #define WAKEUP_TYPE PM_WAKE_HIGH | ||
24 | #endif | ||
25 | |||
26 | #ifdef CONFIG_PM_WAKEUP_GPIO_POLAR_L | ||
27 | #define WAKEUP_TYPE PM_WAKE_LOW | ||
28 | #endif | ||
29 | |||
30 | #ifdef CONFIG_PM_WAKEUP_GPIO_POLAR_EDGE_F | ||
31 | #define WAKEUP_TYPE PM_WAKE_FALLING | ||
32 | #endif | ||
33 | |||
34 | #ifdef CONFIG_PM_WAKEUP_GPIO_POLAR_EDGE_R | ||
35 | #define WAKEUP_TYPE PM_WAKE_RISING | ||
36 | #endif | ||
37 | |||
38 | #ifdef CONFIG_PM_WAKEUP_GPIO_POLAR_EDGE_B | ||
39 | #define WAKEUP_TYPE PM_WAKE_BOTH_EDGES | ||
40 | #endif | ||
41 | |||
42 | 23 | ||
43 | void bfin_pm_suspend_standby_enter(void) | 24 | void bfin_pm_suspend_standby_enter(void) |
44 | { | 25 | { |
45 | unsigned long flags; | 26 | unsigned long flags; |
46 | 27 | ||
47 | #ifdef CONFIG_PM_WAKEUP_BY_GPIO | ||
48 | gpio_pm_wakeup_request(CONFIG_PM_WAKEUP_GPIO_NUMBER, WAKEUP_TYPE); | ||
49 | #endif | ||
50 | |||
51 | local_irq_save_hw(flags); | 28 | local_irq_save_hw(flags); |
52 | bfin_pm_standby_setup(); | 29 | bfin_pm_standby_setup(); |
53 | 30 | ||