]> git.karo-electronics.de Git - karo-tx-linux.git/blob - arch/arm/mach-shmobile/include/mach/common.h
Merge tag 'bcm-for-3.12-late-soc' of git://github.com/broadcom/bcm11351 into next...
[karo-tx-linux.git] / 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_boot_vector(void);
11 extern unsigned long shmobile_boot_fn;
12 extern unsigned long shmobile_boot_arg;
13 extern void shmobile_boot_scu(void);
14 struct clk;
15 extern int shmobile_clk_init(void);
16 extern void shmobile_handle_irq_intc(struct pt_regs *);
17 extern struct platform_suspend_ops shmobile_suspend_ops;
18 struct cpuidle_driver;
19 extern void shmobile_cpuidle_set_driver(struct cpuidle_driver *drv);
20
21 #ifdef CONFIG_SUSPEND
22 int shmobile_suspend_init(void);
23 #else
24 static inline int shmobile_suspend_init(void) { return 0; }
25 #endif
26
27 #ifdef CONFIG_CPU_IDLE
28 int shmobile_cpuidle_init(void);
29 #else
30 static inline int shmobile_cpuidle_init(void) { return 0; }
31 #endif
32
33 extern void __iomem *shmobile_scu_base;
34 extern void shmobile_smp_init_cpus(unsigned int ncores);
35
36 static inline void __init shmobile_init_late(void)
37 {
38         shmobile_suspend_init();
39         shmobile_cpuidle_init();
40 }
41
42 #endif /* __ARCH_MACH_COMMON_H */