Lines Matching +full:adc +full:- +full:tm
1 // SPDX-License-Identifier: GPL-2.0
7 #include <linux/nvmem-consumer.h>
11 /* ----- SROT ------ */
14 /* ----- TM ------ */
96 qfprom_cdata = (u32 *)qfprom_read(priv->dev, "calib"); in calibrate_8916()
100 qfprom_csel = (u32 *)qfprom_read(priv->dev, "calib_sel"); in calibrate_8916()
152 ret = nvmem_cell_read_variable_le_u32(priv->dev, "use_backup", &backup); in calibrate_8974_nvmem()
153 if (ret == -ENOENT) in calibrate_8974_nvmem()
154 dev_warn(priv->dev, "Please migrate to separate nvmem cells for calibration data\n"); in calibrate_8974_nvmem()
180 calib = (u32 *)qfprom_read(priv->dev, "calib"); in calibrate_8974()
184 bkp = (u32 *)qfprom_read(priv->dev, "calib_backup"); in calibrate_8974()
212 priv->sensor[0].slope = 2901; in init_8226()
213 priv->sensor[1].slope = 2846; in init_8226()
214 priv->sensor[2].slope = 3038; in init_8226()
215 priv->sensor[3].slope = 2955; in init_8226()
216 priv->sensor[4].slope = 2901; in init_8226()
217 priv->sensor[5].slope = 2846; in init_8226()
226 for (i = 0; i < priv->num_sensors; ++i) in init_8909()
227 priv->sensor[i].slope = 3000; in init_8909()
229 priv->sensor[0].p1_calib_offset = 0; in init_8909()
230 priv->sensor[0].p2_calib_offset = 0; in init_8909()
231 priv->sensor[1].p1_calib_offset = -10; in init_8909()
232 priv->sensor[1].p2_calib_offset = -6; in init_8909()
233 priv->sensor[2].p1_calib_offset = 0; in init_8909()
234 priv->sensor[2].p2_calib_offset = 0; in init_8909()
235 priv->sensor[3].p1_calib_offset = -9; in init_8909()
236 priv->sensor[3].p2_calib_offset = -9; in init_8909()
237 priv->sensor[4].p1_calib_offset = -8; in init_8909()
238 priv->sensor[4].p2_calib_offset = -10; in init_8909()
244 priv->sensor[0].slope = 2911; in init_8939()
245 priv->sensor[1].slope = 2789; in init_8939()
246 priv->sensor[2].slope = 2906; in init_8939()
247 priv->sensor[3].slope = 2763; in init_8939()
248 priv->sensor[4].slope = 2922; in init_8939()
249 priv->sensor[5].slope = 2867; in init_8939()
250 priv->sensor[6].slope = 2833; in init_8939()
251 priv->sensor[7].slope = 2838; in init_8939()
252 priv->sensor[8].slope = 2840; in init_8939()
253 /* priv->sensor[9].slope = 2852; */ in init_8939()
262 for (i = 0; i < priv->num_sensors; ++i) in init_9607()
263 priv->sensor[i].slope = 3000; in init_9607()
265 priv->sensor[0].p1_calib_offset = 1; in init_9607()
266 priv->sensor[0].p2_calib_offset = 1; in init_9607()
267 priv->sensor[1].p1_calib_offset = -4; in init_9607()
268 priv->sensor[1].p2_calib_offset = -2; in init_9607()
269 priv->sensor[2].p1_calib_offset = 4; in init_9607()
270 priv->sensor[2].p2_calib_offset = 8; in init_9607()
271 priv->sensor[3].p1_calib_offset = -3; in init_9607()
272 priv->sensor[3].p2_calib_offset = -5; in init_9607()
273 priv->sensor[4].p1_calib_offset = -4; in init_9607()
274 priv->sensor[4].p2_calib_offset = -4; in init_9607()
285 .adc = 1,
288 .trip_min_temp = -40000,
293 /* ----- SROT ------ */
300 /* ----- TM ------ */