]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blame - include/linux/soc/samsung/exynos-pmu.h
Merge branches 'for-4.11/upstream-fixes', 'for-4.12/accutouch', 'for-4.12/cp2112...
[mirror_ubuntu-artful-kernel.git] / include / linux / soc / samsung / exynos-pmu.h
CommitLineData
6b7bfd82
PD
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
2262d6ef
PD
12#ifndef __LINUX_SOC_EXYNOS_PMU_H
13#define __LINUX_SOC_EXYNOS_PMU_H
6b7bfd82 14
76640b84
MS
15struct regmap;
16
6b7bfd82
PD
17enum sys_powerdown {
18 SYS_AFTR,
19 SYS_LPA,
20 SYS_SLEEP,
21 NUM_SYS_POWERDOWN,
22};
23
24extern void exynos_sys_powerdown_conf(enum sys_powerdown mode);
76640b84
MS
25#ifdef CONFIG_EXYNOS_PMU
26extern struct regmap *exynos_get_pmu_regmap(void);
27#else
28static inline struct regmap *exynos_get_pmu_regmap(void)
29{
30 return ERR_PTR(-ENODEV);
31}
32#endif
6b7bfd82 33
2262d6ef 34#endif /* __LINUX_SOC_EXYNOS_PMU_H */