]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/commitdiff
arm: tegra: tn8-ffd: update TSkin coefficients
authorRobert Shih <rshih@nvidia.com>
Tue, 14 Jan 2014 05:38:59 +0000 (13:38 +0800)
committerDiwakar Tundlam <dtundlam@nvidia.com>
Thu, 16 Jan 2014 02:56:51 +0000 (18:56 -0800)
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>
arch/arm/mach-tegra/board-ardbeg-sensors.c

index 099ab48aac7a6c2ca18139e03b602b264d0987da..ea4a6ffd0895d9f39caa823eab546d26c0865693 100644 (file)
@@ -1161,21 +1161,21 @@ static struct therm_est_subdevice tn8ffd_skin_devs[] = {
        {
                .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
                },
        },
 };
@@ -1199,7 +1199,6 @@ static struct thermal_zone_params skin_tzp = {
 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,
@@ -1313,9 +1312,11 @@ static int __init ardbeg_skin_init(void)
                        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");