common.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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_boot_vector(void);
  10. extern unsigned long shmobile_boot_fn;
  11. extern unsigned long shmobile_boot_arg;
  12. extern void shmobile_boot_scu(void);
  13. extern void shmobile_smp_scu_prepare_cpus(unsigned int max_cpus);
  14. extern int shmobile_smp_scu_boot_secondary(unsigned int cpu,
  15. struct task_struct *idle);
  16. struct clk;
  17. extern int shmobile_clk_init(void);
  18. extern void shmobile_handle_irq_intc(struct pt_regs *);
  19. extern struct platform_suspend_ops shmobile_suspend_ops;
  20. struct cpuidle_driver;
  21. extern void shmobile_cpuidle_set_driver(struct cpuidle_driver *drv);
  22. #ifdef CONFIG_SUSPEND
  23. int shmobile_suspend_init(void);
  24. #else
  25. static inline int shmobile_suspend_init(void) { return 0; }
  26. #endif
  27. #ifdef CONFIG_CPU_IDLE
  28. int shmobile_cpuidle_init(void);
  29. #else
  30. static inline int shmobile_cpuidle_init(void) { return 0; }
  31. #endif
  32. extern void __iomem *shmobile_scu_base;
  33. extern void shmobile_smp_init_cpus(unsigned int ncores);
  34. static inline void __init shmobile_init_late(void)
  35. {
  36. shmobile_suspend_init();
  37. shmobile_cpuidle_init();
  38. }
  39. #endif /* __ARCH_MACH_COMMON_H */