diff options
Diffstat (limited to 'arch/arm/mach-omap2/pm.h')
-rw-r--r-- | arch/arm/mach-omap2/pm.h | 29 |
1 files changed, 27 insertions, 2 deletions
diff --git a/arch/arm/mach-omap2/pm.h b/arch/arm/mach-omap2/pm.h index 0d75bfd1fdbe..8b4f45eba1b5 100644 --- a/arch/arm/mach-omap2/pm.h +++ b/arch/arm/mach-omap2/pm.h | |||
@@ -20,6 +20,20 @@ extern int omap3_can_sleep(void); | |||
20 | extern int omap_set_pwrdm_state(struct powerdomain *pwrdm, u32 state); | 20 | extern int omap_set_pwrdm_state(struct powerdomain *pwrdm, u32 state); |
21 | extern int omap3_idle_init(void); | 21 | extern int omap3_idle_init(void); |
22 | 22 | ||
23 | #if defined(CONFIG_PM_OPP) | ||
24 | extern int omap3_opp_init(void); | ||
25 | extern int omap4_opp_init(void); | ||
26 | #else | ||
27 | static inline int omap3_opp_init(void) | ||
28 | { | ||
29 | return -EINVAL; | ||
30 | } | ||
31 | static inline int omap4_opp_init(void) | ||
32 | { | ||
33 | return -EINVAL; | ||
34 | } | ||
35 | #endif | ||
36 | |||
23 | struct cpuidle_params { | 37 | struct cpuidle_params { |
24 | u8 valid; | 38 | u8 valid; |
25 | u32 sleep_latency; | 39 | u32 sleep_latency; |
@@ -58,7 +72,7 @@ extern u32 sleep_while_idle; | |||
58 | #endif | 72 | #endif |
59 | 73 | ||
60 | #if defined(CONFIG_CPU_IDLE) | 74 | #if defined(CONFIG_CPU_IDLE) |
61 | extern void omap3_cpuidle_update_states(void); | 75 | extern void omap3_cpuidle_update_states(u32, u32); |
62 | #endif | 76 | #endif |
63 | 77 | ||
64 | #if defined(CONFIG_PM_DEBUG) && defined(CONFIG_DEBUG_FS) | 78 | #if defined(CONFIG_PM_DEBUG) && defined(CONFIG_DEBUG_FS) |
@@ -80,9 +94,20 @@ extern void save_secure_ram_context(u32 *addr); | |||
80 | extern void omap3_save_scratchpad_contents(void); | 94 | extern void omap3_save_scratchpad_contents(void); |
81 | 95 | ||
82 | extern unsigned int omap24xx_idle_loop_suspend_sz; | 96 | extern unsigned int omap24xx_idle_loop_suspend_sz; |
83 | extern unsigned int omap34xx_suspend_sz; | ||
84 | extern unsigned int save_secure_ram_context_sz; | 97 | extern unsigned int save_secure_ram_context_sz; |
85 | extern unsigned int omap24xx_cpu_suspend_sz; | 98 | extern unsigned int omap24xx_cpu_suspend_sz; |
86 | extern unsigned int omap34xx_cpu_suspend_sz; | 99 | extern unsigned int omap34xx_cpu_suspend_sz; |
87 | 100 | ||
101 | #define PM_RTA_ERRATUM_i608 (1 << 0) | ||
102 | #define PM_SDRC_WAKEUP_ERRATUM_i583 (1 << 1) | ||
103 | |||
104 | #if defined(CONFIG_PM) && defined(CONFIG_ARCH_OMAP3) | ||
105 | extern u16 pm34xx_errata; | ||
106 | #define IS_PM34XX_ERRATUM(id) (pm34xx_errata & (id)) | ||
107 | extern void enable_omap3630_toggle_l2_on_restore(void); | ||
108 | #else | ||
109 | #define IS_PM34XX_ERRATUM(id) 0 | ||
110 | static inline void enable_omap3630_toggle_l2_on_restore(void) { } | ||
111 | #endif /* defined(CONFIG_PM) && defined(CONFIG_ARCH_OMAP3) */ | ||
112 | |||
88 | #endif | 113 | #endif |