blob: 9cb11215cebaeb2e4e0a8355589ce6d7e5270b78 [file] [log] [blame]
Magnus Dammc793c1b2010-02-05 11:14:49 +00001#ifndef __ARCH_MACH_COMMON_H
2#define __ARCH_MACH_COMMON_H
3
Magnus Dammc39dae32014-03-06 12:28:24 +09004extern void shmobile_init_delay(void);
Magnus Dammebe72ab2013-06-10 18:19:36 +09005extern void shmobile_boot_vector(void);
6extern unsigned long shmobile_boot_fn;
7extern unsigned long shmobile_boot_arg;
Magnus Damma84a5ab2013-08-08 07:14:07 +09008extern unsigned long shmobile_boot_size;
Magnus Dammcc615912013-08-01 03:38:18 +09009extern void shmobile_smp_boot(void);
10extern void shmobile_smp_sleep(void);
11extern void shmobile_smp_hook(unsigned int cpu, unsigned long fn,
12 unsigned long arg);
Stephen Boyd787047e2015-07-29 00:34:48 +010013extern bool shmobile_smp_cpu_can_disable(unsigned int cpu);
Magnus Dammbfabbcc2013-06-10 18:19:46 +090014extern void shmobile_boot_scu(void);
Magnus Dammc970d4e2013-07-31 16:07:12 +090015extern void shmobile_smp_scu_prepare_cpus(unsigned int max_cpus);
Magnus Damme7b1c962013-07-31 16:07:49 +090016extern void shmobile_smp_scu_cpu_die(unsigned int cpu);
17extern int shmobile_smp_scu_cpu_kill(unsigned int cpu);
Magnus Dammc3dada12011-04-29 02:23:28 +090018extern struct platform_suspend_ops shmobile_suspend_ops;
Magnus Damme47bb512010-05-12 14:21:24 +000019
Shawn Guo21cc1b72012-04-26 21:58:41 +080020#ifdef CONFIG_SUSPEND
21int shmobile_suspend_init(void);
keita kobayashid6d757c2014-05-29 16:24:27 +090022void shmobile_smp_apmu_suspend_init(void);
Shawn Guo21cc1b72012-04-26 21:58:41 +080023#else
24static inline int shmobile_suspend_init(void) { return 0; }
Simon Hormanecdaca42014-06-16 20:21:13 +090025static inline void shmobile_smp_apmu_suspend_init(void) { }
Shawn Guo21cc1b72012-04-26 21:58:41 +080026#endif
27
Gaku Inami06e32c92014-06-03 21:02:45 +090028#ifdef CONFIG_CPU_FREQ
29int shmobile_cpufreq_init(void);
30#else
31static inline int shmobile_cpufreq_init(void) { return 0; }
32#endif
33
Magnus Damm4c822842013-02-13 22:47:17 +090034extern void __iomem *shmobile_scu_base;
Marc Zyngiera62580e2011-09-08 13:15:22 +010035
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();
Gaku Inami06e32c92014-06-03 21:02:45 +090039 shmobile_cpufreq_init();
Rafael J. Wysocki35f2b0b2012-08-15 20:57:27 +020040}
41
Magnus Dammc793c1b2010-02-05 11:14:49 +000042#endif /* __ARCH_MACH_COMMON_H */