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