]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blob - include/linux/soc/samsung/exynos-pmu.h
e57eb4b6cc5a54f51be67d9f3a6e2b43393bba06
[mirror_ubuntu-artful-kernel.git] / include / linux / soc / samsung / exynos-pmu.h
1 /*
2 * Copyright (c) 2014 Samsung Electronics Co., Ltd.
3 * http://www.samsung.com
4 *
5 * Header for EXYNOS PMU Driver support
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 __LINUX_SOC_EXYNOS_PMU_H
13 #define __LINUX_SOC_EXYNOS_PMU_H
14
15 struct regmap;
16
17 enum sys_powerdown {
18 SYS_AFTR,
19 SYS_LPA,
20 SYS_SLEEP,
21 NUM_SYS_POWERDOWN,
22 };
23
24 extern void exynos_sys_powerdown_conf(enum sys_powerdown mode);
25 #ifdef CONFIG_EXYNOS_PMU
26 extern struct regmap *exynos_get_pmu_regmap(void);
27 #else
28 static inline struct regmap *exynos_get_pmu_regmap(void)
29 {
30 return ERR_PTR(-ENODEV);
31 }
32 #endif
33
34 #endif /* __LINUX_SOC_EXYNOS_PMU_H */