common.h 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. #ifndef __ARCH_MACH_COMMON_H
  2. #define __ARCH_MACH_COMMON_H
  3. extern void shmobile_earlytimer_init(void);
  4. extern void shmobile_init_delay(void);
  5. struct twd_local_timer;
  6. extern void shmobile_setup_console(void);
  7. extern void shmobile_boot_vector(void);
  8. extern unsigned long shmobile_boot_fn;
  9. extern unsigned long shmobile_boot_arg;
  10. extern unsigned long shmobile_boot_size;
  11. extern void shmobile_smp_boot(void);
  12. extern void shmobile_smp_sleep(void);
  13. extern void shmobile_smp_hook(unsigned int cpu, unsigned long fn,
  14. unsigned long arg);
  15. extern int shmobile_smp_cpu_disable(unsigned int cpu);
  16. extern void shmobile_invalidate_start(void);
  17. extern void shmobile_boot_scu(void);
  18. extern void shmobile_smp_scu_prepare_cpus(unsigned int max_cpus);
  19. extern void shmobile_smp_scu_cpu_die(unsigned int cpu);
  20. extern int shmobile_smp_scu_cpu_kill(unsigned int cpu);
  21. extern void shmobile_smp_apmu_prepare_cpus(unsigned int max_cpus);
  22. extern int shmobile_smp_apmu_boot_secondary(unsigned int cpu,
  23. struct task_struct *idle);
  24. extern void shmobile_smp_apmu_cpu_die(unsigned int cpu);
  25. extern int shmobile_smp_apmu_cpu_kill(unsigned int cpu);
  26. struct clk;
  27. extern int shmobile_clk_init(void);
  28. extern void shmobile_handle_irq_intc(struct pt_regs *);
  29. extern struct platform_suspend_ops shmobile_suspend_ops;
  30. struct cpuidle_driver;
  31. extern void shmobile_cpuidle_set_driver(struct cpuidle_driver *drv);
  32. #ifdef CONFIG_SUSPEND
  33. int shmobile_suspend_init(void);
  34. void shmobile_smp_apmu_suspend_init(void);
  35. #else
  36. static inline int shmobile_suspend_init(void) { return 0; }
  37. static inline void shmobile_smp_apmu_suspend_init(void) { }
  38. #endif
  39. #ifdef CONFIG_CPU_IDLE
  40. int shmobile_cpuidle_init(void);
  41. #else
  42. static inline int shmobile_cpuidle_init(void) { return 0; }
  43. #endif
  44. #ifdef CONFIG_CPU_FREQ
  45. int shmobile_cpufreq_init(void);
  46. #else
  47. static inline int shmobile_cpufreq_init(void) { return 0; }
  48. #endif
  49. extern void __iomem *shmobile_scu_base;
  50. static inline void __init shmobile_init_late(void)
  51. {
  52. shmobile_suspend_init();
  53. shmobile_cpuidle_init();
  54. shmobile_cpufreq_init();
  55. }
  56. #endif /* __ARCH_MACH_COMMON_H */