blob: 8646a141ae467b8175aed00d0acf39ae73f02097 [file] [log] [blame]
Kukjin Kimcc511b82011-12-27 08:18:36 +01001/*
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
12#ifndef __ARCH_ARM_MACH_EXYNOS_COMMON_H
13#define __ARCH_ARM_MACH_EXYNOS_COMMON_H
14
Robin Holt7b6d8642013-07-08 16:01:40 -070015#include <linux/reboot.h>
Thomas Abraham6e6aac72013-03-09 17:03:05 +090016#include <linux/of.h>
17
Arnd Bergmann034c0972013-04-10 11:35:29 +020018void mct_init(void __iomem *base, int irq_g0, int irq_l0, int irq_l1);
Thomas Abraham6e6aac72013-03-09 17:03:05 +090019void exynos_init_time(void);
Kukjin Kim906c7892012-02-11 21:27:08 +090020
Marc Zyngier06853ae2011-09-08 13:15:22 +010021struct map_desc;
Arnd Bergmann0e2238e2013-06-19 01:36:47 +090022void exynos_init_io(void);
Robin Holt7b6d8642013-07-08 16:01:40 -070023void exynos4_restart(enum reboot_mode mode, const char *cmd);
24void exynos5_restart(enum reboot_mode mode, const char *cmd);
Shawn Guobb13fab2012-04-26 10:35:40 +080025void exynos_init_late(void);
26
Tomasz Figabca28f82012-12-11 13:58:43 +090027void exynos_firmware_init(void);
28
Shawn Guobb13fab2012-04-26 10:35:40 +080029#ifdef CONFIG_PM_GENERIC_DOMAINS
30int exynos_pm_late_initcall(void);
31#else
Olof Johanssond0c2e4e2012-12-15 09:43:47 -080032static inline int exynos_pm_late_initcall(void) { return 0; }
Shawn Guobb13fab2012-04-26 10:35:40 +080033#endif
Kukjin Kimcc511b82011-12-27 08:18:36 +010034
Marc Zyngier06853ae2011-09-08 13:15:22 +010035extern struct smp_operations exynos_smp_ops;
36
37extern void exynos_cpu_die(unsigned int cpu);
38
Kukjin Kimccd458c2012-12-31 10:06:48 -080039/* PMU(Power Management Unit) support */
40
41#define PMU_TABLE_END NULL
42
43enum sys_powerdown {
44 SYS_AFTR,
45 SYS_LPA,
46 SYS_SLEEP,
47 NUM_SYS_POWERDOWN,
48};
49
50extern unsigned long l2x0_regs_phys;
51struct exynos_pmu_conf {
52 void __iomem *reg;
53 unsigned int val[NUM_SYS_POWERDOWN];
54};
55
56extern void exynos_sys_powerdown_conf(enum sys_powerdown mode);
Kukjin Kimccd458c2012-12-31 10:06:48 -080057
Kukjin Kimcc511b82011-12-27 08:18:36 +010058#endif /* __ARCH_ARM_MACH_EXYNOS_COMMON_H */