]>
Commit | Line | Data |
---|---|---|
c793c1b0 MD |
1 | #ifndef __ARCH_MACH_COMMON_H |
2 | #define __ARCH_MACH_COMMON_H | |
3 | ||
08ad42fb | 4 | extern void shmobile_earlytimer_init(void); |
0f2c9f20 | 5 | extern void shmobile_setup_delay(unsigned int max_cpu_core_mhz, |
a62580e5 | 6 | unsigned int mult, unsigned int div); |
c39dae38 | 7 | extern void shmobile_init_delay(void); |
4200b16d | 8 | struct twd_local_timer; |
4ae04acb | 9 | extern void shmobile_setup_console(void); |
ebe72ab9 MD |
10 | extern void shmobile_boot_vector(void); |
11 | extern unsigned long shmobile_boot_fn; | |
12 | extern unsigned long shmobile_boot_arg; | |
a84a5ab7 | 13 | extern unsigned long shmobile_boot_size; |
cc61591e MD |
14 | extern void shmobile_smp_boot(void); |
15 | extern void shmobile_smp_sleep(void); | |
16 | extern void shmobile_smp_hook(unsigned int cpu, unsigned long fn, | |
17 | unsigned long arg); | |
5c4dfcd6 | 18 | extern int shmobile_smp_cpu_disable(unsigned int cpu); |
87a08ca0 | 19 | extern void shmobile_invalidate_start(void); |
bfabbcc6 | 20 | extern void shmobile_boot_scu(void); |
c970d4ef | 21 | extern void shmobile_smp_scu_prepare_cpus(unsigned int max_cpus); |
e7b1c963 MD |
22 | extern void shmobile_smp_scu_cpu_die(unsigned int cpu); |
23 | extern int shmobile_smp_scu_cpu_kill(unsigned int cpu); | |
a112de8c MD |
24 | extern void shmobile_smp_apmu_prepare_cpus(unsigned int max_cpus); |
25 | extern int shmobile_smp_apmu_boot_secondary(unsigned int cpu, | |
26 | struct task_struct *idle); | |
27 | extern void shmobile_smp_apmu_cpu_die(unsigned int cpu); | |
28 | extern int shmobile_smp_apmu_cpu_kill(unsigned int cpu); | |
83ca5c87 | 29 | struct clk; |
6b6a4c06 | 30 | extern int shmobile_clk_init(void); |
863b1719 | 31 | extern void shmobile_handle_irq_intc(struct pt_regs *); |
c3dada18 | 32 | extern struct platform_suspend_ops shmobile_suspend_ops; |
b73b5c49 | 33 | struct cpuidle_driver; |
5b41147c | 34 | extern void shmobile_cpuidle_set_driver(struct cpuidle_driver *drv); |
e47bb515 | 35 | |
21cc1b7e SG |
36 | #ifdef CONFIG_SUSPEND |
37 | int shmobile_suspend_init(void); | |
38 | #else | |
39 | static inline int shmobile_suspend_init(void) { return 0; } | |
40 | #endif | |
41 | ||
42 | #ifdef CONFIG_CPU_IDLE | |
43 | int shmobile_cpuidle_init(void); | |
44 | #else | |
45 | static inline int shmobile_cpuidle_init(void) { return 0; } | |
46 | #endif | |
47 | ||
4c822845 | 48 | extern void __iomem *shmobile_scu_base; |
a62580e5 | 49 | |
b3796d92 | 50 | static inline void __init shmobile_init_late(void) |
35f2b0bd RW |
51 | { |
52 | shmobile_suspend_init(); | |
53 | shmobile_cpuidle_init(); | |
54 | } | |
55 | ||
c793c1b0 | 56 | #endif /* __ARCH_MACH_COMMON_H */ |