thermal: exynos5: add exynos5250 thermal sensor driver support
[deliverable/linux.git] / include / linux / platform_data / exynos_thermal.h
CommitLineData
9d97e5c8 1/*
f22d9c03 2 * exynos_thermal.h - Samsung EXYNOS TMU (Thermal Management Unit)
9d97e5c8
DK
3 *
4 * Copyright (C) 2011 Samsung Electronics
5 * Donggeun Kim <dg77.kim@samsung.com>
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 as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20 */
21
c48cbba6
ADK
22#ifndef _LINUX_EXYNOS_THERMAL_H
23#define _LINUX_EXYNOS_THERMAL_H
9d97e5c8
DK
24
25enum calibration_type {
26 TYPE_ONE_POINT_TRIMMING,
27 TYPE_TWO_POINT_TRIMMING,
28 TYPE_NONE,
29};
30
f22d9c03
ADK
31enum soc_type {
32 SOC_ARCH_EXYNOS4210 = 1,
33 SOC_ARCH_EXYNOS,
34};
9d97e5c8 35/**
f22d9c03 36 * struct exynos_tmu_platform_data
9d97e5c8
DK
37 * @threshold: basic temperature for generating interrupt
38 * 25 <= threshold <= 125 [unit: degree Celsius]
39 * @trigger_levels: array for each interrupt levels
40 * [unit: degree Celsius]
41 * 0: temperature for trigger_level0 interrupt
42 * condition for trigger_level0 interrupt:
43 * current temperature > threshold + trigger_levels[0]
44 * 1: temperature for trigger_level1 interrupt
45 * condition for trigger_level1 interrupt:
46 * current temperature > threshold + trigger_levels[1]
47 * 2: temperature for trigger_level2 interrupt
48 * condition for trigger_level2 interrupt:
49 * current temperature > threshold + trigger_levels[2]
50 * 3: temperature for trigger_level3 interrupt
51 * condition for trigger_level3 interrupt:
52 * current temperature > threshold + trigger_levels[3]
53 * @trigger_level0_en:
54 * 1 = enable trigger_level0 interrupt,
55 * 0 = disable trigger_level0 interrupt
56 * @trigger_level1_en:
57 * 1 = enable trigger_level1 interrupt,
58 * 0 = disable trigger_level1 interrupt
59 * @trigger_level2_en:
60 * 1 = enable trigger_level2 interrupt,
61 * 0 = disable trigger_level2 interrupt
62 * @trigger_level3_en:
63 * 1 = enable trigger_level3 interrupt,
64 * 0 = disable trigger_level3 interrupt
65 * @gain: gain of amplifier in the positive-TC generator block
66 * 0 <= gain <= 15
67 * @reference_voltage: reference voltage of amplifier
68 * in the positive-TC generator block
69 * 0 <= reference_voltage <= 31
f22d9c03
ADK
70 * @noise_cancel_mode: noise cancellation mode
71 * 000, 100, 101, 110 and 111 can be different modes
72 * @type: determines the type of SOC
73 * @efuse_value: platform defined fuse value
9d97e5c8
DK
74 * @cal_type: calibration type for temperature
75 *
f22d9c03 76 * This structure is required for configuration of exynos_tmu driver.
9d97e5c8 77 */
f22d9c03 78struct exynos_tmu_platform_data {
9d97e5c8
DK
79 u8 threshold;
80 u8 trigger_levels[4];
81 bool trigger_level0_en;
82 bool trigger_level1_en;
83 bool trigger_level2_en;
84 bool trigger_level3_en;
85
86 u8 gain;
87 u8 reference_voltage;
f22d9c03
ADK
88 u8 noise_cancel_mode;
89 u32 efuse_value;
9d97e5c8
DK
90
91 enum calibration_type cal_type;
f22d9c03 92 enum soc_type type;
9d97e5c8 93};
c48cbba6 94#endif /* _LINUX_EXYNOS_THERMAL_H */
This page took 0.108981 seconds and 5 git commands to generate.