]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blame - drivers/soc/samsung/exynos-pmu.h
Merge branch 'pm-cpufreq'
[mirror_ubuntu-artful-kernel.git] / drivers / soc / samsung / exynos-pmu.h
CommitLineData
c21100c9
PD
1/*
2 * Copyright (c) 2015 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
12#ifndef __EXYNOS_PMU_H
13#define __EXYNOS_PMU_H
14
15#include <linux/io.h>
16
17#define PMU_TABLE_END (-1U)
18
19struct exynos_pmu_conf {
20 unsigned int offset;
21 u8 val[NUM_SYS_POWERDOWN];
22};
23
24struct exynos_pmu_data {
25 const struct exynos_pmu_conf *pmu_config;
26 const struct exynos_pmu_conf *pmu_config_extra;
27
28 void (*pmu_init)(void);
29 void (*powerdown_conf)(enum sys_powerdown);
30 void (*powerdown_conf_extra)(enum sys_powerdown);
31};
32
33extern void __iomem *pmu_base_addr;
a0ebf662
KK
34
35#ifdef CONFIG_EXYNOS_PMU_ARM_DRIVERS
c21100c9
PD
36/* list of all exported SoC specific data */
37extern const struct exynos_pmu_data exynos3250_pmu_data;
73d72ed8
PD
38extern const struct exynos_pmu_data exynos4210_pmu_data;
39extern const struct exynos_pmu_data exynos4212_pmu_data;
40extern const struct exynos_pmu_data exynos4412_pmu_data;
3900d6a8 41extern const struct exynos_pmu_data exynos5250_pmu_data;
92c4bf04 42extern const struct exynos_pmu_data exynos5420_pmu_data;
a0ebf662 43#endif
c21100c9
PD
44
45extern void pmu_raw_writel(u32 val, u32 offset);
46extern u32 pmu_raw_readl(u32 offset);
47#endif /* __EXYNOS_PMU_H */