]> 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, 11 May 2017 10:32:35 +0000 (12:32 +0200)
commit52c2e165c480ef48a424f3ccf397ed67c97d6836
tree20de8964a8a2b16a8e0f4c5d072788e4346237c0
parent0ed02dd68638014d6e810ad1fbecc39269619620
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