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_delay(void); 6 extern void shmobile_boot_vector(void); 7 extern unsigned long shmobile_boot_fn; 8 extern unsigned long shmobile_boot_size; 9 extern void shmobile_boot_vector_gen2(void); 10 extern unsigned long shmobile_boot_fn_gen2; 11 extern unsigned long shmobile_boot_cpu_gen2; 12 extern unsigned long shmobile_boot_size_gen2; 13 extern void shmobile_smp_boot(void); 14 extern void shmobile_smp_sleep(void); 15 extern void shmobile_smp_hook(unsigned int cpu, unsigned long fn, 16 unsigned long arg); 17 extern bool shmobile_smp_cpu_can_disable(unsigned int cpu); 18 extern bool shmobile_smp_init_fallback_ops(void); 19 extern void shmobile_boot_apmu(void); 20 extern void shmobile_boot_scu(void); 21 extern void shmobile_smp_scu_prepare_cpus(phys_addr_t scu_base_phys, 22 unsigned int max_cpus); 23 extern void shmobile_smp_scu_cpu_die(unsigned int cpu); 24 extern int shmobile_smp_scu_cpu_kill(unsigned int cpu); 25 extern struct platform_suspend_ops shmobile_suspend_ops; 26 27 #ifdef CONFIG_SUSPEND 28 int shmobile_suspend_init(void); 29 void shmobile_smp_apmu_suspend_init(void); 30 #else 31 static inline int shmobile_suspend_init(void) { return 0; } 32 static inline void shmobile_smp_apmu_suspend_init(void) { } 33 #endif 34 35 static inline void __init shmobile_init_late(void) 36 { 37 shmobile_suspend_init(); 38 } 39 40 #endif /* __ARCH_MACH_COMMON_H */ 41