Magnus Damm | c793c1b | 2010-02-05 11:14:49 +0000 | [diff] [blame] | 1 | #ifndef __ARCH_MACH_COMMON_H |
| 2 | #define __ARCH_MACH_COMMON_H |
| 3 | |
| 4 | extern struct sys_timer shmobile_timer; |
Magnus Damm | 4ae04ac | 2010-02-08 11:02:54 +0000 | [diff] [blame] | 5 | extern void shmobile_setup_console(void); |
Magnus Damm | 1c51ed4 | 2010-12-14 16:56:55 +0900 | [diff] [blame] | 6 | extern void shmobile_secondary_vector(void); |
Magnus Damm | 83ca5c8 | 2010-05-20 14:45:03 +0000 | [diff] [blame] | 7 | struct clk; |
Magnus Damm | e47bb51 | 2010-05-12 14:21:24 +0000 | [diff] [blame] | 8 | extern int clk_init(void); |
Magnus Damm | 863b171 | 2010-12-28 08:27:01 +0000 | [diff] [blame] | 9 | extern void shmobile_handle_irq_intc(struct pt_regs *); |
Magnus Damm | e74a962 | 2010-12-28 08:27:10 +0000 | [diff] [blame] | 10 | extern void shmobile_handle_irq_gic(struct pt_regs *); |
Magnus Damm | c3dada1 | 2011-04-29 02:23:28 +0900 | [diff] [blame] | 11 | extern struct platform_suspend_ops shmobile_suspend_ops; |
Magnus Damm | b73b5c4 | 2011-11-11 14:01:30 +0900 | [diff] [blame] | 12 | struct cpuidle_driver; |
Magnus Damm | 0af4817 | 2011-04-29 02:36:07 +0900 | [diff] [blame] | 13 | extern void (*shmobile_cpuidle_modes[])(void); |
Magnus Damm | b73b5c4 | 2011-11-11 14:01:30 +0900 | [diff] [blame] | 14 | extern void (*shmobile_cpuidle_setup)(struct cpuidle_driver *drv); |
Magnus Damm | e47bb51 | 2010-05-12 14:21:24 +0000 | [diff] [blame] | 15 | |
Magnus Damm | c793c1b | 2010-02-05 11:14:49 +0000 | [diff] [blame] | 16 | extern void sh7367_init_irq(void); |
| 17 | extern void sh7367_add_early_devices(void); |
| 18 | extern void sh7367_add_standard_devices(void); |
| 19 | extern void sh7367_clock_init(void); |
Magnus Damm | 7fdda67 | 2010-02-10 20:10:55 +0900 | [diff] [blame] | 20 | extern void sh7367_pinmux_init(void); |
Magnus Damm | 4f0836b | 2010-05-20 14:49:28 +0000 | [diff] [blame] | 21 | extern struct clk sh7367_extalb1_clk; |
| 22 | extern struct clk sh7367_extal2_clk; |
Magnus Damm | c793c1b | 2010-02-05 11:14:49 +0000 | [diff] [blame] | 23 | |
Magnus Damm | f2aaf66 | 2010-02-05 11:15:07 +0000 | [diff] [blame] | 24 | extern void sh7377_init_irq(void); |
| 25 | extern void sh7377_add_early_devices(void); |
| 26 | extern void sh7377_add_standard_devices(void); |
Magnus Damm | 0163acf | 2010-05-21 05:19:34 +0000 | [diff] [blame] | 27 | extern void sh7377_clock_init(void); |
NISHIMOTO Hiroki | 276b4f6 | 2010-02-12 08:10:06 +0000 | [diff] [blame] | 28 | extern void sh7377_pinmux_init(void); |
Magnus Damm | 0163acf | 2010-05-21 05:19:34 +0000 | [diff] [blame] | 29 | extern struct clk sh7377_extalc1_clk; |
| 30 | extern struct clk sh7377_extal2_clk; |
Magnus Damm | f2aaf66 | 2010-02-05 11:15:07 +0000 | [diff] [blame] | 31 | |
Magnus Damm | 2b7eda6 | 2010-02-05 11:14:58 +0000 | [diff] [blame] | 32 | extern void sh7372_init_irq(void); |
| 33 | extern void sh7372_add_early_devices(void); |
| 34 | extern void sh7372_add_standard_devices(void); |
Magnus Damm | 495b3ce | 2010-05-12 14:21:34 +0000 | [diff] [blame] | 35 | extern void sh7372_clock_init(void); |
Kuninori Morimoto | b789b3f | 2010-02-17 09:39:10 +0000 | [diff] [blame] | 36 | extern void sh7372_pinmux_init(void); |
Magnus Damm | 9799165 | 2011-04-29 02:28:08 +0900 | [diff] [blame] | 37 | extern void sh7372_pm_init(void); |
Magnus Damm | cf33835 | 2011-09-25 23:20:49 +0200 | [diff] [blame] | 38 | extern void sh7372_resume_core_standby_a3sm(void); |
| 39 | extern int sh7372_do_idle_a3sm(unsigned long unused); |
Magnus Damm | 83ca5c8 | 2010-05-20 14:45:03 +0000 | [diff] [blame] | 40 | extern struct clk sh7372_extal1_clk; |
| 41 | extern struct clk sh7372_extal2_clk; |
Magnus Damm | 2b7eda6 | 2010-02-05 11:14:58 +0000 | [diff] [blame] | 42 | |
Magnus Damm | 5f53a56 | 2010-12-21 08:37:32 +0000 | [diff] [blame] | 43 | extern void sh73a0_init_irq(void); |
Magnus Damm | 6d9598e | 2010-11-17 10:59:31 +0000 | [diff] [blame] | 44 | extern void sh73a0_add_early_devices(void); |
| 45 | extern void sh73a0_add_standard_devices(void); |
| 46 | extern void sh73a0_clock_init(void); |
Takashi YOSHII | 1cdf370 | 2010-11-19 16:47:16 +0900 | [diff] [blame] | 47 | extern void sh73a0_pinmux_init(void); |
Magnus Damm | f6d84f4 | 2010-12-03 07:22:31 +0000 | [diff] [blame] | 48 | extern struct clk sh73a0_extal1_clk; |
| 49 | extern struct clk sh73a0_extal2_clk; |
Magnus Damm | 6d9598e | 2010-11-17 10:59:31 +0000 | [diff] [blame] | 50 | |
Magnus Damm | 72f4d57 | 2010-12-14 16:57:11 +0900 | [diff] [blame] | 51 | extern unsigned int sh73a0_get_core_count(void); |
| 52 | extern void sh73a0_secondary_init(unsigned int cpu); |
| 53 | extern int sh73a0_boot_secondary(unsigned int cpu); |
| 54 | extern void sh73a0_smp_prepare_cpus(void); |
| 55 | |
Magnus Damm | c793c1b | 2010-02-05 11:14:49 +0000 | [diff] [blame] | 56 | #endif /* __ARCH_MACH_COMMON_H */ |