]>
Commit | Line | Data |
---|---|---|
b2441318 | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
c793c1b0 MD |
2 | #ifndef __ARCH_MACH_COMMON_H |
3 | #define __ARCH_MACH_COMMON_H | |
4 | ||
c39dae38 | 5 | extern void shmobile_init_delay(void); |
ebe72ab9 MD |
6 | extern void shmobile_boot_vector(void); |
7 | extern unsigned long shmobile_boot_fn; | |
a84a5ab7 | 8 | extern unsigned long shmobile_boot_size; |
cc61591e MD |
9 | extern void shmobile_smp_boot(void); |
10 | extern void shmobile_smp_sleep(void); | |
11 | extern void shmobile_smp_hook(unsigned int cpu, unsigned long fn, | |
12 | unsigned long arg); | |
787047ee | 13 | extern bool shmobile_smp_cpu_can_disable(unsigned int cpu); |
c21af444 | 14 | extern bool shmobile_smp_init_fallback_ops(void); |
bfabbcc6 | 15 | extern void shmobile_boot_scu(void); |
8701d808 GU |
16 | extern void shmobile_smp_scu_prepare_cpus(phys_addr_t scu_base_phys, |
17 | unsigned int max_cpus); | |
e7b1c963 MD |
18 | extern void shmobile_smp_scu_cpu_die(unsigned int cpu); |
19 | extern int shmobile_smp_scu_cpu_kill(unsigned int cpu); | |
c3dada18 | 20 | extern struct platform_suspend_ops shmobile_suspend_ops; |
e47bb515 | 21 | |
21cc1b7e SG |
22 | #ifdef CONFIG_SUSPEND |
23 | int shmobile_suspend_init(void); | |
d6d757c9 | 24 | void shmobile_smp_apmu_suspend_init(void); |
21cc1b7e SG |
25 | #else |
26 | static inline int shmobile_suspend_init(void) { return 0; } | |
ecdaca48 | 27 | static inline void shmobile_smp_apmu_suspend_init(void) { } |
21cc1b7e SG |
28 | #endif |
29 | ||
b3796d92 | 30 | static inline void __init shmobile_init_late(void) |
35f2b0bd RW |
31 | { |
32 | shmobile_suspend_init(); | |
35f2b0bd RW |
33 | } |
34 | ||
c793c1b0 | 35 | #endif /* __ARCH_MACH_COMMON_H */ |