Magnus Damm | c793c1b | 2010-02-05 11:14:49 +0000 | [diff] [blame] | 1 | #ifndef __ARCH_MACH_COMMON_H |
| 2 | #define __ARCH_MACH_COMMON_H |
| 3 | |
Magnus Damm | c39dae3 | 2014-03-06 12:28:24 +0900 | [diff] [blame] | 4 | extern void shmobile_init_delay(void); |
Magnus Damm | ebe72ab | 2013-06-10 18:19:36 +0900 | [diff] [blame] | 5 | extern void shmobile_boot_vector(void); |
| 6 | extern unsigned long shmobile_boot_fn; |
Magnus Damm | a84a5ab | 2013-08-08 07:14:07 +0900 | [diff] [blame] | 7 | extern unsigned long shmobile_boot_size; |
Magnus Damm | cc61591 | 2013-08-01 03:38:18 +0900 | [diff] [blame] | 8 | extern void shmobile_smp_boot(void); |
| 9 | extern void shmobile_smp_sleep(void); |
| 10 | extern void shmobile_smp_hook(unsigned int cpu, unsigned long fn, |
| 11 | unsigned long arg); |
Stephen Boyd | 787047e | 2015-07-29 00:34:48 +0100 | [diff] [blame] | 12 | extern bool shmobile_smp_cpu_can_disable(unsigned int cpu); |
Magnus Damm | c21af44 | 2016-06-28 16:10:37 +0200 | [diff] [blame] | 13 | extern bool shmobile_smp_init_fallback_ops(void); |
Magnus Damm | bfabbcc | 2013-06-10 18:19:46 +0900 | [diff] [blame] | 14 | extern void shmobile_boot_scu(void); |
Geert Uytterhoeven | 8701d80 | 2016-01-28 16:13:32 +0100 | [diff] [blame] | 15 | extern void shmobile_smp_scu_prepare_cpus(phys_addr_t scu_base_phys, |
| 16 | unsigned int max_cpus); |
Magnus Damm | e7b1c96 | 2013-07-31 16:07:49 +0900 | [diff] [blame] | 17 | extern void shmobile_smp_scu_cpu_die(unsigned int cpu); |
| 18 | extern int shmobile_smp_scu_cpu_kill(unsigned int cpu); |
Magnus Damm | c3dada1 | 2011-04-29 02:23:28 +0900 | [diff] [blame] | 19 | extern struct platform_suspend_ops shmobile_suspend_ops; |
Magnus Damm | e47bb51 | 2010-05-12 14:21:24 +0000 | [diff] [blame] | 20 | |
Shawn Guo | 21cc1b7 | 2012-04-26 21:58:41 +0800 | [diff] [blame] | 21 | #ifdef CONFIG_SUSPEND |
| 22 | int shmobile_suspend_init(void); |
keita kobayashi | d6d757c | 2014-05-29 16:24:27 +0900 | [diff] [blame] | 23 | void shmobile_smp_apmu_suspend_init(void); |
Shawn Guo | 21cc1b7 | 2012-04-26 21:58:41 +0800 | [diff] [blame] | 24 | #else |
| 25 | static inline int shmobile_suspend_init(void) { return 0; } |
Simon Horman | ecdaca4 | 2014-06-16 20:21:13 +0900 | [diff] [blame] | 26 | static inline void shmobile_smp_apmu_suspend_init(void) { } |
Shawn Guo | 21cc1b7 | 2012-04-26 21:58:41 +0800 | [diff] [blame] | 27 | #endif |
| 28 | |
Arnd Bergmann | b3796d9 | 2012-09-23 22:36:35 +0000 | [diff] [blame] | 29 | static inline void __init shmobile_init_late(void) |
Rafael J. Wysocki | 35f2b0b | 2012-08-15 20:57:27 +0200 | [diff] [blame] | 30 | { |
| 31 | shmobile_suspend_init(); |
Rafael J. Wysocki | 35f2b0b | 2012-08-15 20:57:27 +0200 | [diff] [blame] | 32 | } |
| 33 | |
Magnus Damm | c793c1b | 2010-02-05 11:14:49 +0000 | [diff] [blame] | 34 | #endif /* __ARCH_MACH_COMMON_H */ |