]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit42aa47f1b3e76afdb8ceee94a2bb676497cff9ba
treec7f0233dbffaaac26b7f2bfde41184b6b6b0a21e
parent837ca78edf52818164c21c170b79badb0e52548b
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