Thermal: imx: correct critical trip temperature setting
authorAnson Huang <b20788@freescale.com>
Fri, 20 Jun 2014 07:03:06 +0000 (15:03 +0800)
committerZhang Rui <rui.zhang@intel.com>
Tue, 1 Jul 2014 01:22:28 +0000 (09:22 +0800)
commitd0f9d64a0b8fb3399ca8dd0d54f4d305492c9217
treedfc65ef5f7f99cde5f49591481b9a0e056e76a9b
parentdd354b84d47ec8ca53686bdb3cc1aecdeb75bef5
Thermal: imx: correct critical trip temperature setting

On latest i.MX6 SOC with thermal calibration data of 0x5A100000,
the critical trip temperature will be an invalid value and
cause system auto shutdown as below log:

thermal thermal_zone0: critical temperature reached(42 C),shutting down

So, with universal formula for thermal sensor, only room
temperature point is calibrated, which means the calibration
data read from fuse only has valid data of bit [31:20], others
are all 0, the critical trip point temperature can NOT depend
on the hot point calibration data, here we set it to 20 C higher
than default passive temperature.

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