ARM: shmobile: Introduce per-CPU SMP boot / sleep code
[deliverable/linux.git] / arch / arm / mach-shmobile / include / mach / common.h
CommitLineData
c793c1b0
MD
1#ifndef __ARCH_MACH_COMMON_H
2#define __ARCH_MACH_COMMON_H
3
08ad42fb 4extern void shmobile_earlytimer_init(void);
6bb27d73 5extern void shmobile_timer_init(void);
0f2c9f20 6extern void shmobile_setup_delay(unsigned int max_cpu_core_mhz,
a62580e5 7 unsigned int mult, unsigned int div);
4200b16d 8struct twd_local_timer;
4ae04acb 9extern void shmobile_setup_console(void);
ebe72ab9
MD
10extern void shmobile_boot_vector(void);
11extern unsigned long shmobile_boot_fn;
12extern unsigned long shmobile_boot_arg;
cc61591e
MD
13extern void shmobile_smp_boot(void);
14extern void shmobile_smp_sleep(void);
15extern void shmobile_smp_hook(unsigned int cpu, unsigned long fn,
16 unsigned long arg);
bfabbcc6 17extern void shmobile_boot_scu(void);
c970d4ef
MD
18extern void shmobile_smp_scu_prepare_cpus(unsigned int max_cpus);
19extern int shmobile_smp_scu_boot_secondary(unsigned int cpu,
20 struct task_struct *idle);
e7b1c963
MD
21extern void shmobile_smp_scu_cpu_die(unsigned int cpu);
22extern int shmobile_smp_scu_cpu_kill(unsigned int cpu);
83ca5c87 23struct clk;
6b6a4c06 24extern int shmobile_clk_init(void);
863b1719 25extern void shmobile_handle_irq_intc(struct pt_regs *);
c3dada18 26extern struct platform_suspend_ops shmobile_suspend_ops;
b73b5c49 27struct cpuidle_driver;
5b41147c 28extern void shmobile_cpuidle_set_driver(struct cpuidle_driver *drv);
e47bb515 29
21cc1b7e
SG
30#ifdef CONFIG_SUSPEND
31int shmobile_suspend_init(void);
32#else
33static inline int shmobile_suspend_init(void) { return 0; }
34#endif
35
36#ifdef CONFIG_CPU_IDLE
37int shmobile_cpuidle_init(void);
38#else
39static inline int shmobile_cpuidle_init(void) { return 0; }
40#endif
41
4c822845 42extern void __iomem *shmobile_scu_base;
a62580e5
MZ
43extern void shmobile_smp_init_cpus(unsigned int ncores);
44
b3796d92 45static inline void __init shmobile_init_late(void)
35f2b0bd
RW
46{
47 shmobile_suspend_init();
48 shmobile_cpuidle_init();
49}
50
c793c1b0 51#endif /* __ARCH_MACH_COMMON_H */
This page took 0.153851 seconds and 5 git commands to generate.