25 #ifndef __ARCH_ARM_MACH_OMAP2PLUS_COMMON_H
26 #define __ARCH_ARM_MACH_OMAP2PLUS_COMMON_H
33 #include <asm/proc-fns.h>
37 #include <plat/common.h>
39 #define OMAP_INTC_START NR_IRQS
41 #ifdef CONFIG_SOC_OMAP2420
42 extern void omap242x_map_common_io(
void);
44 static inline void omap242x_map_common_io(
void)
49 #ifdef CONFIG_SOC_OMAP2430
50 extern void omap243x_map_common_io(
void);
52 static inline void omap243x_map_common_io(
void)
57 #ifdef CONFIG_ARCH_OMAP3
58 extern void omap34xx_map_common_io(
void);
60 static inline void omap34xx_map_common_io(
void)
65 #ifdef CONFIG_SOC_TI81XX
66 extern void omapti81xx_map_common_io(
void);
68 static inline void omapti81xx_map_common_io(
void)
73 #ifdef CONFIG_SOC_AM33XX
74 extern void omapam33xx_map_common_io(
void);
76 static inline void omapam33xx_map_common_io(
void)
81 #ifdef CONFIG_ARCH_OMAP4
82 extern void omap44xx_map_common_io(
void);
84 static inline void omap44xx_map_common_io(
void)
89 #if defined(CONFIG_PM) && defined(CONFIG_ARCH_OMAP2)
98 #if defined(CONFIG_PM) && defined(CONFIG_ARCH_OMAP3)
107 #if defined(CONFIG_PM) && defined(CONFIG_ARCH_OMAP4)
116 #ifdef CONFIG_OMAP_MUX
117 int omap_mux_late_init(
void);
119 static inline int omap_mux_late_init(
void)
125 #ifdef CONFIG_SOC_OMAP5
126 extern void omap5_map_common_io(
void);
128 static inline void omap5_map_common_io(
void)
195 #if defined(CONFIG_SOC_HAS_OMAP2_SDRC)
224 #define omap_test_timeout(cond, timeout, index) \
226 for (index = 0; index < timeout; index++) { \
233 extern struct device *omap2_get_mpuss_device(
void);
234 extern struct device *omap2_get_iva_device(
void);
235 extern struct device *omap2_get_l3_device(
void);
236 extern struct device *omap4_get_dsp_device(
void);
242 void omap_intc_save_context(
void);
243 void omap_intc_restore_context(
void);
244 void omap3_intc_suspend(
void);
245 void omap3_intc_prepare_idle(
void);
246 void omap3_intc_resume_idle(
void);
252 #ifdef CONFIG_CACHE_L2X0
253 extern void __iomem *omap4_get_l2cache_base(
void);
280 extern void omap_do_wfi(
void);
284 extern void omap_secondary_startup(
void);
285 extern u32 omap_modify_auxcoreboot0(
u32 set_mask,
u32 clear_mask);
287 extern u32 omap_read_auxcoreboot0(
void);
293 extern void omap5_secondary_startup(
void);
296 #if defined(CONFIG_SMP) && defined(CONFIG_PM)
297 extern int omap4_mpuss_init(
void);
298 extern int omap4_enter_lowpower(
unsigned int cpu,
unsigned int power_state);
299 extern int omap4_finish_suspend(
unsigned long cpu_state);
300 extern void omap4_cpu_resume(
void);
301 extern int omap4_hotplug_cpu(
unsigned int cpu,
unsigned int power_state);
302 extern u32 omap4_mpuss_read_prev_context_state(
void);
304 static inline int omap4_enter_lowpower(
unsigned int cpu,
311 static inline int omap4_hotplug_cpu(
unsigned int cpu,
unsigned int power_state)
317 static inline int omap4_mpuss_init(
void)
322 static inline int omap4_finish_suspend(
unsigned long cpu_state)
327 static inline void omap4_cpu_resume(
void)
330 static inline u32 omap4_mpuss_read_prev_context_state(
void)