aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/pm.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-omap2/pm.h')
-rw-r--r--arch/arm/mach-omap2/pm.h29
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);
20extern int omap_set_pwrdm_state(struct powerdomain *pwrdm, u32 state); 20extern int omap_set_pwrdm_state(struct powerdomain *pwrdm, u32 state);
21extern int omap3_idle_init(void); 21extern int omap3_idle_init(void);
22 22
23#if defined(CONFIG_PM_OPP)
24extern int omap3_opp_init(void);
25extern int omap4_opp_init(void);
26#else
27static inline int omap3_opp_init(void)
28{
29 return -EINVAL;
30}
31static inline int omap4_opp_init(void)
32{
33 return -EINVAL;
34}
35#endif
36
23struct cpuidle_params { 37struct 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)
61extern void omap3_cpuidle_update_states(void); 75extern 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);
80extern void omap3_save_scratchpad_contents(void); 94extern void omap3_save_scratchpad_contents(void);
81 95
82extern unsigned int omap24xx_idle_loop_suspend_sz; 96extern unsigned int omap24xx_idle_loop_suspend_sz;
83extern unsigned int omap34xx_suspend_sz;
84extern unsigned int save_secure_ram_context_sz; 97extern unsigned int save_secure_ram_context_sz;
85extern unsigned int omap24xx_cpu_suspend_sz; 98extern unsigned int omap24xx_cpu_suspend_sz;
86extern unsigned int omap34xx_cpu_suspend_sz; 99extern 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)
105extern u16 pm34xx_errata;
106#define IS_PM34XX_ERRATUM(id) (pm34xx_errata & (id))
107extern void enable_omap3630_toggle_l2_on_restore(void);
108#else
109#define IS_PM34XX_ERRATUM(id) 0
110static inline void enable_omap3630_toggle_l2_on_restore(void) { }
111#endif /* defined(CONFIG_PM) && defined(CONFIG_ARCH_OMAP3) */
112
88#endif 113#endif