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