]>
Commit | Line | Data |
---|---|---|
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 |
15 | struct regmap; |
16 | ||
6b7bfd82 PD |
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); | |
76640b84 MS |
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 | |
6b7bfd82 | 33 | |
2262d6ef | 34 | #endif /* __LINUX_SOC_EXYNOS_PMU_H */ |