Linux 3.14.25
[platform/adaptation/renesas_rcar/renesas_kernel.git] / arch / arm / mach-shmobile / 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_init_delay(void);
6 struct twd_local_timer;
7 extern void shmobile_setup_console(void);
8 extern void shmobile_boot_vector(void);
9 extern unsigned long shmobile_boot_fn;
10 extern unsigned long shmobile_boot_arg;
11 extern unsigned long shmobile_boot_size;
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 int shmobile_smp_cpu_disable(unsigned int cpu);
17 extern void shmobile_invalidate_start(void);
18 extern void shmobile_boot_scu(void);
19 extern void shmobile_smp_scu_prepare_cpus(unsigned int max_cpus);
20 extern void shmobile_smp_scu_cpu_die(unsigned int cpu);
21 extern int shmobile_smp_scu_cpu_kill(unsigned int cpu);
22 extern void shmobile_smp_apmu_prepare_cpus(unsigned int max_cpus);
23 extern int shmobile_smp_apmu_boot_secondary(unsigned int cpu,
24                                             struct task_struct *idle);
25 extern void shmobile_smp_apmu_cpu_die(unsigned int cpu);
26 extern int shmobile_smp_apmu_cpu_kill(unsigned int cpu);
27 struct clk;
28 extern int shmobile_clk_init(void);
29 extern void shmobile_handle_irq_intc(struct pt_regs *);
30 extern struct platform_suspend_ops shmobile_suspend_ops;
31 struct cpuidle_driver;
32 extern void shmobile_cpuidle_set_driver(struct cpuidle_driver *drv);
33
34 #ifdef CONFIG_SUSPEND
35 int shmobile_suspend_init(void);
36 void shmobile_smp_apmu_suspend_init(void);
37 #else
38 static inline int shmobile_suspend_init(void) { return 0; }
39 static inline void shmobile_smp_apmu_suspend_init(void) { }
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
48 #ifdef CONFIG_CPU_FREQ
49 int shmobile_cpufreq_init(void);
50 #else
51 static inline int shmobile_cpufreq_init(void) { return 0; }
52 #endif
53
54 extern void __iomem *shmobile_scu_base;
55
56 static inline void __init shmobile_init_late(void)
57 {
58         shmobile_suspend_init();
59         shmobile_cpuidle_init();
60         shmobile_cpufreq_init();
61 }
62
63 #endif /* __ARCH_MACH_COMMON_H */