common.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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. extern void shmobile_cpuidle_set_driver(struct cpuidle_driver *drv);
  17. #ifdef CONFIG_SUSPEND
  18. int shmobile_suspend_init(void);
  19. #else
  20. static inline int shmobile_suspend_init(void) { return 0; }
  21. #endif
  22. #ifdef CONFIG_CPU_IDLE
  23. int shmobile_cpuidle_init(void);
  24. #else
  25. static inline int shmobile_cpuidle_init(void) { return 0; }
  26. #endif
  27. extern void __iomem *shmobile_scu_base;
  28. extern void shmobile_smp_init_cpus(unsigned int ncores);
  29. static inline void __init shmobile_init_late(void)
  30. {
  31. shmobile_suspend_init();
  32. shmobile_cpuidle_init();
  33. }
  34. #endif /* __ARCH_MACH_COMMON_H */