]> Pileus Git - ~andy/linux/blob - arch/arm/mach-shmobile/include/mach/common.h
Merge tag 'soc-for-linus-2' of git://git.kernel.org/pub/scm/linux/kernel/git/arm...
[~andy/linux] / arch / arm / mach-shmobile / include / mach / common.h
1 #ifndef __ARCH_MACH_COMMON_H
2 #define __ARCH_MACH_COMMON_H
3
4 extern void shmobile_earlytimer_init(void);
5 extern void shmobile_timer_init(void);
6 extern void shmobile_setup_delay(unsigned int max_cpu_core_mhz,
7                          unsigned int mult, unsigned int div);
8 struct twd_local_timer;
9 extern void shmobile_setup_console(void);
10 extern void shmobile_secondary_vector(void);
11 extern void shmobile_secondary_vector_scu(void);
12 struct clk;
13 extern int shmobile_clk_init(void);
14 extern void shmobile_handle_irq_intc(struct pt_regs *);
15 extern struct platform_suspend_ops shmobile_suspend_ops;
16 struct cpuidle_driver;
17 extern void shmobile_cpuidle_set_driver(struct cpuidle_driver *drv);
18
19 #ifdef CONFIG_SUSPEND
20 int shmobile_suspend_init(void);
21 #else
22 static inline int shmobile_suspend_init(void) { return 0; }
23 #endif
24
25 #ifdef CONFIG_CPU_IDLE
26 int shmobile_cpuidle_init(void);
27 #else
28 static inline int shmobile_cpuidle_init(void) { return 0; }
29 #endif
30
31 extern void __iomem *shmobile_scu_base;
32 extern void shmobile_smp_init_cpus(unsigned int ncores);
33
34 static inline void __init shmobile_init_late(void)
35 {
36         shmobile_suspend_init();
37         shmobile_cpuidle_init();
38 }
39
40 #endif /* __ARCH_MACH_COMMON_H */