]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
ENGR00256543 mx6: Update equation for thermal sensor on i.MX6DL
authorAnson Huang <b20788@freescale.com>
Fri, 29 Mar 2013 01:44:41 +0000 (09:44 +0800)
committerLothar Waßmann <LW@KARO-electronics.de>
Fri, 24 May 2013 06:35:59 +0000 (08:35 +0200)
Use universal equation and 25C's calibration data to
get thermal sensor's ratio on i.MX6DL.

Signed-off-by: Anson Huang <b20788@freescale.com>
drivers/mxc/thermal/thermal.c

index 21a87b71f5494d6863674124adde9ae65d58edd8..4931ce1fa25278906bd63b54618ba7c9fcb4b8f8 100644 (file)
@@ -883,13 +883,13 @@ static int anatop_thermal_counting_ratio(unsigned int fuse_data)
        raw_hot = (fuse_data & 0xfff00) >> 8;
        hot_temp = fuse_data & 0xff;
 
-       if (!calibration_valid && cpu_is_mx6q())
+       if (!calibration_valid && !cpu_is_mx6sl())
                /*
                 * The universal equation for thermal sensor
                 * is slope = 0.4297157 - (0.0015976 * 25C fuse),
                 * here we convert them to integer to make them
                 * easy for counting, FACTOR1 is 15976,
-                * FACTORs is 4297157. Our ratio = -100 * slope.
+                * FACTOR2 is 4297157. Our ratio = -100 * slope.
                 */
                ratio = ((FACTOR1 * raw_25c - FACTOR2) + 50000) / 100000;
        else