0001
0002
0003
0004
0005
0006
0007
0008
0009 #ifndef __EXYNOS_PMU_H
0010 #define __EXYNOS_PMU_H
0011
0012 #include <linux/io.h>
0013
0014 #define PMU_TABLE_END (-1U)
0015
0016 struct exynos_pmu_conf {
0017 unsigned int offset;
0018 u8 val[NUM_SYS_POWERDOWN];
0019 };
0020
0021 struct exynos_pmu_data {
0022 const struct exynos_pmu_conf *pmu_config;
0023
0024 void (*pmu_init)(void);
0025 void (*powerdown_conf)(enum sys_powerdown);
0026 void (*powerdown_conf_extra)(enum sys_powerdown);
0027 };
0028
0029 extern void __iomem *pmu_base_addr;
0030
0031 #ifdef CONFIG_EXYNOS_PMU_ARM_DRIVERS
0032
0033 extern const struct exynos_pmu_data exynos3250_pmu_data;
0034 extern const struct exynos_pmu_data exynos4210_pmu_data;
0035 extern const struct exynos_pmu_data exynos4412_pmu_data;
0036 extern const struct exynos_pmu_data exynos5250_pmu_data;
0037 extern const struct exynos_pmu_data exynos5420_pmu_data;
0038 #endif
0039
0040 extern void pmu_raw_writel(u32 val, u32 offset);
0041 extern u32 pmu_raw_readl(u32 offset);
0042 #endif