diff options
Diffstat (limited to 'arch/arm/mach-omap2/pm.h')
-rw-r--r-- | arch/arm/mach-omap2/pm.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/pm.h b/arch/arm/mach-omap2/pm.h index 482df7fc1585..1c1b0ab5b978 100644 --- a/arch/arm/mach-omap2/pm.h +++ b/arch/arm/mach-omap2/pm.h | |||
@@ -11,6 +11,8 @@ | |||
11 | #ifndef __ARCH_ARM_MACH_OMAP2_PM_H | 11 | #ifndef __ARCH_ARM_MACH_OMAP2_PM_H |
12 | #define __ARCH_ARM_MACH_OMAP2_PM_H | 12 | #define __ARCH_ARM_MACH_OMAP2_PM_H |
13 | 13 | ||
14 | #include <linux/err.h> | ||
15 | |||
14 | #include "powerdomain.h" | 16 | #include "powerdomain.h" |
15 | 17 | ||
16 | extern void *omap3_secure_ram_storage; | 18 | extern void *omap3_secure_ram_storage; |
@@ -110,4 +112,30 @@ extern void enable_omap3630_toggle_l2_on_restore(void); | |||
110 | static inline void enable_omap3630_toggle_l2_on_restore(void) { } | 112 | static inline void enable_omap3630_toggle_l2_on_restore(void) { } |
111 | #endif /* defined(CONFIG_PM) && defined(CONFIG_ARCH_OMAP3) */ | 113 | #endif /* defined(CONFIG_PM) && defined(CONFIG_ARCH_OMAP3) */ |
112 | 114 | ||
115 | #ifdef CONFIG_OMAP_SMARTREFLEX | ||
116 | extern int omap_devinit_smartreflex(void); | ||
117 | extern void omap_enable_smartreflex_on_init(void); | ||
118 | #else | ||
119 | static inline int omap_devinit_smartreflex(void) | ||
120 | { | ||
121 | return -EINVAL; | ||
122 | } | ||
123 | |||
124 | static inline void omap_enable_smartreflex_on_init(void) {} | ||
125 | #endif | ||
126 | |||
127 | #ifdef CONFIG_TWL4030_CORE | ||
128 | extern int omap3_twl_init(void); | ||
129 | extern int omap4_twl_init(void); | ||
130 | #else | ||
131 | static inline int omap3_twl_init(void) | ||
132 | { | ||
133 | return -EINVAL; | ||
134 | } | ||
135 | static inline int omap4_twl_init(void) | ||
136 | { | ||
137 | return -EINVAL; | ||
138 | } | ||
139 | #endif | ||
140 | |||
113 | #endif | 141 | #endif |