common.h 2.1 KB
Newer Older
1 2 3
#ifndef __ARCH_MACH_COMMON_H
#define __ARCH_MACH_COMMON_H

4
extern void shmobile_earlytimer_init(void);
S
Stephen Warren 已提交
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);
M
Magnus Damm 已提交
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 18 19 20
struct cpuidle_device;
extern int shmobile_enter_wfi(struct cpuidle_device *dev,
			      struct cpuidle_driver *drv, int index);
extern void shmobile_cpuidle_set_driver(struct cpuidle_driver *drv);
21

22
extern void r8a7740_meram_workaround(void);
23
extern void r8a7740_init_irq(void);
24
extern void r8a7740_map_io(void);
25 26 27 28
extern void r8a7740_add_early_devices(void);
extern void r8a7740_add_standard_devices(void);
extern void r8a7740_clock_init(u8 md_ck);
extern void r8a7740_pinmux_init(void);
29
extern void r8a7740_pm_init(void);
30

31
extern void r8a7779_init_delay(void);
32
extern void r8a7779_init_irq(void);
33
extern void r8a7779_init_irq_extpin(int irlm);
34
extern void r8a7779_init_irq_dt(void);
35
extern void r8a7779_map_io(void);
S
Stephen Warren 已提交
36
extern void r8a7779_earlytimer_init(void);
37 38
extern void r8a7779_add_early_devices(void);
extern void r8a7779_add_standard_devices(void);
39
extern void r8a7779_add_standard_devices_dt(void);
40
extern void r8a7779_clock_init(void);
41
extern void r8a7779_pinmux_init(void);
42
extern void r8a7779_pm_init(void);
43
extern void r8a7779_register_twd(void);
44

45 46 47 48 49 50 51 52 53 54 55 56
#ifdef CONFIG_SUSPEND
int shmobile_suspend_init(void);
#else
static inline int shmobile_suspend_init(void) { return 0; }
#endif

#ifdef CONFIG_CPU_IDLE
int shmobile_cpuidle_init(void);
#else
static inline int shmobile_cpuidle_init(void) { return 0; }
#endif

57
extern void __iomem *shmobile_scu_base;
58 59
extern void shmobile_smp_init_cpus(unsigned int ncores);

60
static inline void __init shmobile_init_late(void)
61 62 63 64 65
{
	shmobile_suspend_init();
	shmobile_cpuidle_init();
}

66
#endif /* __ARCH_MACH_COMMON_H */