common.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. /*
  2. * Copyright (c) 2011 Samsung Electronics Co., Ltd.
  3. * http://www.samsung.com
  4. *
  5. * Common Header for EXYNOS machines
  6. *
  7. * This program is free software; you can redistribute it and/or modify
  8. * it under the terms of the GNU General Public License version 2 as
  9. * published by the Free Software Foundation.
  10. */
  11. #ifndef __ARCH_ARM_MACH_EXYNOS_COMMON_H
  12. #define __ARCH_ARM_MACH_EXYNOS_COMMON_H
  13. #include <linux/reboot.h>
  14. #include <linux/of.h>
  15. void mct_init(void __iomem *base, int irq_g0, int irq_l0, int irq_l1);
  16. void exynos_init_time(void);
  17. struct map_desc;
  18. void exynos_init_io(void);
  19. void exynos4_restart(enum reboot_mode mode, const char *cmd);
  20. void exynos5_restart(enum reboot_mode mode, const char *cmd);
  21. void exynos_init_late(void);
  22. void exynos_firmware_init(void);
  23. #ifdef CONFIG_PM_GENERIC_DOMAINS
  24. int exynos_pm_late_initcall(void);
  25. #else
  26. static inline int exynos_pm_late_initcall(void) { return 0; }
  27. #endif
  28. extern struct smp_operations exynos_smp_ops;
  29. extern void exynos_cpu_die(unsigned int cpu);
  30. /* PMU(Power Management Unit) support */
  31. #define PMU_TABLE_END NULL
  32. enum sys_powerdown {
  33. SYS_AFTR,
  34. SYS_LPA,
  35. SYS_SLEEP,
  36. NUM_SYS_POWERDOWN,
  37. };
  38. extern unsigned long l2x0_regs_phys;
  39. struct exynos_pmu_conf {
  40. void __iomem *reg;
  41. unsigned int val[NUM_SYS_POWERDOWN];
  42. };
  43. extern void exynos_sys_powerdown_conf(enum sys_powerdown mode);
  44. #endif /* __ARCH_ARM_MACH_EXYNOS_COMMON_H */