ARM: shmobile: Shared APMU SMP support code without DT
[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);
0f2c9f20 5extern void shmobile_setup_delay(unsigned int max_cpu_core_mhz,
a62580e5 6 unsigned int mult, unsigned int div);
4200b16d 7struct twd_local_timer;
4ae04acb 8extern void shmobile_setup_console(void);
ebe72ab9
MD
9extern void shmobile_boot_vector(void);
10extern unsigned long shmobile_boot_fn;
11extern unsigned long shmobile_boot_arg;
a84a5ab7 12extern unsigned long shmobile_boot_size;
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);
5c4dfcd6 17extern int shmobile_smp_cpu_disable(unsigned int cpu);
87a08ca0 18extern void shmobile_invalidate_start(void);
bfabbcc6 19extern void shmobile_boot_scu(void);
c970d4ef
MD
20extern void shmobile_smp_scu_prepare_cpus(unsigned int max_cpus);
21extern int shmobile_smp_scu_boot_secondary(unsigned int cpu,
22 struct task_struct *idle);
e7b1c963
MD
23extern void shmobile_smp_scu_cpu_die(unsigned int cpu);
24extern int shmobile_smp_scu_cpu_kill(unsigned int cpu);
a112de8c
MD
25extern void shmobile_smp_apmu_prepare_cpus(unsigned int max_cpus);
26extern int shmobile_smp_apmu_boot_secondary(unsigned int cpu,
27 struct task_struct *idle);
28extern void shmobile_smp_apmu_cpu_die(unsigned int cpu);
29extern int shmobile_smp_apmu_cpu_kill(unsigned int cpu);
30extern void shmobile_invalidate_start(void);
83ca5c87 31struct clk;
6b6a4c06 32extern int shmobile_clk_init(void);
863b1719 33extern void shmobile_handle_irq_intc(struct pt_regs *);
c3dada18 34extern struct platform_suspend_ops shmobile_suspend_ops;
b73b5c49 35struct cpuidle_driver;
5b41147c 36extern void shmobile_cpuidle_set_driver(struct cpuidle_driver *drv);
e47bb515 37
21cc1b7e
SG
38#ifdef CONFIG_SUSPEND
39int shmobile_suspend_init(void);
40#else
41static inline int shmobile_suspend_init(void) { return 0; }
42#endif
43
44#ifdef CONFIG_CPU_IDLE
45int shmobile_cpuidle_init(void);
46#else
47static inline int shmobile_cpuidle_init(void) { return 0; }
48#endif
49
4c822845 50extern void __iomem *shmobile_scu_base;
a62580e5 51
b3796d92 52static inline void __init shmobile_init_late(void)
35f2b0bd
RW
53{
54 shmobile_suspend_init();
55 shmobile_cpuidle_init();
56}
57
c793c1b0 58#endif /* __ARCH_MACH_COMMON_H */
This page took 0.180525 seconds and 5 git commands to generate.