@@ -219,6 +219,27 @@ static int __init init_8226(struct tsens_priv *priv)
219
219
return init_common (priv );
220
220
}
221
221
222
+ static int __init init_8909 (struct tsens_priv * priv )
223
+ {
224
+ int i ;
225
+
226
+ for (i = 0 ; i < priv -> num_sensors ; ++ i )
227
+ priv -> sensor [i ].slope = 3000 ;
228
+
229
+ priv -> sensor [0 ].p1_calib_offset = 0 ;
230
+ priv -> sensor [0 ].p2_calib_offset = 0 ;
231
+ priv -> sensor [1 ].p1_calib_offset = -10 ;
232
+ priv -> sensor [1 ].p2_calib_offset = -6 ;
233
+ priv -> sensor [2 ].p1_calib_offset = 0 ;
234
+ priv -> sensor [2 ].p2_calib_offset = 0 ;
235
+ priv -> sensor [3 ].p1_calib_offset = -9 ;
236
+ priv -> sensor [3 ].p2_calib_offset = -9 ;
237
+ priv -> sensor [4 ].p1_calib_offset = -8 ;
238
+ priv -> sensor [4 ].p2_calib_offset = -10 ;
239
+
240
+ return init_common (priv );
241
+ }
242
+
222
243
static int __init init_8939 (struct tsens_priv * priv ) {
223
244
priv -> sensor [0 ].slope = 2911 ;
224
245
priv -> sensor [1 ].slope = 2789 ;
@@ -255,7 +276,7 @@ static int __init init_9607(struct tsens_priv *priv)
255
276
return init_common (priv );
256
277
}
257
278
258
- /* v0.1: 8226, 8916, 8939, 8974, 9607 */
279
+ /* v0.1: 8226, 8909, 8916, 8939, 8974, 9607 */
259
280
260
281
static struct tsens_features tsens_v0_1_feat = {
261
282
.ver_major = VER_0_1 ,
@@ -323,6 +344,19 @@ struct tsens_plat_data data_8226 = {
323
344
.fields = tsens_v0_1_regfields ,
324
345
};
325
346
347
+ static const struct tsens_ops ops_8909 = {
348
+ .init = init_8909 ,
349
+ .calibrate = tsens_calibrate_common ,
350
+ .get_temp = get_temp_common ,
351
+ };
352
+
353
+ struct tsens_plat_data data_8909 = {
354
+ .num_sensors = 5 ,
355
+ .ops = & ops_8909 ,
356
+ .feat = & tsens_v0_1_feat ,
357
+ .fields = tsens_v0_1_regfields ,
358
+ };
359
+
326
360
static const struct tsens_ops ops_8916 = {
327
361
.init = init_common ,
328
362
.calibrate = calibrate_8916 ,
0 commit comments