blob: 43c1ac696274175779b9ea20636a263ed54e22e2 [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001/* SPDX-License-Identifier: GPL-2.0 */
Magnus Dammc793c1b2010-02-05 11:14:49 +00002#ifndef __ARCH_MACH_COMMON_H
3#define __ARCH_MACH_COMMON_H
4
Geert Uytterhoeven3fd45a12017-09-01 10:37:45 +02005extern void shmobile_init_cntvoff(void);
Magnus Dammc39dae32014-03-06 12:28:24 +09006extern void shmobile_init_delay(void);
Magnus Dammebe72ab2013-06-10 18:19:36 +09007extern void shmobile_boot_vector(void);
8extern unsigned long shmobile_boot_fn;
Magnus Damma84a5ab2013-08-08 07:14:07 +09009extern unsigned long shmobile_boot_size;
Fabrizio Castro58adf1b2018-02-28 17:40:22 +000010extern 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;
Magnus Dammcc615912013-08-01 03:38:18 +090014extern 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);
Stephen Boyd787047e2015-07-29 00:34:48 +010018extern bool shmobile_smp_cpu_can_disable(unsigned int cpu);
Magnus Dammc21af442016-06-28 16:10:37 +020019extern bool shmobile_smp_init_fallback_ops(void);
Geert Uytterhoeven3fd45a12017-09-01 10:37:45 +020020extern void shmobile_boot_apmu(void);
Magnus Dammbfabbcc2013-06-10 18:19:46 +090021extern void shmobile_boot_scu(void);
Geert Uytterhoeven8701d802016-01-28 16:13:32 +010022extern void shmobile_smp_scu_prepare_cpus(phys_addr_t scu_base_phys,
23 unsigned int max_cpus);
Magnus Damme7b1c962013-07-31 16:07:49 +090024extern void shmobile_smp_scu_cpu_die(unsigned int cpu);
25extern int shmobile_smp_scu_cpu_kill(unsigned int cpu);
Magnus Dammc3dada12011-04-29 02:23:28 +090026extern struct platform_suspend_ops shmobile_suspend_ops;
Magnus Damme47bb512010-05-12 14:21:24 +000027
Shawn Guo21cc1b72012-04-26 21:58:41 +080028#ifdef CONFIG_SUSPEND
29int shmobile_suspend_init(void);
keita kobayashid6d757c2014-05-29 16:24:27 +090030void shmobile_smp_apmu_suspend_init(void);
Shawn Guo21cc1b72012-04-26 21:58:41 +080031#else
32static inline int shmobile_suspend_init(void) { return 0; }
Simon Hormanecdaca42014-06-16 20:21:13 +090033static inline void shmobile_smp_apmu_suspend_init(void) { }
Shawn Guo21cc1b72012-04-26 21:58:41 +080034#endif
35
Arnd Bergmannb3796d92012-09-23 22:36:35 +000036static inline void __init shmobile_init_late(void)
Rafael J. Wysocki35f2b0b2012-08-15 20:57:27 +020037{
38 shmobile_suspend_init();
Rafael J. Wysocki35f2b0b2012-08-15 20:57:27 +020039}
40
Magnus Dammc793c1b2010-02-05 11:14:49 +000041#endif /* __ARCH_MACH_COMMON_H */