xref: /linux/drivers/thermal/ti-soc-thermal/omap5-thermal-data.c (revision d86910b9141e16f2bbe38e53429f63f13569624b)
1eb982001SEduardo Valentin /*
2eb982001SEduardo Valentin  * OMAP5 thermal driver.
3eb982001SEduardo Valentin  *
4eb982001SEduardo Valentin  * Copyright (C) 2011-2012 Texas Instruments Inc.
5eb982001SEduardo Valentin  * Contact:
6eb982001SEduardo Valentin  *	Eduardo Valentin <eduardo.valentin@ti.com>
7eb982001SEduardo Valentin  *
8eb982001SEduardo Valentin  * This software is licensed under the terms of the GNU General Public
9eb982001SEduardo Valentin  * License version 2, as published by the Free Software Foundation, and
10eb982001SEduardo Valentin  * may be copied, distributed, and modified under those terms.
11eb982001SEduardo Valentin  *
12eb982001SEduardo Valentin  * This program is distributed in the hope that it will be useful,
13eb982001SEduardo Valentin  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14eb982001SEduardo Valentin  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15eb982001SEduardo Valentin  * GNU General Public License for more details.
16eb982001SEduardo Valentin  *
17eb982001SEduardo Valentin  */
18eb982001SEduardo Valentin 
19eb982001SEduardo Valentin #include "ti-thermal.h"
20eb982001SEduardo Valentin #include "ti-bandgap.h"
21eb982001SEduardo Valentin #include "omap5xxx-bandgap.h"
22eb982001SEduardo Valentin 
23eb982001SEduardo Valentin /*
24eb982001SEduardo Valentin  * OMAP5430 has three instances of thermal sensor for MPU, GPU & CORE,
25eb982001SEduardo Valentin  * need to describe the individual registers and bit fields.
26eb982001SEduardo Valentin  */
27eb982001SEduardo Valentin 
28eb982001SEduardo Valentin /*
29eb982001SEduardo Valentin  * OMAP5430 MPU thermal sensor register offset and bit-fields
30eb982001SEduardo Valentin  */
31eb982001SEduardo Valentin static struct temp_sensor_registers
32eb982001SEduardo Valentin omap5430_mpu_temp_sensor_registers = {
33eb982001SEduardo Valentin 	.temp_sensor_ctrl = OMAP5430_TEMP_SENSOR_MPU_OFFSET,
34eb982001SEduardo Valentin 	.bgap_tempsoff_mask = OMAP5430_BGAP_TEMPSOFF_MASK,
35eb982001SEduardo Valentin 	.bgap_eocz_mask = OMAP5430_BGAP_TEMP_SENSOR_EOCZ_MASK,
36eb982001SEduardo Valentin 	.bgap_dtemp_mask = OMAP5430_BGAP_TEMP_SENSOR_DTEMP_MASK,
37eb982001SEduardo Valentin 
38eb982001SEduardo Valentin 	.bgap_mask_ctrl = OMAP5430_BGAP_CTRL_OFFSET,
39eb982001SEduardo Valentin 	.mask_hot_mask = OMAP5430_MASK_HOT_MPU_MASK,
40eb982001SEduardo Valentin 	.mask_cold_mask = OMAP5430_MASK_COLD_MPU_MASK,
41eb982001SEduardo Valentin 	.mask_sidlemode_mask = OMAP5430_MASK_SIDLEMODE_MASK,
42eb982001SEduardo Valentin 	.mask_counter_delay_mask = OMAP5430_MASK_COUNTER_DELAY_MASK,
43eb982001SEduardo Valentin 	.mask_freeze_mask = OMAP5430_MASK_FREEZE_MPU_MASK,
44eb982001SEduardo Valentin 	.mask_clear_mask = OMAP5430_MASK_CLEAR_MPU_MASK,
45eb982001SEduardo Valentin 	.mask_clear_accum_mask = OMAP5430_MASK_CLEAR_ACCUM_MPU_MASK,
46eb982001SEduardo Valentin 
47eb982001SEduardo Valentin 
48eb982001SEduardo Valentin 	.bgap_counter = OMAP5430_BGAP_CTRL_OFFSET,
49eb982001SEduardo Valentin 	.counter_mask = OMAP5430_COUNTER_MASK,
50eb982001SEduardo Valentin 
51eb982001SEduardo Valentin 	.bgap_threshold = OMAP5430_BGAP_THRESHOLD_MPU_OFFSET,
52eb982001SEduardo Valentin 	.threshold_thot_mask = OMAP5430_T_HOT_MASK,
53eb982001SEduardo Valentin 	.threshold_tcold_mask = OMAP5430_T_COLD_MASK,
54eb982001SEduardo Valentin 
55eb982001SEduardo Valentin 	.tshut_threshold = OMAP5430_BGAP_TSHUT_MPU_OFFSET,
56eb982001SEduardo Valentin 	.tshut_hot_mask = OMAP5430_TSHUT_HOT_MASK,
57eb982001SEduardo Valentin 	.tshut_cold_mask = OMAP5430_TSHUT_COLD_MASK,
58eb982001SEduardo Valentin 
59eb982001SEduardo Valentin 	.bgap_status = OMAP5430_BGAP_STATUS_OFFSET,
60eb982001SEduardo Valentin 	.status_clean_stop_mask = 0x0,
61eb982001SEduardo Valentin 	.status_bgap_alert_mask = OMAP5430_BGAP_ALERT_MASK,
62eb982001SEduardo Valentin 	.status_hot_mask = OMAP5430_HOT_MPU_FLAG_MASK,
63eb982001SEduardo Valentin 	.status_cold_mask = OMAP5430_COLD_MPU_FLAG_MASK,
64eb982001SEduardo Valentin 
65eb982001SEduardo Valentin 	.bgap_cumul_dtemp = OMAP5430_BGAP_CUMUL_DTEMP_MPU_OFFSET,
66eb982001SEduardo Valentin 	.ctrl_dtemp_0 = OMAP5430_BGAP_DTEMP_MPU_0_OFFSET,
67eb982001SEduardo Valentin 	.ctrl_dtemp_1 = OMAP5430_BGAP_DTEMP_MPU_1_OFFSET,
68eb982001SEduardo Valentin 	.ctrl_dtemp_2 = OMAP5430_BGAP_DTEMP_MPU_2_OFFSET,
69eb982001SEduardo Valentin 	.ctrl_dtemp_3 = OMAP5430_BGAP_DTEMP_MPU_3_OFFSET,
70eb982001SEduardo Valentin 	.ctrl_dtemp_4 = OMAP5430_BGAP_DTEMP_MPU_4_OFFSET,
71eb982001SEduardo Valentin 	.bgap_efuse = OMAP5430_FUSE_OPP_BGAP_MPU,
72eb982001SEduardo Valentin };
73eb982001SEduardo Valentin 
74eb982001SEduardo Valentin /*
75eb982001SEduardo Valentin  * OMAP5430 GPU thermal sensor register offset and bit-fields
76eb982001SEduardo Valentin  */
77eb982001SEduardo Valentin static struct temp_sensor_registers
78eb982001SEduardo Valentin omap5430_gpu_temp_sensor_registers = {
79eb982001SEduardo Valentin 	.temp_sensor_ctrl = OMAP5430_TEMP_SENSOR_GPU_OFFSET,
80eb982001SEduardo Valentin 	.bgap_tempsoff_mask = OMAP5430_BGAP_TEMPSOFF_MASK,
81eb982001SEduardo Valentin 	.bgap_eocz_mask = OMAP5430_BGAP_TEMP_SENSOR_EOCZ_MASK,
82eb982001SEduardo Valentin 	.bgap_dtemp_mask = OMAP5430_BGAP_TEMP_SENSOR_DTEMP_MASK,
83eb982001SEduardo Valentin 
84eb982001SEduardo Valentin 	.bgap_mask_ctrl = OMAP5430_BGAP_CTRL_OFFSET,
85eb982001SEduardo Valentin 	.mask_hot_mask = OMAP5430_MASK_HOT_GPU_MASK,
86eb982001SEduardo Valentin 	.mask_cold_mask = OMAP5430_MASK_COLD_GPU_MASK,
87eb982001SEduardo Valentin 	.mask_sidlemode_mask = OMAP5430_MASK_SIDLEMODE_MASK,
88eb982001SEduardo Valentin 	.mask_counter_delay_mask = OMAP5430_MASK_COUNTER_DELAY_MASK,
89eb982001SEduardo Valentin 	.mask_freeze_mask = OMAP5430_MASK_FREEZE_GPU_MASK,
90eb982001SEduardo Valentin 	.mask_clear_mask = OMAP5430_MASK_CLEAR_GPU_MASK,
91eb982001SEduardo Valentin 	.mask_clear_accum_mask = OMAP5430_MASK_CLEAR_ACCUM_GPU_MASK,
92eb982001SEduardo Valentin 
93eb982001SEduardo Valentin 	.bgap_counter = OMAP5430_BGAP_CTRL_OFFSET,
94eb982001SEduardo Valentin 	.counter_mask = OMAP5430_COUNTER_MASK,
95eb982001SEduardo Valentin 
96eb982001SEduardo Valentin 	.bgap_threshold = OMAP5430_BGAP_THRESHOLD_GPU_OFFSET,
97eb982001SEduardo Valentin 	.threshold_thot_mask = OMAP5430_T_HOT_MASK,
98eb982001SEduardo Valentin 	.threshold_tcold_mask = OMAP5430_T_COLD_MASK,
99eb982001SEduardo Valentin 
100eb982001SEduardo Valentin 	.tshut_threshold = OMAP5430_BGAP_TSHUT_GPU_OFFSET,
101eb982001SEduardo Valentin 	.tshut_hot_mask = OMAP5430_TSHUT_HOT_MASK,
102eb982001SEduardo Valentin 	.tshut_cold_mask = OMAP5430_TSHUT_COLD_MASK,
103eb982001SEduardo Valentin 
104eb982001SEduardo Valentin 	.bgap_status = OMAP5430_BGAP_STATUS_OFFSET,
105eb982001SEduardo Valentin 	.status_clean_stop_mask = 0x0,
106eb982001SEduardo Valentin 	.status_bgap_alert_mask = OMAP5430_BGAP_ALERT_MASK,
107eb982001SEduardo Valentin 	.status_hot_mask = OMAP5430_HOT_GPU_FLAG_MASK,
108eb982001SEduardo Valentin 	.status_cold_mask = OMAP5430_COLD_GPU_FLAG_MASK,
109eb982001SEduardo Valentin 
110eb982001SEduardo Valentin 	.bgap_cumul_dtemp = OMAP5430_BGAP_CUMUL_DTEMP_GPU_OFFSET,
111eb982001SEduardo Valentin 	.ctrl_dtemp_0 = OMAP5430_BGAP_DTEMP_GPU_0_OFFSET,
112eb982001SEduardo Valentin 	.ctrl_dtemp_1 = OMAP5430_BGAP_DTEMP_GPU_1_OFFSET,
113eb982001SEduardo Valentin 	.ctrl_dtemp_2 = OMAP5430_BGAP_DTEMP_GPU_2_OFFSET,
114eb982001SEduardo Valentin 	.ctrl_dtemp_3 = OMAP5430_BGAP_DTEMP_GPU_3_OFFSET,
115eb982001SEduardo Valentin 	.ctrl_dtemp_4 = OMAP5430_BGAP_DTEMP_GPU_4_OFFSET,
116eb982001SEduardo Valentin 
117eb982001SEduardo Valentin 	.bgap_efuse = OMAP5430_FUSE_OPP_BGAP_GPU,
118eb982001SEduardo Valentin };
119eb982001SEduardo Valentin 
120eb982001SEduardo Valentin /*
121eb982001SEduardo Valentin  * OMAP5430 CORE thermal sensor register offset and bit-fields
122eb982001SEduardo Valentin  */
123eb982001SEduardo Valentin static struct temp_sensor_registers
124eb982001SEduardo Valentin omap5430_core_temp_sensor_registers = {
125eb982001SEduardo Valentin 	.temp_sensor_ctrl = OMAP5430_TEMP_SENSOR_CORE_OFFSET,
126eb982001SEduardo Valentin 	.bgap_tempsoff_mask = OMAP5430_BGAP_TEMPSOFF_MASK,
127eb982001SEduardo Valentin 	.bgap_eocz_mask = OMAP5430_BGAP_TEMP_SENSOR_EOCZ_MASK,
128eb982001SEduardo Valentin 	.bgap_dtemp_mask = OMAP5430_BGAP_TEMP_SENSOR_DTEMP_MASK,
129eb982001SEduardo Valentin 
130eb982001SEduardo Valentin 	.bgap_mask_ctrl = OMAP5430_BGAP_CTRL_OFFSET,
131eb982001SEduardo Valentin 	.mask_hot_mask = OMAP5430_MASK_HOT_CORE_MASK,
132eb982001SEduardo Valentin 	.mask_cold_mask = OMAP5430_MASK_COLD_CORE_MASK,
133eb982001SEduardo Valentin 	.mask_sidlemode_mask = OMAP5430_MASK_SIDLEMODE_MASK,
134eb982001SEduardo Valentin 	.mask_counter_delay_mask = OMAP5430_MASK_COUNTER_DELAY_MASK,
135eb982001SEduardo Valentin 	.mask_freeze_mask = OMAP5430_MASK_FREEZE_CORE_MASK,
136eb982001SEduardo Valentin 	.mask_clear_mask = OMAP5430_MASK_CLEAR_CORE_MASK,
137eb982001SEduardo Valentin 	.mask_clear_accum_mask = OMAP5430_MASK_CLEAR_ACCUM_CORE_MASK,
138eb982001SEduardo Valentin 
139eb982001SEduardo Valentin 	.bgap_counter = OMAP5430_BGAP_CTRL_OFFSET,
140eb982001SEduardo Valentin 	.counter_mask = OMAP5430_COUNTER_MASK,
141eb982001SEduardo Valentin 
142eb982001SEduardo Valentin 	.bgap_threshold = OMAP5430_BGAP_THRESHOLD_CORE_OFFSET,
143eb982001SEduardo Valentin 	.threshold_thot_mask = OMAP5430_T_HOT_MASK,
144eb982001SEduardo Valentin 	.threshold_tcold_mask = OMAP5430_T_COLD_MASK,
145eb982001SEduardo Valentin 
146eb982001SEduardo Valentin 	.tshut_threshold = OMAP5430_BGAP_TSHUT_CORE_OFFSET,
147eb982001SEduardo Valentin 	.tshut_hot_mask = OMAP5430_TSHUT_HOT_MASK,
148eb982001SEduardo Valentin 	.tshut_cold_mask = OMAP5430_TSHUT_COLD_MASK,
149eb982001SEduardo Valentin 
150eb982001SEduardo Valentin 	.bgap_status = OMAP5430_BGAP_STATUS_OFFSET,
151eb982001SEduardo Valentin 	.status_clean_stop_mask = 0x0,
152eb982001SEduardo Valentin 	.status_bgap_alert_mask = OMAP5430_BGAP_ALERT_MASK,
153eb982001SEduardo Valentin 	.status_hot_mask = OMAP5430_HOT_CORE_FLAG_MASK,
154eb982001SEduardo Valentin 	.status_cold_mask = OMAP5430_COLD_CORE_FLAG_MASK,
155eb982001SEduardo Valentin 
156eb982001SEduardo Valentin 	.bgap_cumul_dtemp = OMAP5430_BGAP_CUMUL_DTEMP_CORE_OFFSET,
157eb982001SEduardo Valentin 	.ctrl_dtemp_0 = OMAP5430_BGAP_DTEMP_CORE_0_OFFSET,
158eb982001SEduardo Valentin 	.ctrl_dtemp_1 = OMAP5430_BGAP_DTEMP_CORE_1_OFFSET,
159eb982001SEduardo Valentin 	.ctrl_dtemp_2 = OMAP5430_BGAP_DTEMP_CORE_2_OFFSET,
160eb982001SEduardo Valentin 	.ctrl_dtemp_3 = OMAP5430_BGAP_DTEMP_CORE_3_OFFSET,
161eb982001SEduardo Valentin 	.ctrl_dtemp_4 = OMAP5430_BGAP_DTEMP_CORE_4_OFFSET,
162eb982001SEduardo Valentin 
163eb982001SEduardo Valentin 	.bgap_efuse = OMAP5430_FUSE_OPP_BGAP_CORE,
164eb982001SEduardo Valentin };
165eb982001SEduardo Valentin 
166eb982001SEduardo Valentin /* Thresholds and limits for OMAP5430 MPU temperature sensor */
167eb982001SEduardo Valentin static struct temp_sensor_data omap5430_mpu_temp_sensor_data = {
168eb982001SEduardo Valentin 	.tshut_hot = OMAP5430_MPU_TSHUT_HOT,
169eb982001SEduardo Valentin 	.tshut_cold = OMAP5430_MPU_TSHUT_COLD,
170eb982001SEduardo Valentin 	.t_hot = OMAP5430_MPU_T_HOT,
171eb982001SEduardo Valentin 	.t_cold = OMAP5430_MPU_T_COLD,
172eb982001SEduardo Valentin 	.min_freq = OMAP5430_MPU_MIN_FREQ,
173eb982001SEduardo Valentin 	.max_freq = OMAP5430_MPU_MAX_FREQ,
174eb982001SEduardo Valentin 	.max_temp = OMAP5430_MPU_MAX_TEMP,
175eb982001SEduardo Valentin 	.min_temp = OMAP5430_MPU_MIN_TEMP,
176eb982001SEduardo Valentin 	.hyst_val = OMAP5430_MPU_HYST_VAL,
177eb982001SEduardo Valentin 	.update_int1 = 1000,
178eb982001SEduardo Valentin 	.update_int2 = 2000,
179eb982001SEduardo Valentin };
180eb982001SEduardo Valentin 
181eb982001SEduardo Valentin /* Thresholds and limits for OMAP5430 GPU temperature sensor */
182eb982001SEduardo Valentin static struct temp_sensor_data omap5430_gpu_temp_sensor_data = {
183eb982001SEduardo Valentin 	.tshut_hot = OMAP5430_GPU_TSHUT_HOT,
184eb982001SEduardo Valentin 	.tshut_cold = OMAP5430_GPU_TSHUT_COLD,
185eb982001SEduardo Valentin 	.t_hot = OMAP5430_GPU_T_HOT,
186eb982001SEduardo Valentin 	.t_cold = OMAP5430_GPU_T_COLD,
187eb982001SEduardo Valentin 	.min_freq = OMAP5430_GPU_MIN_FREQ,
188eb982001SEduardo Valentin 	.max_freq = OMAP5430_GPU_MAX_FREQ,
189eb982001SEduardo Valentin 	.max_temp = OMAP5430_GPU_MAX_TEMP,
190eb982001SEduardo Valentin 	.min_temp = OMAP5430_GPU_MIN_TEMP,
191eb982001SEduardo Valentin 	.hyst_val = OMAP5430_GPU_HYST_VAL,
192eb982001SEduardo Valentin 	.update_int1 = 1000,
193eb982001SEduardo Valentin 	.update_int2 = 2000,
194eb982001SEduardo Valentin };
195eb982001SEduardo Valentin 
196eb982001SEduardo Valentin /* Thresholds and limits for OMAP5430 CORE temperature sensor */
197eb982001SEduardo Valentin static struct temp_sensor_data omap5430_core_temp_sensor_data = {
198eb982001SEduardo Valentin 	.tshut_hot = OMAP5430_CORE_TSHUT_HOT,
199eb982001SEduardo Valentin 	.tshut_cold = OMAP5430_CORE_TSHUT_COLD,
200eb982001SEduardo Valentin 	.t_hot = OMAP5430_CORE_T_HOT,
201eb982001SEduardo Valentin 	.t_cold = OMAP5430_CORE_T_COLD,
202eb982001SEduardo Valentin 	.min_freq = OMAP5430_CORE_MIN_FREQ,
203eb982001SEduardo Valentin 	.max_freq = OMAP5430_CORE_MAX_FREQ,
204eb982001SEduardo Valentin 	.max_temp = OMAP5430_CORE_MAX_TEMP,
205eb982001SEduardo Valentin 	.min_temp = OMAP5430_CORE_MIN_TEMP,
206eb982001SEduardo Valentin 	.hyst_val = OMAP5430_CORE_HYST_VAL,
207eb982001SEduardo Valentin 	.update_int1 = 1000,
208eb982001SEduardo Valentin 	.update_int2 = 2000,
209eb982001SEduardo Valentin };
210eb982001SEduardo Valentin 
211eb982001SEduardo Valentin /*
212eb982001SEduardo Valentin  * OMAP54xx ES2.0 : Temperature values in milli degree celsius
213eb982001SEduardo Valentin  * ADC code values from 540 to 945
214eb982001SEduardo Valentin  */
215eb982001SEduardo Valentin static int
216eb982001SEduardo Valentin omap5430_adc_to_temp[
217eb982001SEduardo Valentin 	OMAP5430_ADC_END_VALUE - OMAP5430_ADC_START_VALUE + 1] = {
218eb982001SEduardo Valentin 	/* Index 540 - 549 */
219eb982001SEduardo Valentin 	-40000, -40000, -40000, -40000, -39800, -39400, -39000, -38600, -38200,
220eb982001SEduardo Valentin 	-37800,
221eb982001SEduardo Valentin 	/* Index 550 - 559 */
222eb982001SEduardo Valentin 	-37400, -37000, -36600, -36200, -35800, -35300, -34700, -34200, -33800,
223eb982001SEduardo Valentin 	-33400,
224eb982001SEduardo Valentin 	/* Index 560 - 569 */
225eb982001SEduardo Valentin 	-33000, -32600, -32200, -31800, -31400, -31000, -30600, -30200, -29800,
226eb982001SEduardo Valentin 	-29400,
227eb982001SEduardo Valentin 	/* Index 570 - 579 */
228eb982001SEduardo Valentin 	-29000, -28600, -28200, -27700, -27100, -26600, -26200, -25800, -25400,
229eb982001SEduardo Valentin 	-25000,
230eb982001SEduardo Valentin 	/* Index 580 - 589 */
231eb982001SEduardo Valentin 	-24600, -24200, -23800, -23400, -23000, -22600, -22200, -21600, -21400,
232eb982001SEduardo Valentin 	-21000,
233eb982001SEduardo Valentin 	/* Index 590 - 599 */
234eb982001SEduardo Valentin 	-20500, -19900, -19400, -19000, -18600, -18200, -17800, -17400, -17000,
235eb982001SEduardo Valentin 	-16600,
236eb982001SEduardo Valentin 	/* Index 600 - 609 */
237eb982001SEduardo Valentin 	-16200, -15800, -15400, -15000, -14600, -14200, -13800,	-13400, -13000,
238eb982001SEduardo Valentin 	-12500,
239eb982001SEduardo Valentin 	/* Index 610 - 619 */
240eb982001SEduardo Valentin 	-11900, -11400, -11000, -10600, -10200, -9800, -9400, -9000, -8600,
241eb982001SEduardo Valentin 	-8200,
242eb982001SEduardo Valentin 	/* Index 620 - 629 */
243eb982001SEduardo Valentin 	-7800, -7400, -7000, -6600, -6200, -5800, -5400, -5000, -4500, -3900,
244eb982001SEduardo Valentin 	/* Index 630 - 639 */
245eb982001SEduardo Valentin 	-3400, -3000, -2600, -2200, -1800, -1400, -1000, -600, -200, 200,
246eb982001SEduardo Valentin 	/* Index 640 - 649 */
247eb982001SEduardo Valentin 	600, 1000, 1400, 1800, 2200, 2600, 3000, 3400, 3900, 4500,
248eb982001SEduardo Valentin 	/* Index 650 - 659 */
249eb982001SEduardo Valentin 	5000, 5400, 5800, 6200, 6600, 7000, 7400, 7800, 8200, 8600,
250eb982001SEduardo Valentin 	/* Index 660 - 669 */
251eb982001SEduardo Valentin 	9000, 9400, 9800, 10200, 10600, 11000, 11400, 11800, 12200, 12700,
252eb982001SEduardo Valentin 	/* Index 670 - 679 */
253eb982001SEduardo Valentin 	13300, 13800, 14200, 14600, 15000, 15400, 15800, 16200, 16600, 17000,
254eb982001SEduardo Valentin 	/* Index 680 - 689 */
255eb982001SEduardo Valentin 	17400, 17800, 18200, 18600, 19000, 19400, 19800, 20200, 20600, 21100,
256eb982001SEduardo Valentin 	/* Index 690 - 699 */
257eb982001SEduardo Valentin 	21400, 21900, 22500, 23000, 23400, 23800, 24200, 24600, 25000, 25400,
258eb982001SEduardo Valentin 	/* Index 700 - 709 */
259eb982001SEduardo Valentin 	25800, 26200, 26600, 27000, 27400, 27800, 28200, 28600, 29000, 29400,
260eb982001SEduardo Valentin 	/* Index 710 - 719 */
261eb982001SEduardo Valentin 	29800, 30200, 30600, 31000, 31400, 31900, 32500, 33000, 33400, 33800,
262eb982001SEduardo Valentin 	/* Index 720 - 729 */
263eb982001SEduardo Valentin 	34200, 34600, 35000, 35400, 35800, 36200, 36600, 37000, 37400, 37800,
264eb982001SEduardo Valentin 	/* Index 730 - 739 */
265eb982001SEduardo Valentin 	38200, 38600, 39000, 39400, 39800, 40200, 40600, 41000, 41400, 41800,
266eb982001SEduardo Valentin 	/* Index 740 - 749 */
267eb982001SEduardo Valentin 	42200, 42600, 43100, 43700, 44200, 44600, 45000, 45400, 45800, 46200,
268eb982001SEduardo Valentin 	/* Index 750 - 759 */
269eb982001SEduardo Valentin 	46600, 47000, 47400, 47800, 48200, 48600, 49000, 49400, 49800, 50200,
270eb982001SEduardo Valentin 	/* Index 760 - 769 */
271eb982001SEduardo Valentin 	50600, 51000, 51400, 51800, 52200, 52600, 53000, 53400, 53800, 54200,
272eb982001SEduardo Valentin 	/* Index 770 - 779 */
273eb982001SEduardo Valentin 	54600, 55000, 55400, 55900, 56500, 57000, 57400, 57800, 58200, 58600,
274eb982001SEduardo Valentin 	/* Index 780 - 789 */
275eb982001SEduardo Valentin 	59000, 59400, 59800, 60200, 60600, 61000, 61400, 61800, 62200, 62600,
276eb982001SEduardo Valentin 	/* Index 790 - 799 */
277eb982001SEduardo Valentin 	63000, 63400, 63800, 64200, 64600, 65000, 65400, 65800, 66200, 66600,
278eb982001SEduardo Valentin 	/* Index 800 - 809 */
279eb982001SEduardo Valentin 	67000, 67400, 67800, 68200, 68600, 69000, 69400, 69800, 70200, 70600,
280eb982001SEduardo Valentin 	/* Index 810 - 819 */
281eb982001SEduardo Valentin 	71000, 71500, 72100, 72600, 73000, 73400, 73800, 74200, 74600, 75000,
282eb982001SEduardo Valentin 	/* Index 820 - 829 */
283eb982001SEduardo Valentin 	75400, 75800, 76200, 76600, 77000, 77400, 77800, 78200, 78600, 79000,
284eb982001SEduardo Valentin 	/* Index 830 - 839 */
285eb982001SEduardo Valentin 	79400, 79800, 80200, 80600, 81000, 81400, 81800, 82200, 82600, 83000,
286eb982001SEduardo Valentin 	/* Index 840 - 849 */
287eb982001SEduardo Valentin 	83400, 83800, 84200, 84600, 85000, 85400, 85800, 86200, 86600, 87000,
288eb982001SEduardo Valentin 	/* Index 850 - 859 */
289eb982001SEduardo Valentin 	87400, 87800, 88200, 88600, 89000, 89400, 89800, 90200, 90600, 91000,
290eb982001SEduardo Valentin 	/* Index 860 - 869 */
291eb982001SEduardo Valentin 	91400, 91800, 92200, 92600, 93000, 93400, 93800, 94200, 94600, 95000,
292eb982001SEduardo Valentin 	/* Index 870 - 879 */
293eb982001SEduardo Valentin 	95400, 95800, 96200, 96600, 97000, 97500, 98100, 98600, 99000, 99400,
294eb982001SEduardo Valentin 	/* Index 880 - 889 */
295eb982001SEduardo Valentin 	99800, 100200, 100600, 101000, 101400, 101800, 102200, 102600, 103000,
296eb982001SEduardo Valentin 	103400,
297eb982001SEduardo Valentin 	/* Index 890 - 899 */
298eb982001SEduardo Valentin 	103800, 104200, 104600, 105000, 105400, 105800, 106200, 106600, 107000,
299eb982001SEduardo Valentin 	107400,
300eb982001SEduardo Valentin 	/* Index 900 - 909 */
301eb982001SEduardo Valentin 	107800, 108200, 108600, 109000, 109400, 109800, 110200, 110600, 111000,
302eb982001SEduardo Valentin 	111400,
303eb982001SEduardo Valentin 	/* Index 910 - 919 */
304eb982001SEduardo Valentin 	111800, 112200, 112600, 113000, 113400, 113800, 114200, 114600, 115000,
305eb982001SEduardo Valentin 	115400,
306eb982001SEduardo Valentin 	/* Index 920 - 929 */
307eb982001SEduardo Valentin 	115800, 116200, 116600, 117000, 117400, 117800, 118200, 118600, 119000,
308eb982001SEduardo Valentin 	119400,
309eb982001SEduardo Valentin 	/* Index 930 - 939 */
310eb982001SEduardo Valentin 	119800, 120200, 120600, 121000, 121400, 121800, 122400, 122600, 123000,
311eb982001SEduardo Valentin 	123400,
312eb982001SEduardo Valentin 	/* Index 940 - 945 */
313*d86910b9SBartlomiej Zolnierkiewicz 	123800, 124200, 124600, 124900, 125000, 125000,
314eb982001SEduardo Valentin };
315eb982001SEduardo Valentin 
316eb982001SEduardo Valentin /* OMAP54xx ES2.0 data */
317eb982001SEduardo Valentin const struct ti_bandgap_data omap5430_data = {
318eb982001SEduardo Valentin 	.features = TI_BANDGAP_FEATURE_TSHUT_CONFIG |
319eb982001SEduardo Valentin 			TI_BANDGAP_FEATURE_FREEZE_BIT |
320eb982001SEduardo Valentin 			TI_BANDGAP_FEATURE_TALERT |
321eb982001SEduardo Valentin 			TI_BANDGAP_FEATURE_COUNTER_DELAY |
322e9a90d04SKeerthy 			TI_BANDGAP_FEATURE_HISTORY_BUFFER |
323e9a90d04SKeerthy 			TI_BANDGAP_FEATURE_ERRATA_813,
324eb982001SEduardo Valentin 	.fclock_name = "l3instr_ts_gclk_div",
325eb982001SEduardo Valentin 	.div_ck_name = "l3instr_ts_gclk_div",
326eb982001SEduardo Valentin 	.conv_table = omap5430_adc_to_temp,
327eb982001SEduardo Valentin 	.adc_start_val = OMAP5430_ADC_START_VALUE,
328eb982001SEduardo Valentin 	.adc_end_val = OMAP5430_ADC_END_VALUE,
329eb982001SEduardo Valentin 	.expose_sensor = ti_thermal_expose_sensor,
330eb982001SEduardo Valentin 	.remove_sensor = ti_thermal_remove_sensor,
331eb982001SEduardo Valentin 	.report_temperature = ti_thermal_report_sensor_temperature,
332eb982001SEduardo Valentin 	.sensors = {
333eb982001SEduardo Valentin 		{
334eb982001SEduardo Valentin 		.registers = &omap5430_mpu_temp_sensor_registers,
335eb982001SEduardo Valentin 		.ts_data = &omap5430_mpu_temp_sensor_data,
336eb982001SEduardo Valentin 		.domain = "cpu",
337eb982001SEduardo Valentin 		.register_cooling = ti_thermal_register_cpu_cooling,
338eb982001SEduardo Valentin 		.unregister_cooling = ti_thermal_unregister_cpu_cooling,
339eb982001SEduardo Valentin 		.slope_pcb = OMAP_GRADIENT_SLOPE_W_PCB_5430_CPU,
340eb982001SEduardo Valentin 		.constant_pcb = OMAP_GRADIENT_CONST_W_PCB_5430_CPU,
341eb982001SEduardo Valentin 		},
342eb982001SEduardo Valentin 		{
343eb982001SEduardo Valentin 		.registers = &omap5430_gpu_temp_sensor_registers,
344eb982001SEduardo Valentin 		.ts_data = &omap5430_gpu_temp_sensor_data,
345eb982001SEduardo Valentin 		.domain = "gpu",
346eb982001SEduardo Valentin 		.slope_pcb = OMAP_GRADIENT_SLOPE_W_PCB_5430_GPU,
347eb982001SEduardo Valentin 		.constant_pcb = OMAP_GRADIENT_CONST_W_PCB_5430_GPU,
348eb982001SEduardo Valentin 		},
349eb982001SEduardo Valentin 		{
350eb982001SEduardo Valentin 		.registers = &omap5430_core_temp_sensor_registers,
351eb982001SEduardo Valentin 		.ts_data = &omap5430_core_temp_sensor_data,
352eb982001SEduardo Valentin 		.domain = "core",
353eb982001SEduardo Valentin 		},
354eb982001SEduardo Valentin 	},
355eb982001SEduardo Valentin 	.sensor_count = 3,
356eb982001SEduardo Valentin };
357