diff options
Diffstat (limited to 'arch/arm/mach-omap1/pm.c')
-rw-r--r-- | arch/arm/mach-omap1/pm.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/arch/arm/mach-omap1/pm.c b/arch/arm/mach-omap1/pm.c index 9774c1f5311e..5218943c91c0 100644 --- a/arch/arm/mach-omap1/pm.c +++ b/arch/arm/mach-omap1/pm.c | |||
@@ -53,11 +53,12 @@ | |||
53 | #include <mach/clock.h> | 53 | #include <mach/clock.h> |
54 | #include <mach/sram.h> | 54 | #include <mach/sram.h> |
55 | #include <mach/tc.h> | 55 | #include <mach/tc.h> |
56 | #include <mach/pm.h> | ||
57 | #include <mach/mux.h> | 56 | #include <mach/mux.h> |
58 | #include <mach/dma.h> | 57 | #include <mach/dma.h> |
59 | #include <mach/dmtimer.h> | 58 | #include <mach/dmtimer.h> |
60 | 59 | ||
60 | #include "pm.h" | ||
61 | |||
61 | static unsigned int arm_sleep_save[ARM_SLEEP_SAVE_SIZE]; | 62 | static unsigned int arm_sleep_save[ARM_SLEEP_SAVE_SIZE]; |
62 | static unsigned short dsp_sleep_save[DSP_SLEEP_SAVE_SIZE]; | 63 | static unsigned short dsp_sleep_save[DSP_SLEEP_SAVE_SIZE]; |
63 | static unsigned short ulpd_sleep_save[ULPD_SLEEP_SAVE_SIZE]; | 64 | static unsigned short ulpd_sleep_save[ULPD_SLEEP_SAVE_SIZE]; |
@@ -101,7 +102,7 @@ static void (*omap_sram_suspend)(unsigned long r0, unsigned long r1) = NULL; | |||
101 | * going idle we continue to do idle even if we get | 102 | * going idle we continue to do idle even if we get |
102 | * a clock tick interrupt . . | 103 | * a clock tick interrupt . . |
103 | */ | 104 | */ |
104 | void omap_pm_idle(void) | 105 | void omap1_pm_idle(void) |
105 | { | 106 | { |
106 | extern __u32 arm_idlect1_mask; | 107 | extern __u32 arm_idlect1_mask; |
107 | __u32 use_idlect1 = arm_idlect1_mask; | 108 | __u32 use_idlect1 = arm_idlect1_mask; |
@@ -222,7 +223,7 @@ static void omap_pm_wakeup_setup(void) | |||
222 | #define EN_APICK 6 /* ARM_IDLECT2 */ | 223 | #define EN_APICK 6 /* ARM_IDLECT2 */ |
223 | #define DSP_EN 1 /* ARM_RSTCT1 */ | 224 | #define DSP_EN 1 /* ARM_RSTCT1 */ |
224 | 225 | ||
225 | void omap_pm_suspend(void) | 226 | void omap1_pm_suspend(void) |
226 | { | 227 | { |
227 | unsigned long arg0 = 0, arg1 = 0; | 228 | unsigned long arg0 = 0, arg1 = 0; |
228 | 229 | ||
@@ -610,7 +611,7 @@ static int omap_pm_enter(suspend_state_t state) | |||
610 | { | 611 | { |
611 | case PM_SUSPEND_STANDBY: | 612 | case PM_SUSPEND_STANDBY: |
612 | case PM_SUSPEND_MEM: | 613 | case PM_SUSPEND_MEM: |
613 | omap_pm_suspend(); | 614 | omap1_pm_suspend(); |
614 | break; | 615 | break; |
615 | default: | 616 | default: |
616 | return -EINVAL; | 617 | return -EINVAL; |
@@ -683,7 +684,7 @@ static int __init omap_pm_init(void) | |||
683 | return -ENODEV; | 684 | return -ENODEV; |
684 | } | 685 | } |
685 | 686 | ||
686 | pm_idle = omap_pm_idle; | 687 | pm_idle = omap1_pm_idle; |
687 | 688 | ||
688 | if (cpu_is_omap730()) | 689 | if (cpu_is_omap730()) |
689 | setup_irq(INT_730_WAKE_UP_REQ, &omap_wakeup_irq); | 690 | setup_irq(INT_730_WAKE_UP_REQ, &omap_wakeup_irq); |