summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorPeng Fan <Peng.Fan@freescale.com>2015-05-21 09:09:58 +0800
committerYe Li <ye.li@nxp.com>2017-03-14 21:27:09 +0800
commit40d2612bdfdc805d8f924854329de8adb4f38902 (patch)
treea476fa775a3d74b3ef43bb0ff4b0f1f969447e8d /drivers
parent52a95d753328ce4df03ca7acae3295ceab53c66b (diff)
downloadu-boot-imx-40d2612bdfdc805d8f924854329de8adb4f38902.zip
u-boot-imx-40d2612bdfdc805d8f924854329de8adb4f38902.tar.gz
u-boot-imx-40d2612bdfdc805d8f924854329de8adb4f38902.tar.bz2
MLK-11035 imx: mx6 update thermal slope factors
From temp sensor guys: " I confirmed the math with him(had do the accuracy study) today. The new, final equation is: Tmeas = (Nmeas - n1) / slope + t1 + offset n1= fused room count t1= 25 offset=3.580661 slope= 0.4148468 – 0.0015423*n1 " 87723f903454aaf17336e0fe9098ea7911c19f3c update the thermal with not accurate slope parameters. This patch fix it. Signed-off-by: Peng Fan <Peng.Fan@freescale.com> (cherry picked from commit 0d4904f5929cecd66f0b60cf8ebdcb0e6a2f733e)
Diffstat (limited to 'drivers')
-rw-r--r--drivers/thermal/imx_thermal.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/thermal/imx_thermal.c b/drivers/thermal/imx_thermal.c
index 741a3f7..123248d 100644
--- a/drivers/thermal/imx_thermal.c
+++ b/drivers/thermal/imx_thermal.c
@@ -22,8 +22,8 @@
/* board will busyloop until this many degrees C below CPU max temperature */
#define TEMPERATURE_HOT_DELTA 5 /* CPU maxT - 5C */
#define FACTOR0 10000000
-#define FACTOR1 16549
-#define FACTOR2 4445388
+#define FACTOR1 15423
+#define FACTOR2 4148468
#define OFFSET 3580661
#define MEASURE_FREQ 327
#define TEMPERATURE_MIN -40