serial: samsung: Add support for early console
[deliverable/linux.git] / arch / arm / mach-shmobile / common.h
CommitLineData
c793c1b0
MD
1#ifndef __ARCH_MACH_COMMON_H
2#define __ARCH_MACH_COMMON_H
3
08ad42fb 4extern void shmobile_earlytimer_init(void);
c39dae38 5extern void shmobile_init_delay(void);
4200b16d 6struct twd_local_timer;
4ae04acb 7extern void shmobile_setup_console(void);
ebe72ab9
MD
8extern void shmobile_boot_vector(void);
9extern unsigned long shmobile_boot_fn;
10extern unsigned long shmobile_boot_arg;
a84a5ab7 11extern unsigned long shmobile_boot_size;
cc61591e
MD
12extern void shmobile_smp_boot(void);
13extern void shmobile_smp_sleep(void);
14extern void shmobile_smp_hook(unsigned int cpu, unsigned long fn,
15 unsigned long arg);
5c4dfcd6 16extern int shmobile_smp_cpu_disable(unsigned int cpu);
87a08ca0 17extern void shmobile_invalidate_start(void);
bfabbcc6 18extern void shmobile_boot_scu(void);
c970d4ef 19extern void shmobile_smp_scu_prepare_cpus(unsigned int max_cpus);
e7b1c963
MD
20extern void shmobile_smp_scu_cpu_die(unsigned int cpu);
21extern int shmobile_smp_scu_cpu_kill(unsigned int cpu);
83ca5c87 22struct clk;
6b6a4c06 23extern int shmobile_clk_init(void);
863b1719 24extern void shmobile_handle_irq_intc(struct pt_regs *);
c3dada18 25extern struct platform_suspend_ops shmobile_suspend_ops;
b73b5c49 26struct cpuidle_driver;
5b41147c 27extern void shmobile_cpuidle_set_driver(struct cpuidle_driver *drv);
e47bb515 28
21cc1b7e
SG
29#ifdef CONFIG_SUSPEND
30int shmobile_suspend_init(void);
d6d757c9 31void shmobile_smp_apmu_suspend_init(void);
21cc1b7e
SG
32#else
33static inline int shmobile_suspend_init(void) { return 0; }
ecdaca48 34static inline void shmobile_smp_apmu_suspend_init(void) { }
21cc1b7e
SG
35#endif
36
37#ifdef CONFIG_CPU_IDLE
38int shmobile_cpuidle_init(void);
39#else
40static inline int shmobile_cpuidle_init(void) { return 0; }
41#endif
42
06e32c91
GI
43#ifdef CONFIG_CPU_FREQ
44int shmobile_cpufreq_init(void);
45#else
46static inline int shmobile_cpufreq_init(void) { return 0; }
47#endif
48
4c822845 49extern void __iomem *shmobile_scu_base;
a62580e5 50
b3796d92 51static inline void __init shmobile_init_late(void)
35f2b0bd
RW
52{
53 shmobile_suspend_init();
54 shmobile_cpuidle_init();
06e32c91 55 shmobile_cpufreq_init();
35f2b0bd
RW
56}
57
c793c1b0 58#endif /* __ARCH_MACH_COMMON_H */
This page took 0.295954 seconds and 5 git commands to generate.