blob: 9cb11215cebaeb2e4e0a8355589ce6d7e5270b78 [file] [log] [blame]
Kyle Swenson8d8f6542021-03-15 11:02:55 -06001#ifndef __ARCH_MACH_COMMON_H
2#define __ARCH_MACH_COMMON_H
3
4extern void shmobile_init_delay(void);
5extern void shmobile_boot_vector(void);
6extern unsigned long shmobile_boot_fn;
7extern unsigned long shmobile_boot_arg;
8extern unsigned long shmobile_boot_size;
9extern void shmobile_smp_boot(void);
10extern void shmobile_smp_sleep(void);
11extern void shmobile_smp_hook(unsigned int cpu, unsigned long fn,
12 unsigned long arg);
13extern bool shmobile_smp_cpu_can_disable(unsigned int cpu);
14extern void shmobile_boot_scu(void);
15extern void shmobile_smp_scu_prepare_cpus(unsigned int max_cpus);
16extern void shmobile_smp_scu_cpu_die(unsigned int cpu);
17extern int shmobile_smp_scu_cpu_kill(unsigned int cpu);
18extern struct platform_suspend_ops shmobile_suspend_ops;
19
20#ifdef CONFIG_SUSPEND
21int shmobile_suspend_init(void);
22void shmobile_smp_apmu_suspend_init(void);
23#else
24static inline int shmobile_suspend_init(void) { return 0; }
25static inline void shmobile_smp_apmu_suspend_init(void) { }
26#endif
27
28#ifdef CONFIG_CPU_FREQ
29int shmobile_cpufreq_init(void);
30#else
31static inline int shmobile_cpufreq_init(void) { return 0; }
32#endif
33
34extern void __iomem *shmobile_scu_base;
35
36static inline void __init shmobile_init_late(void)
37{
38 shmobile_suspend_init();
39 shmobile_cpufreq_init();
40}
41
42#endif /* __ARCH_MACH_COMMON_H */