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)
commit58213bed4ba20ba533c733babe330a294608e2eb
treea803b6ed3c3400e9c2c96d392791e1e9440188a3
parent13d5427d162c9c90a4d90dc0bd85ea1eae51ef54
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]