common.h 2.1 KB

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