blob: f8fcd799d677b425d17ee79a54b954ab67d6b233 [file] [log] [blame]
rjw1f884582022-01-06 17:20:42 +08001/* SPDX-License-Identifier: GPL-2.0 */
2#ifndef __ARCH_MACH_COMMON_H
3#define __ARCH_MACH_COMMON_H
4
5extern void shmobile_init_delay(void);
6extern void shmobile_boot_vector(void);
7extern unsigned long shmobile_boot_fn;
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 bool shmobile_smp_init_fallback_ops(void);
15extern void shmobile_boot_scu(void);
16extern void shmobile_smp_scu_prepare_cpus(phys_addr_t scu_base_phys,
17 unsigned int max_cpus);
18extern void shmobile_smp_scu_cpu_die(unsigned int cpu);
19extern int shmobile_smp_scu_cpu_kill(unsigned int cpu);
20extern struct platform_suspend_ops shmobile_suspend_ops;
21
22#ifdef CONFIG_SUSPEND
23int shmobile_suspend_init(void);
24void shmobile_smp_apmu_suspend_init(void);
25#else
26static inline int shmobile_suspend_init(void) { return 0; }
27static inline void shmobile_smp_apmu_suspend_init(void) { }
28#endif
29
30static inline void __init shmobile_init_late(void)
31{
32 shmobile_suspend_init();
33}
34
35#endif /* __ARCH_MACH_COMMON_H */