]> git.karo-electronics.de Git - karo-tx-linux.git/blob - arch/arm/mach-shmobile/include/mach/common.h
Merge remote-tracking branch 'gpio/for-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_setup_delay(unsigned int max_cpu_core_mhz,
6                          unsigned int mult, unsigned int div);
7 struct twd_local_timer;
8 extern void shmobile_setup_console(void);
9 extern void shmobile_boot_vector(void);
10 extern unsigned long shmobile_boot_fn;
11 extern unsigned long shmobile_boot_arg;
12 extern void shmobile_smp_boot(void);
13 extern void shmobile_smp_sleep(void);
14 extern void shmobile_smp_hook(unsigned int cpu, unsigned long fn,
15                               unsigned long arg);
16 extern void shmobile_boot_scu(void);
17 extern void shmobile_smp_scu_prepare_cpus(unsigned int max_cpus);
18 extern int shmobile_smp_scu_boot_secondary(unsigned int cpu,
19                                            struct task_struct *idle);
20 extern void shmobile_smp_scu_cpu_die(unsigned int cpu);
21 extern int shmobile_smp_scu_cpu_kill(unsigned int cpu);
22 struct clk;
23 extern int shmobile_clk_init(void);
24 extern void shmobile_handle_irq_intc(struct pt_regs *);
25 extern struct platform_suspend_ops shmobile_suspend_ops;
26 struct cpuidle_driver;
27 extern void shmobile_cpuidle_set_driver(struct cpuidle_driver *drv);
28
29 #ifdef CONFIG_SUSPEND
30 int shmobile_suspend_init(void);
31 #else
32 static inline int shmobile_suspend_init(void) { return 0; }
33 #endif
34
35 #ifdef CONFIG_CPU_IDLE
36 int shmobile_cpuidle_init(void);
37 #else
38 static inline int shmobile_cpuidle_init(void) { return 0; }
39 #endif
40
41 extern void __iomem *shmobile_scu_base;
42 extern void shmobile_smp_init_cpus(unsigned int ncores);
43
44 static inline void __init shmobile_init_late(void)
45 {
46         shmobile_suspend_init();
47         shmobile_cpuidle_init();
48 }
49
50 #endif /* __ARCH_MACH_COMMON_H */