imx6: imx: thermal: use CPU temperature grade info for thresholds
authorLuka Perkov <luka@openwrt.org>
Mon, 28 Dec 2015 04:56:07 +0000 (04:56 +0000)
committerLuka Perkov <luka@openwrt.org>
Mon, 28 Dec 2015 04:56:07 +0000 (04:56 +0000)
commit158b5b4231e6e579d76b6fea0eef6bcd87ff4e1b
tree1f10f8dffadc682fa6dc3e6c14a18e00a10e7a39
parentf0070d495e59f79735d4721a7329db4e43deb27e
imx6: imx: thermal: use CPU temperature grade info for thresholds

This is a backport of a2291badc355d58ead5c19ae0609468947416040 from thermal-soc
accepted upstream.

The IMX6Q/IMX6DL SoC's have a 2-bit temperature grade stored in OTP. Instead
of assuming 85C for passive cooling threshold and 100C for critical base
these thresholds off the thermal gade max CPU temperature:
 - passive threshold: max - 10C
 - critical threshold: max - 5C

Signed-off-by: Tim Harvey <tharvey@gateworks.com>
SVN-Revision: 48011
target/linux/imx6/patches-4.3/045-imx-thermal-use-cpu-temperature-grade-info-for-thresholds [new file with mode: 0644]