diff options
author | Kevin Hilman <khilman@deeprootsystems.com> | 2009-05-15 14:29:28 -0400 |
---|---|---|
committer | Kevin Hilman <khilman@deeprootsystems.com> | 2009-05-28 13:59:11 -0400 |
commit | c912f7e1eae169aaca333b4c5da3f36c98f2ccb0 (patch) | |
tree | 15c4164798bcc95211df2dedb09badf9af0b39c6 /arch/arm/mach-omap1/pm.c | |
parent | d3fd3290c4d9f0e40d06fa3a1a8cf164d8cde801 (diff) |
OMAP1: PM: update and decouple from OMAP2/3 PM core
Update OMAP1-specific PM infrastructure. This is a sync of what is in
linux-omap for OMAP1.
This mostly de-couples OMAP1 PM from OMAP2/3 PM and renames things
accordingly, and removes omap2/3 specific code from OMAP1 specific
headers.
Original OMAP1 decoupling patch for OMAP PM branch by Paul Walmsley.
Cc: Paul Walmsley <paul@pwsan.com>
Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
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); |