Loading...
Note: File does not exist in v3.15.
1/* SPDX-License-Identifier: GPL-2.0 */
2#ifndef __ARCH_MACH_COMMON_H
3#define __ARCH_MACH_COMMON_H
4
5extern void shmobile_init_cntvoff(void);
6extern void shmobile_init_delay(void);
7extern void shmobile_boot_vector(void);
8extern unsigned long shmobile_boot_fn;
9extern unsigned long shmobile_boot_size;
10extern void shmobile_boot_vector_gen2(void);
11extern unsigned long shmobile_boot_fn_gen2;
12extern unsigned long shmobile_boot_cpu_gen2;
13extern unsigned long shmobile_boot_size_gen2;
14extern void shmobile_smp_boot(void);
15extern void shmobile_smp_sleep(void);
16extern void shmobile_smp_hook(unsigned int cpu, unsigned long fn,
17 unsigned long arg);
18extern bool shmobile_smp_cpu_can_disable(unsigned int cpu);
19extern bool shmobile_smp_init_fallback_ops(void);
20extern void shmobile_boot_apmu(void);
21extern void shmobile_boot_scu(void);
22extern void shmobile_smp_scu_prepare_cpus(phys_addr_t scu_base_phys,
23 unsigned int max_cpus);
24extern void shmobile_smp_scu_cpu_die(unsigned int cpu);
25extern int shmobile_smp_scu_cpu_kill(unsigned int cpu);
26extern struct platform_suspend_ops shmobile_suspend_ops;
27
28#ifdef CONFIG_SUSPEND
29int shmobile_suspend_init(void);
30void shmobile_smp_apmu_suspend_init(void);
31#else
32static inline int shmobile_suspend_init(void) { return 0; }
33static inline void shmobile_smp_apmu_suspend_init(void) { }
34#endif
35
36static inline void __init shmobile_init_late(void)
37{
38 shmobile_suspend_init();
39}
40
41#endif /* __ARCH_MACH_COMMON_H */