Update the coefficients of Tboard and Tdiode thermal zone
for simulating skin temperature.
The coefficients are calibrated and given by thermal team.
bug
1429335
bug
1439470
Change-Id: I2e721b43ce3efafd8e805cb5f06016c3aa152312
Signed-off-by: Robert Shih <rshih@nvidia.com>
Reviewed-on: http://git-master/r/355368
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
Tested-by: Diwakar Tundlam <dtundlam@nvidia.com>
{
.dev_data = "Tdiode",
.coeffs = {
- 2, 1, 1, 1,
- 1, 1, 1, 1,
- 1, 1, 1, 0,
- 1, 1, 0, 0,
- 0, 0, -1, -7
+ 3, 0, 0, 0,
+ 1, 0, -1, 0,
+ 1, 0, 0, 1,
+ 1, 0, 0, 0,
+ 0, 1, 2, 2
},
},
{
.dev_data = "Tboard",
.coeffs = {
- -11, -7, -5, -3,
- -3, -2, -1, 0,
- 0, 0, 1, 1,
- 1, 2, 2, 3,
- 4, 6, 11, 18
+ 1, 1, 2, 8,
+ 6, -8, -13, -9,
+ -9, -8, -17, -18,
+ -18, -16, 2, 17,
+ 15, 27, 42, 60
},
},
};
static struct therm_est_data skin_data = {
.num_trips = ARRAY_SIZE(skin_trips),
.trips = skin_trips,
- .toffset = 9793,
.polling_period = 1100,
.passive_delay = 15000,
.tc1 = 10,
board_info.board_id == BOARD_E1922) {
skin_data.ndevs = ARRAY_SIZE(tn8ffd_skin_devs);
skin_data.devs = tn8ffd_skin_devs;
+ skin_data.toffset = 4034;
} else {
skin_data.ndevs = ARRAY_SIZE(skin_devs);
skin_data.devs = skin_devs;
+ skin_data.toffset = 9793;
}
balanced_throttle_register(&skin_throttle, "skin-balanced");