blob: a77f027ccc3cf987ab545002b9731ebce9b1f6af [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 Damm8b306792011-12-28 16:47:16 +09007extern int shmobile_platform_cpu_kill(unsigned int cpu);
Magnus Damm83ca5c82010-05-20 14:45:03 +00008struct clk;
Magnus Damme47bb512010-05-12 14:21:24 +00009extern int clk_init(void);
Magnus Damm863b1712010-12-28 08:27:01 +000010extern void shmobile_handle_irq_intc(struct pt_regs *);
Magnus Dammc3dada12011-04-29 02:23:28 +090011extern struct platform_suspend_ops shmobile_suspend_ops;
Magnus Dammb73b5c42011-11-11 14:01:30 +090012struct cpuidle_driver;
Magnus Damm0af48172011-04-29 02:36:07 +090013extern void (*shmobile_cpuidle_modes[])(void);
Magnus Dammb73b5c42011-11-11 14:01:30 +090014extern void (*shmobile_cpuidle_setup)(struct cpuidle_driver *drv);
Magnus Damme47bb512010-05-12 14:21:24 +000015
Magnus Dammc793c1b2010-02-05 11:14:49 +000016extern void sh7367_init_irq(void);
Magnus Damm237caf92012-02-29 21:37:04 +090017extern void sh7367_map_io(void);
Magnus Dammc793c1b2010-02-05 11:14:49 +000018extern void sh7367_add_early_devices(void);
19extern void sh7367_add_standard_devices(void);
20extern void sh7367_clock_init(void);
Magnus Damm7fdda672010-02-10 20:10:55 +090021extern void sh7367_pinmux_init(void);
Magnus Damm4f0836b2010-05-20 14:49:28 +000022extern struct clk sh7367_extalb1_clk;
23extern struct clk sh7367_extal2_clk;
Magnus Dammc793c1b2010-02-05 11:14:49 +000024
Magnus Dammf2aaf662010-02-05 11:15:07 +000025extern void sh7377_init_irq(void);
Magnus Dammbfc46f32012-02-29 21:37:12 +090026extern void sh7377_map_io(void);
Magnus Dammf2aaf662010-02-05 11:15:07 +000027extern void sh7377_add_early_devices(void);
28extern void sh7377_add_standard_devices(void);
Magnus Damm0163acf2010-05-21 05:19:34 +000029extern void sh7377_clock_init(void);
NISHIMOTO Hiroki276b4f62010-02-12 08:10:06 +000030extern void sh7377_pinmux_init(void);
Magnus Damm0163acf2010-05-21 05:19:34 +000031extern struct clk sh7377_extalc1_clk;
32extern struct clk sh7377_extal2_clk;
Magnus Dammf2aaf662010-02-05 11:15:07 +000033
Magnus Damm2b7eda62010-02-05 11:14:58 +000034extern void sh7372_init_irq(void);
35extern void sh7372_add_early_devices(void);
36extern void sh7372_add_standard_devices(void);
Magnus Damm495b3ce2010-05-12 14:21:34 +000037extern void sh7372_clock_init(void);
Kuninori Morimotob789b3f2010-02-17 09:39:10 +000038extern void sh7372_pinmux_init(void);
Magnus Damm97991652011-04-29 02:28:08 +090039extern void sh7372_pm_init(void);
Magnus Dammf7dadb32011-12-23 01:23:07 +010040extern void sh7372_resume_core_standby_sysc(void);
41extern int sh7372_do_idle_sysc(unsigned long sleep_mode);
Magnus Damm83ca5c82010-05-20 14:45:03 +000042extern struct clk sh7372_extal1_clk;
43extern struct clk sh7372_extal2_clk;
Magnus Damm2b7eda62010-02-05 11:14:58 +000044
Magnus Damm5f53a562010-12-21 08:37:32 +000045extern void sh73a0_init_irq(void);
Magnus Damm6d9598e2010-11-17 10:59:31 +000046extern void sh73a0_add_early_devices(void);
47extern void sh73a0_add_standard_devices(void);
48extern void sh73a0_clock_init(void);
Takashi YOSHII1cdf3702010-11-19 16:47:16 +090049extern void sh73a0_pinmux_init(void);
Magnus Dammf6d84f42010-12-03 07:22:31 +000050extern struct clk sh73a0_extal1_clk;
51extern struct clk sh73a0_extal2_clk;
Kuninori Morimotod4775352011-12-05 22:29:15 -080052extern struct clk sh73a0_extcki_clk;
53extern struct clk sh73a0_extalr_clk;
Magnus Damm6d9598e2010-11-17 10:59:31 +000054
Magnus Damm72f4d572010-12-14 16:57:11 +090055extern unsigned int sh73a0_get_core_count(void);
56extern void sh73a0_secondary_init(unsigned int cpu);
57extern int sh73a0_boot_secondary(unsigned int cpu);
58extern void sh73a0_smp_prepare_cpus(void);
59
Kuninori Morimoto6c01ba42011-11-10 18:45:52 -080060extern void r8a7740_init_irq(void);
61extern void r8a7740_add_early_devices(void);
62extern void r8a7740_add_standard_devices(void);
63extern void r8a7740_clock_init(u8 md_ck);
64extern void r8a7740_pinmux_init(void);
65
Magnus Dammf411fad2011-12-14 01:36:12 +090066extern void r8a7779_init_irq(void);
67extern void r8a7779_add_early_devices(void);
68extern void r8a7779_add_standard_devices(void);
69extern void r8a7779_clock_init(void);
Magnus Damm19c43fc2011-12-14 01:36:22 +090070extern void r8a7779_pinmux_init(void);
Magnus Damma662c082012-01-10 15:50:01 +090071extern void r8a7779_pm_init(void);
Magnus Dammf411fad2011-12-14 01:36:12 +090072
Magnus Dammf40aaf62012-01-10 17:44:39 +090073extern unsigned int r8a7779_get_core_count(void);
74extern int r8a7779_platform_cpu_kill(unsigned int cpu);
75extern void r8a7779_secondary_init(unsigned int cpu);
76extern int r8a7779_boot_secondary(unsigned int cpu);
77extern void r8a7779_smp_prepare_cpus(void);
78
Magnus Dammc793c1b2010-02-05 11:14:49 +000079#endif /* __ARCH_MACH_COMMON_H */