diff options
Diffstat (limited to 'arch/arm/mach-omap2/pm.h')
-rw-r--r-- | arch/arm/mach-omap2/pm.h | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/arch/arm/mach-omap2/pm.h b/arch/arm/mach-omap2/pm.h index 78564895e914..686137d164da 100644 --- a/arch/arm/mach-omap2/pm.h +++ b/arch/arm/mach-omap2/pm.h | |||
@@ -15,12 +15,25 @@ | |||
15 | 15 | ||
16 | #include "powerdomain.h" | 16 | #include "powerdomain.h" |
17 | 17 | ||
18 | #ifdef CONFIG_CPU_IDLE | ||
19 | extern int __init omap3_idle_init(void); | ||
20 | extern int __init omap4_idle_init(void); | ||
21 | #else | ||
22 | static inline int omap3_idle_init(void) | ||
23 | { | ||
24 | return 0; | ||
25 | } | ||
26 | |||
27 | static inline int omap4_idle_init(void) | ||
28 | { | ||
29 | return 0; | ||
30 | } | ||
31 | #endif | ||
32 | |||
18 | extern void *omap3_secure_ram_storage; | 33 | extern void *omap3_secure_ram_storage; |
19 | extern void omap3_pm_off_mode_enable(int); | 34 | extern void omap3_pm_off_mode_enable(int); |
20 | extern void omap_sram_idle(void); | 35 | extern void omap_sram_idle(void); |
21 | extern int omap_set_pwrdm_state(struct powerdomain *pwrdm, u32 state); | 36 | extern int omap_set_pwrdm_state(struct powerdomain *pwrdm, u32 state); |
22 | extern int omap3_idle_init(void); | ||
23 | extern int omap4_idle_init(void); | ||
24 | extern int omap_pm_clkdms_setup(struct clockdomain *clkdm, void *unused); | 37 | extern int omap_pm_clkdms_setup(struct clockdomain *clkdm, void *unused); |
25 | extern int (*omap_pm_suspend)(void); | 38 | extern int (*omap_pm_suspend)(void); |
26 | 39 | ||
@@ -88,7 +101,7 @@ extern void enable_omap3630_toggle_l2_on_restore(void); | |||
88 | static inline void enable_omap3630_toggle_l2_on_restore(void) { } | 101 | static inline void enable_omap3630_toggle_l2_on_restore(void) { } |
89 | #endif /* defined(CONFIG_PM) && defined(CONFIG_ARCH_OMAP3) */ | 102 | #endif /* defined(CONFIG_PM) && defined(CONFIG_ARCH_OMAP3) */ |
90 | 103 | ||
91 | #ifdef CONFIG_OMAP_SMARTREFLEX | 104 | #ifdef CONFIG_POWER_AVS_OMAP |
92 | extern int omap_devinit_smartreflex(void); | 105 | extern int omap_devinit_smartreflex(void); |
93 | extern void omap_enable_smartreflex_on_init(void); | 106 | extern void omap_enable_smartreflex_on_init(void); |
94 | #else | 107 | #else |