cachepc-linux

Fork of AMDESE/linux with modifications for CachePC side-channel attack
git clone https://git.sinitax.com/sinitax/cachepc-linux
Log | Files | Refs | README | LICENSE | sfeed.txt

exynos-pmu.h (609B)


      1/* SPDX-License-Identifier: GPL-2.0 */
      2/*
      3 * Copyright (c) 2014 Samsung Electronics Co., Ltd.
      4 *		http://www.samsung.com
      5 *
      6 * Header for Exynos PMU Driver support
      7 */
      8
      9#ifndef __LINUX_SOC_EXYNOS_PMU_H
     10#define __LINUX_SOC_EXYNOS_PMU_H
     11
     12struct regmap;
     13
     14enum sys_powerdown {
     15	SYS_AFTR,
     16	SYS_LPA,
     17	SYS_SLEEP,
     18	NUM_SYS_POWERDOWN,
     19};
     20
     21extern void exynos_sys_powerdown_conf(enum sys_powerdown mode);
     22#ifdef CONFIG_EXYNOS_PMU
     23extern struct regmap *exynos_get_pmu_regmap(void);
     24#else
     25static inline struct regmap *exynos_get_pmu_regmap(void)
     26{
     27	return ERR_PTR(-ENODEV);
     28}
     29#endif
     30
     31#endif /* __LINUX_SOC_EXYNOS_PMU_H */