2018-01-10 01:29:56 +07:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0 */
|
2014-11-07 07:26:47 +07:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2014 Samsung Electronics Co., Ltd.
|
|
|
|
* http://www.samsung.com
|
|
|
|
*
|
|
|
|
* Header for EXYNOS PMU Driver support
|
|
|
|
*/
|
|
|
|
|
2015-12-18 10:32:11 +07:00
|
|
|
#ifndef __LINUX_SOC_EXYNOS_PMU_H
|
|
|
|
#define __LINUX_SOC_EXYNOS_PMU_H
|
2014-11-07 07:26:47 +07:00
|
|
|
|
2017-01-19 20:48:41 +07:00
|
|
|
struct regmap;
|
|
|
|
|
2014-11-07 07:26:47 +07:00
|
|
|
enum sys_powerdown {
|
|
|
|
SYS_AFTR,
|
|
|
|
SYS_LPA,
|
|
|
|
SYS_SLEEP,
|
|
|
|
NUM_SYS_POWERDOWN,
|
|
|
|
};
|
|
|
|
|
|
|
|
extern void exynos_sys_powerdown_conf(enum sys_powerdown mode);
|
2017-01-19 20:48:41 +07:00
|
|
|
#ifdef CONFIG_EXYNOS_PMU
|
|
|
|
extern struct regmap *exynos_get_pmu_regmap(void);
|
|
|
|
#else
|
|
|
|
static inline struct regmap *exynos_get_pmu_regmap(void)
|
|
|
|
{
|
|
|
|
return ERR_PTR(-ENODEV);
|
|
|
|
}
|
|
|
|
#endif
|
2014-11-07 07:26:47 +07:00
|
|
|
|
2015-12-18 10:32:11 +07:00
|
|
|
#endif /* __LINUX_SOC_EXYNOS_PMU_H */
|