thermal: imx: update formula for thermal sensor
authorAnson Huang <b20788@freescale.com>
Wed, 12 Feb 2014 10:06:35 +0000 (18:06 +0800)
committerZhang Rui <rui.zhang@intel.com>
Tue, 8 Apr 2014 01:01:37 +0000 (09:01 +0800)
commit749e8be71d6126b9219f17230e6d0c3eef5191a7
treec7f0233dbffaaac26b7f2bfde41184b6b6b0a21e
parent455c6fdbd219161bd09b1165f11699d6d73de11c
thermal: imx: update formula for thermal sensor

Thermal sensor used to need two calibration points which are
in fuse map to get a slope for converting thermal sensor's raw
data to real temperature in degree C. Due to the chip calibration
limitation, hardware team provides an universal formula to get
real temperature from internal thermal sensor raw data:

Slope = 0.4297157 - (0.0015976 * 25C fuse);

Update the formula, as there will be no hot point calibration
data in fuse map from now on.

Signed-off-by: Anson Huang <b20788@freescale.com>
Acked-by: Shawn Guo <shawn.guo@linaro.org>
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
drivers/thermal/imx_thermal.c