xref: /openbmc/linux/arch/arm/mach-shmobile/common.h (revision 93161cb4)
1 #ifndef __ARCH_MACH_COMMON_H
2 #define __ARCH_MACH_COMMON_H
3 
4 extern void shmobile_init_delay(void);
5 struct twd_local_timer;
6 extern void shmobile_boot_vector(void);
7 extern unsigned long shmobile_boot_fn;
8 extern unsigned long shmobile_boot_arg;
9 extern unsigned long shmobile_boot_size;
10 extern void shmobile_smp_boot(void);
11 extern void shmobile_smp_sleep(void);
12 extern void shmobile_smp_hook(unsigned int cpu, unsigned long fn,
13 			      unsigned long arg);
14 extern bool shmobile_smp_cpu_can_disable(unsigned int cpu);
15 extern void shmobile_boot_scu(void);
16 extern void shmobile_smp_scu_prepare_cpus(unsigned int max_cpus);
17 extern void shmobile_smp_scu_cpu_die(unsigned int cpu);
18 extern int shmobile_smp_scu_cpu_kill(unsigned int cpu);
19 struct clk;
20 extern int shmobile_clk_init(void);
21 extern struct platform_suspend_ops shmobile_suspend_ops;
22 
23 #ifdef CONFIG_SUSPEND
24 int shmobile_suspend_init(void);
25 void shmobile_smp_apmu_suspend_init(void);
26 #else
27 static inline int shmobile_suspend_init(void) { return 0; }
28 static inline void shmobile_smp_apmu_suspend_init(void) { }
29 #endif
30 
31 #ifdef CONFIG_CPU_FREQ
32 int shmobile_cpufreq_init(void);
33 #else
34 static inline int shmobile_cpufreq_init(void) { return 0; }
35 #endif
36 
37 extern void __iomem *shmobile_scu_base;
38 
39 static inline void __init shmobile_init_late(void)
40 {
41 	shmobile_suspend_init();
42 	shmobile_cpufreq_init();
43 }
44 
45 #endif /* __ARCH_MACH_COMMON_H */
46