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

4
extern void shmobile_earlytimer_init(void);
5
extern struct sys_timer shmobile_timer;
6 7
extern void shmobile_setup_delay(unsigned int max_cpu_core_mhz,
				 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 int shmobile_platform_cpu_kill(unsigned int cpu);
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
extern void (*shmobile_cpuidle_modes[])(void);
18
extern void (*shmobile_cpuidle_setup)(struct cpuidle_driver *drv);
19

20
extern void sh7367_init_irq(void);
21
extern void sh7367_map_io(void);
22 23 24
extern void sh7367_add_early_devices(void);
extern void sh7367_add_standard_devices(void);
extern void sh7367_clock_init(void);
25
extern void sh7367_pinmux_init(void);
26 27
extern struct clk sh7367_extalb1_clk;
extern struct clk sh7367_extal2_clk;
28

29
extern void sh7377_init_irq(void);
30
extern void sh7377_map_io(void);
31 32
extern void sh7377_add_early_devices(void);
extern void sh7377_add_standard_devices(void);
33
extern void sh7377_clock_init(void);
34
extern void sh7377_pinmux_init(void);
35 36
extern struct clk sh7377_extalc1_clk;
extern struct clk sh7377_extal2_clk;
37

38
extern void sh7372_init_irq(void);
39
extern void sh7372_map_io(void);
40 41
extern void sh7372_add_early_devices(void);
extern void sh7372_add_standard_devices(void);
42
extern void sh7372_clock_init(void);
43
extern void sh7372_pinmux_init(void);
44
extern void sh7372_pm_init(void);
45 46
extern void sh7372_resume_core_standby_sysc(void);
extern int sh7372_do_idle_sysc(unsigned long sleep_mode);
47 48
extern struct clk sh7372_extal1_clk;
extern struct clk sh7372_extal2_clk;
49

50
extern void sh73a0_init_irq(void);
51
extern void sh73a0_map_io(void);
52 53 54
extern void sh73a0_add_early_devices(void);
extern void sh73a0_add_standard_devices(void);
extern void sh73a0_clock_init(void);
55
extern void sh73a0_pinmux_init(void);
56 57
extern struct clk sh73a0_extal1_clk;
extern struct clk sh73a0_extal2_clk;
58 59
extern struct clk sh73a0_extcki_clk;
extern struct clk sh73a0_extalr_clk;
60

61 62 63 64 65
extern unsigned int sh73a0_get_core_count(void);
extern void sh73a0_secondary_init(unsigned int cpu);
extern int sh73a0_boot_secondary(unsigned int cpu);
extern void sh73a0_smp_prepare_cpus(void);

66
extern void r8a7740_init_irq(void);
67
extern void r8a7740_map_io(void);
68 69 70 71 72
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);

73
extern void r8a7779_init_irq(void);
74
extern void r8a7779_map_io(void);
75 76 77
extern void r8a7779_add_early_devices(void);
extern void r8a7779_add_standard_devices(void);
extern void r8a7779_clock_init(void);
78
extern void r8a7779_pinmux_init(void);
79
extern void r8a7779_pm_init(void);
80

81 82 83 84 85
extern unsigned int r8a7779_get_core_count(void);
extern int r8a7779_platform_cpu_kill(unsigned int cpu);
extern void r8a7779_secondary_init(unsigned int cpu);
extern int r8a7779_boot_secondary(unsigned int cpu);
extern void r8a7779_smp_prepare_cpus(void);
86
extern void r8a7779_register_twd(void);
87

88
#endif /* __ARCH_MACH_COMMON_H */