common.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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. struct map_desc;
  17. void exynos_init_io(void);
  18. void exynos4_restart(enum reboot_mode mode, const char *cmd);
  19. void exynos5_restart(enum reboot_mode mode, const char *cmd);
  20. void exynos_init_late(void);
  21. void exynos_firmware_init(void);
  22. #ifdef CONFIG_PM_GENERIC_DOMAINS
  23. int exynos_pm_late_initcall(void);
  24. #else
  25. static inline int exynos_pm_late_initcall(void) { return 0; }
  26. #endif
  27. extern struct smp_operations exynos_smp_ops;
  28. extern void exynos_cpu_die(unsigned int cpu);
  29. /* PMU(Power Management Unit) support */
  30. #define PMU_TABLE_END NULL
  31. enum sys_powerdown {
  32. SYS_AFTR,
  33. SYS_LPA,
  34. SYS_SLEEP,
  35. NUM_SYS_POWERDOWN,
  36. };
  37. extern unsigned long l2x0_regs_phys;
  38. struct exynos_pmu_conf {
  39. void __iomem *reg;
  40. unsigned int val[NUM_SYS_POWERDOWN];
  41. };
  42. extern void exynos_sys_powerdown_conf(enum sys_powerdown mode);
  43. #endif /* __ARCH_ARM_MACH_EXYNOS_COMMON_H */