blob: 65e954b08774efecbba0ea441e01bad92adfe542 [file] [log] [blame]
Magnus Dammc793c1b2010-02-05 11:14:49 +00001#ifndef __ARCH_MACH_COMMON_H
2#define __ARCH_MACH_COMMON_H
3
4extern struct sys_timer shmobile_timer;
Magnus Damm4ae04ac2010-02-08 11:02:54 +00005extern void shmobile_setup_console(void);
Magnus Damm1c51ed42010-12-14 16:56:55 +09006extern void shmobile_secondary_vector(void);
Magnus Damm83ca5c82010-05-20 14:45:03 +00007struct clk;
Magnus Damme47bb512010-05-12 14:21:24 +00008extern int clk_init(void);
Magnus Damm863b1712010-12-28 08:27:01 +00009extern void shmobile_handle_irq_intc(struct pt_regs *);
Magnus Dammc3dada12011-04-29 02:23:28 +090010extern struct platform_suspend_ops shmobile_suspend_ops;
Magnus Dammb73b5c42011-11-11 14:01:30 +090011struct cpuidle_driver;
Magnus Damm0af48172011-04-29 02:36:07 +090012extern void (*shmobile_cpuidle_modes[])(void);
Magnus Dammb73b5c42011-11-11 14:01:30 +090013extern void (*shmobile_cpuidle_setup)(struct cpuidle_driver *drv);
Magnus Damme47bb512010-05-12 14:21:24 +000014
Magnus Dammc793c1b2010-02-05 11:14:49 +000015extern void sh7367_init_irq(void);
16extern void sh7367_add_early_devices(void);
17extern void sh7367_add_standard_devices(void);
18extern void sh7367_clock_init(void);
Magnus Damm7fdda672010-02-10 20:10:55 +090019extern void sh7367_pinmux_init(void);
Magnus Damm4f0836b2010-05-20 14:49:28 +000020extern struct clk sh7367_extalb1_clk;
21extern struct clk sh7367_extal2_clk;
Magnus Dammc793c1b2010-02-05 11:14:49 +000022
Magnus Dammf2aaf662010-02-05 11:15:07 +000023extern void sh7377_init_irq(void);
24extern void sh7377_add_early_devices(void);
25extern void sh7377_add_standard_devices(void);
Magnus Damm0163acf2010-05-21 05:19:34 +000026extern void sh7377_clock_init(void);
NISHIMOTO Hiroki276b4f62010-02-12 08:10:06 +000027extern void sh7377_pinmux_init(void);
Magnus Damm0163acf2010-05-21 05:19:34 +000028extern struct clk sh7377_extalc1_clk;
29extern struct clk sh7377_extal2_clk;
Magnus Dammf2aaf662010-02-05 11:15:07 +000030
Magnus Damm2b7eda62010-02-05 11:14:58 +000031extern void sh7372_init_irq(void);
32extern void sh7372_add_early_devices(void);
33extern void sh7372_add_standard_devices(void);
Magnus Damm495b3ce2010-05-12 14:21:34 +000034extern void sh7372_clock_init(void);
Kuninori Morimotob789b3f2010-02-17 09:39:10 +000035extern void sh7372_pinmux_init(void);
Magnus Damm97991652011-04-29 02:28:08 +090036extern void sh7372_pm_init(void);
Magnus Dammf7dadb32011-12-23 01:23:07 +010037extern void sh7372_resume_core_standby_sysc(void);
38extern int sh7372_do_idle_sysc(unsigned long sleep_mode);
Magnus Damm83ca5c82010-05-20 14:45:03 +000039extern struct clk sh7372_extal1_clk;
40extern struct clk sh7372_extal2_clk;
Magnus Damm2b7eda62010-02-05 11:14:58 +000041
Magnus Damm5f53a562010-12-21 08:37:32 +000042extern void sh73a0_init_irq(void);
Magnus Damm6d9598e2010-11-17 10:59:31 +000043extern void sh73a0_add_early_devices(void);
44extern void sh73a0_add_standard_devices(void);
45extern void sh73a0_clock_init(void);
Takashi YOSHII1cdf3702010-11-19 16:47:16 +090046extern void sh73a0_pinmux_init(void);
Magnus Dammf6d84f42010-12-03 07:22:31 +000047extern struct clk sh73a0_extal1_clk;
48extern struct clk sh73a0_extal2_clk;
Kuninori Morimotod4775352011-12-05 22:29:15 -080049extern struct clk sh73a0_extcki_clk;
50extern struct clk sh73a0_extalr_clk;
Magnus Damm6d9598e2010-11-17 10:59:31 +000051
Magnus Damm72f4d572010-12-14 16:57:11 +090052extern unsigned int sh73a0_get_core_count(void);
53extern void sh73a0_secondary_init(unsigned int cpu);
54extern int sh73a0_boot_secondary(unsigned int cpu);
55extern void sh73a0_smp_prepare_cpus(void);
56
Kuninori Morimoto6c01ba42011-11-10 18:45:52 -080057extern void r8a7740_init_irq(void);
58extern void r8a7740_add_early_devices(void);
59extern void r8a7740_add_standard_devices(void);
60extern void r8a7740_clock_init(u8 md_ck);
61extern void r8a7740_pinmux_init(void);
62
Magnus Dammf411fad2011-12-14 01:36:12 +090063extern void r8a7779_init_irq(void);
64extern void r8a7779_add_early_devices(void);
65extern void r8a7779_add_standard_devices(void);
66extern void r8a7779_clock_init(void);
Magnus Damm19c43fc2011-12-14 01:36:22 +090067extern void r8a7779_pinmux_init(void);
Magnus Dammf411fad2011-12-14 01:36:12 +090068
Magnus Dammc793c1b2010-02-05 11:14:49 +000069#endif /* __ARCH_MACH_COMMON_H */