common.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. #ifndef __ARCH_MACH_COMMON_H
  2. #define __ARCH_MACH_COMMON_H
  3. extern void shmobile_earlytimer_init(void);
  4. extern void shmobile_timer_init(void);
  5. extern void shmobile_setup_delay(unsigned int max_cpu_core_mhz,
  6. unsigned int mult, unsigned int div);
  7. struct twd_local_timer;
  8. extern void shmobile_setup_console(void);
  9. extern void shmobile_secondary_vector(void);
  10. extern void shmobile_secondary_vector_scu(void);
  11. struct clk;
  12. extern int shmobile_clk_init(void);
  13. extern void shmobile_handle_irq_intc(struct pt_regs *);
  14. extern struct platform_suspend_ops shmobile_suspend_ops;
  15. struct cpuidle_driver;
  16. struct cpuidle_device;
  17. extern int shmobile_enter_wfi(struct cpuidle_device *dev,
  18. struct cpuidle_driver *drv, int index);
  19. extern void shmobile_cpuidle_set_driver(struct cpuidle_driver *drv);
  20. #ifdef CONFIG_SUSPEND
  21. int shmobile_suspend_init(void);
  22. #else
  23. static inline int shmobile_suspend_init(void) { return 0; }
  24. #endif
  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. extern void __iomem *shmobile_scu_base;
  31. extern void shmobile_smp_init_cpus(unsigned int ncores);
  32. static inline void __init shmobile_init_late(void)
  33. {
  34. shmobile_suspend_init();
  35. shmobile_cpuidle_init();
  36. }
  37. #endif /* __ARCH_MACH_COMMON_H */