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 | |
Magnus Damm | 08ad42f | 2012-03-06 17:36:14 +0900 | [diff] [blame] | 4 | extern void shmobile_earlytimer_init(void); |
Stephen Warren | 6bb27d7 | 2012-11-08 12:40:59 -0700 | [diff] [blame] | 5 | extern void shmobile_timer_init(void); |
Magnus Damm | 0f2c9f2 | 2012-03-28 19:22:30 +0900 | [diff] [blame] | 6 | extern void shmobile_setup_delay(unsigned int max_cpu_core_mhz, |
Marc Zyngier | a62580e | 2011-09-08 13:15:22 +0100 | [diff] [blame] | 7 | unsigned int mult, unsigned int div); |
Marc Zyngier | 4200b16 | 2012-01-10 19:44:19 +0000 | [diff] [blame] | 8 | struct twd_local_timer; |
Magnus Damm | 4ae04ac | 2010-02-08 11:02:54 +0000 | [diff] [blame] | 9 | extern void shmobile_setup_console(void); |
Magnus Damm | 1c51ed4 | 2010-12-14 16:56:55 +0900 | [diff] [blame] | 10 | extern void shmobile_secondary_vector(void); |
Magnus Damm | ec0d84a | 2013-02-13 22:47:07 +0900 | [diff] [blame] | 11 | extern void shmobile_secondary_vector_scu(void); |
Magnus Damm | 83ca5c8 | 2010-05-20 14:45:03 +0000 | [diff] [blame] | 12 | struct clk; |
Magnus Damm | 6b6a4c0 | 2012-02-29 21:41:30 +0900 | [diff] [blame] | 13 | extern int shmobile_clk_init(void); |
Magnus Damm | 863b171 | 2010-12-28 08:27:01 +0000 | [diff] [blame] | 14 | extern void shmobile_handle_irq_intc(struct pt_regs *); |
Magnus Damm | c3dada1 | 2011-04-29 02:23:28 +0900 | [diff] [blame] | 15 | extern struct platform_suspend_ops shmobile_suspend_ops; |
Magnus Damm | b73b5c4 | 2011-11-11 14:01:30 +0900 | [diff] [blame] | 16 | struct cpuidle_driver; |
Rafael J. Wysocki | 5b41147 | 2012-08-15 20:58:19 +0200 | [diff] [blame] | 17 | extern void shmobile_cpuidle_set_driver(struct cpuidle_driver *drv); |
Magnus Damm | e47bb51 | 2010-05-12 14:21:24 +0000 | [diff] [blame] | 18 | |
Shawn Guo | 21cc1b7 | 2012-04-26 21:58:41 +0800 | [diff] [blame] | 19 | #ifdef CONFIG_SUSPEND |
| 20 | int shmobile_suspend_init(void); |
| 21 | #else |
| 22 | static inline int shmobile_suspend_init(void) { return 0; } |
| 23 | #endif |
| 24 | |
| 25 | #ifdef CONFIG_CPU_IDLE |
| 26 | int shmobile_cpuidle_init(void); |
| 27 | #else |
| 28 | static inline int shmobile_cpuidle_init(void) { return 0; } |
| 29 | #endif |
| 30 | |
Magnus Damm | 4c82284 | 2013-02-13 22:47:17 +0900 | [diff] [blame] | 31 | extern void __iomem *shmobile_scu_base; |
Marc Zyngier | a62580e | 2011-09-08 13:15:22 +0100 | [diff] [blame] | 32 | extern void shmobile_smp_init_cpus(unsigned int ncores); |
| 33 | |
Arnd Bergmann | b3796d9 | 2012-09-23 22:36:35 +0000 | [diff] [blame] | 34 | static inline void __init shmobile_init_late(void) |
Rafael J. Wysocki | 35f2b0b | 2012-08-15 20:57:27 +0200 | [diff] [blame] | 35 | { |
| 36 | shmobile_suspend_init(); |
| 37 | shmobile_cpuidle_init(); |
| 38 | } |
| 39 | |
Magnus Damm | c793c1b | 2010-02-05 11:14:49 +0000 | [diff] [blame] | 40 | #endif /* __ARCH_MACH_COMMON_H */ |