blob: cc1d73514ffa189523fa3bebf7c167f405091ab7 [file] [log] [blame]
Magnus Dammc793c1b2010-02-05 11:14:49 +00001#ifndef __ARCH_MACH_COMMON_H
2#define __ARCH_MACH_COMMON_H
3
Magnus Damm08ad42f2012-03-06 17:36:14 +09004extern void shmobile_earlytimer_init(void);
Magnus Dammc793c1b2010-02-05 11:14:49 +00005extern struct sys_timer shmobile_timer;
Magnus Damm0f2c9f22012-03-28 19:22:30 +09006extern void shmobile_setup_delay(unsigned int max_cpu_core_mhz,
7 unsigned int mult, unsigned int div);
Marc Zyngier4200b162012-01-10 19:44:19 +00008struct twd_local_timer;
9void shmobile_twd_init(struct twd_local_timer *twd_local_timer);
Magnus Damm4ae04ac2010-02-08 11:02:54 +000010extern void shmobile_setup_console(void);
Magnus Damm1c51ed42010-12-14 16:56:55 +090011extern void shmobile_secondary_vector(void);
Magnus Damm8b306792011-12-28 16:47:16 +090012extern int shmobile_platform_cpu_kill(unsigned int cpu);
Magnus Damm83ca5c82010-05-20 14:45:03 +000013struct clk;
Magnus Damm6b6a4c02012-02-29 21:41:30 +090014extern int shmobile_clk_init(void);
Magnus Damm863b1712010-12-28 08:27:01 +000015extern void shmobile_handle_irq_intc(struct pt_regs *);
Magnus Dammc3dada12011-04-29 02:23:28 +090016extern struct platform_suspend_ops shmobile_suspend_ops;
Magnus Dammb73b5c42011-11-11 14:01:30 +090017struct cpuidle_driver;
Magnus Damm0af48172011-04-29 02:36:07 +090018extern void (*shmobile_cpuidle_modes[])(void);
Magnus Dammb73b5c42011-11-11 14:01:30 +090019extern void (*shmobile_cpuidle_setup)(struct cpuidle_driver *drv);
Magnus Damme47bb512010-05-12 14:21:24 +000020
Magnus Dammc793c1b2010-02-05 11:14:49 +000021extern void sh7367_init_irq(void);
Magnus Damm237caf92012-02-29 21:37:04 +090022extern void sh7367_map_io(void);
Magnus Dammc793c1b2010-02-05 11:14:49 +000023extern void sh7367_add_early_devices(void);
24extern void sh7367_add_standard_devices(void);
25extern void sh7367_clock_init(void);
Magnus Damm7fdda672010-02-10 20:10:55 +090026extern void sh7367_pinmux_init(void);
Magnus Damm4f0836b2010-05-20 14:49:28 +000027extern struct clk sh7367_extalb1_clk;
28extern struct clk sh7367_extal2_clk;
Magnus Dammc793c1b2010-02-05 11:14:49 +000029
Magnus Dammf2aaf662010-02-05 11:15:07 +000030extern void sh7377_init_irq(void);
Magnus Dammbfc46f32012-02-29 21:37:12 +090031extern void sh7377_map_io(void);
Magnus Dammf2aaf662010-02-05 11:15:07 +000032extern void sh7377_add_early_devices(void);
33extern void sh7377_add_standard_devices(void);
Magnus Damm0163acf2010-05-21 05:19:34 +000034extern void sh7377_clock_init(void);
NISHIMOTO Hiroki276b4f62010-02-12 08:10:06 +000035extern void sh7377_pinmux_init(void);
Magnus Damm0163acf2010-05-21 05:19:34 +000036extern struct clk sh7377_extalc1_clk;
37extern struct clk sh7377_extal2_clk;
Magnus Dammf2aaf662010-02-05 11:15:07 +000038
Magnus Damm2b7eda62010-02-05 11:14:58 +000039extern void sh7372_init_irq(void);
Magnus Damm5d7220ec2012-02-29 21:37:19 +090040extern void sh7372_map_io(void);
Magnus Damm2b7eda62010-02-05 11:14:58 +000041extern void sh7372_add_early_devices(void);
42extern void sh7372_add_standard_devices(void);
Magnus Damm495b3ce2010-05-12 14:21:34 +000043extern void sh7372_clock_init(void);
Kuninori Morimotob789b3f2010-02-17 09:39:10 +000044extern void sh7372_pinmux_init(void);
Magnus Damm97991652011-04-29 02:28:08 +090045extern void sh7372_pm_init(void);
Magnus Dammf7dadb32011-12-23 01:23:07 +010046extern void sh7372_resume_core_standby_sysc(void);
47extern int sh7372_do_idle_sysc(unsigned long sleep_mode);
Magnus Damm83ca5c82010-05-20 14:45:03 +000048extern struct clk sh7372_extal1_clk;
49extern struct clk sh7372_extal2_clk;
Magnus Damm2b7eda62010-02-05 11:14:58 +000050
Magnus Damm5f53a562010-12-21 08:37:32 +000051extern void sh73a0_init_irq(void);
Magnus Damm50e15c32012-02-29 21:37:27 +090052extern void sh73a0_map_io(void);
Magnus Damm6d9598e2010-11-17 10:59:31 +000053extern void sh73a0_add_early_devices(void);
54extern void sh73a0_add_standard_devices(void);
55extern void sh73a0_clock_init(void);
Takashi YOSHII1cdf3702010-11-19 16:47:16 +090056extern void sh73a0_pinmux_init(void);
Magnus Dammf6d84f42010-12-03 07:22:31 +000057extern struct clk sh73a0_extal1_clk;
58extern struct clk sh73a0_extal2_clk;
Kuninori Morimotod4775352011-12-05 22:29:15 -080059extern struct clk sh73a0_extcki_clk;
60extern struct clk sh73a0_extalr_clk;
Magnus Damm6d9598e2010-11-17 10:59:31 +000061
Magnus Damm72f4d572010-12-14 16:57:11 +090062extern unsigned int sh73a0_get_core_count(void);
63extern void sh73a0_secondary_init(unsigned int cpu);
64extern int sh73a0_boot_secondary(unsigned int cpu);
65extern void sh73a0_smp_prepare_cpus(void);
66
Kuninori Morimoto6c01ba42011-11-10 18:45:52 -080067extern void r8a7740_init_irq(void);
Magnus Dammd3ab7222012-02-29 21:37:35 +090068extern void r8a7740_map_io(void);
Kuninori Morimoto6c01ba42011-11-10 18:45:52 -080069extern void r8a7740_add_early_devices(void);
70extern void r8a7740_add_standard_devices(void);
71extern void r8a7740_clock_init(u8 md_ck);
72extern void r8a7740_pinmux_init(void);
73
Magnus Dammf411fad2011-12-14 01:36:12 +090074extern void r8a7779_init_irq(void);
Magnus Damm3e353b872012-02-29 21:37:43 +090075extern void r8a7779_map_io(void);
Magnus Dammf411fad2011-12-14 01:36:12 +090076extern void r8a7779_add_early_devices(void);
77extern void r8a7779_add_standard_devices(void);
78extern void r8a7779_clock_init(void);
Magnus Damm19c43fc2011-12-14 01:36:22 +090079extern void r8a7779_pinmux_init(void);
Magnus Damma662c082012-01-10 15:50:01 +090080extern void r8a7779_pm_init(void);
Magnus Dammf411fad2011-12-14 01:36:12 +090081
Magnus Dammf40aaf62012-01-10 17:44:39 +090082extern unsigned int r8a7779_get_core_count(void);
83extern int r8a7779_platform_cpu_kill(unsigned int cpu);
84extern void r8a7779_secondary_init(unsigned int cpu);
85extern int r8a7779_boot_secondary(unsigned int cpu);
86extern void r8a7779_smp_prepare_cpus(void);
87
Magnus Dammc793c1b2010-02-05 11:14:49 +000088#endif /* __ARCH_MACH_COMMON_H */