]> git.sur5r.net Git - u-boot/commit
imx: thermal: update imx6 thermal driver according new equation
authorPeng Fan <peng.fan@nxp.com>
Tue, 18 Apr 2017 12:41:52 +0000 (20:41 +0800)
committerStefano Babic <sbabic@denx.de>
Thu, 18 May 2017 09:23:31 +0000 (11:23 +0200)
commit4fac41716840cb235a740d4d220f46a545a7632d
treef24b29010a1cea9e485e0175deb1886a1329e24d
parent2096da452b32c7fc52e9fbd6c38e874ce635d664
imx: thermal: update imx6 thermal driver according new equation

>From IC guys:
"
After a thorough accuracy study of the Temp sense circuit,
we found that with our current equation, an average part can
read 7 degrees lower than a known forced temperature.
We also found out that the standard variance was around 2C;
which is the tightest distribution that we could create.
We need to change the temp sense equation to center the average
part around the target temperature.
"

New equation:
Tmeas = (Nmeas - n1) / slope + t1 + offset
n1= fused room count
t1= 25
offset=3.580661
slope= 0.4148468 – 0.0015423*n1

According the new equation, update the thermal driver.
c1 and c2 changed to u64 type and update comments.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
Cc: Stefano Babic <sbabic@denx.de>
drivers/thermal/imx_thermal.c