diff options
Diffstat (limited to 'include/linux/soc')
| -rw-r--r-- | include/linux/soc/samsung/exynos-pmu.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/linux/soc/samsung/exynos-pmu.h b/include/linux/soc/samsung/exynos-pmu.h index e2e9de1acc5b..e57eb4b6cc5a 100644 --- a/include/linux/soc/samsung/exynos-pmu.h +++ b/include/linux/soc/samsung/exynos-pmu.h | |||
| @@ -12,6 +12,8 @@ | |||
| 12 | #ifndef __LINUX_SOC_EXYNOS_PMU_H | 12 | #ifndef __LINUX_SOC_EXYNOS_PMU_H |
| 13 | #define __LINUX_SOC_EXYNOS_PMU_H | 13 | #define __LINUX_SOC_EXYNOS_PMU_H |
| 14 | 14 | ||
| 15 | struct regmap; | ||
| 16 | |||
| 15 | enum sys_powerdown { | 17 | enum sys_powerdown { |
| 16 | SYS_AFTR, | 18 | SYS_AFTR, |
| 17 | SYS_LPA, | 19 | SYS_LPA, |
| @@ -20,5 +22,13 @@ enum sys_powerdown { | |||
| 20 | }; | 22 | }; |
| 21 | 23 | ||
| 22 | extern void exynos_sys_powerdown_conf(enum sys_powerdown mode); | 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 | ||
| 23 | 33 | ||
| 24 | #endif /* __LINUX_SOC_EXYNOS_PMU_H */ | 34 | #endif /* __LINUX_SOC_EXYNOS_PMU_H */ |
