diff options
author | Peng Fan <Peng.Fan@freescale.com> | 2015-05-21 09:09:58 +0800 |
---|---|---|
committer | Peng Fan <Peng.Fan@freescale.com> | 2015-06-12 09:12:06 +0800 |
commit | f907b7642860d984beddcf10ff686a8636202087 (patch) | |
tree | 50c5d6de2675c71b093bc54f970c9d759e89e2a7 | |
parent | 0130e6433130fb5b10c7821f476673d9c94a033b (diff) | |
download | u-boot-imx-f907b7642860d984beddcf10ff686a8636202087.zip u-boot-imx-f907b7642860d984beddcf10ff686a8636202087.tar.gz u-boot-imx-f907b7642860d984beddcf10ff686a8636202087.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.
Conflicts:
drivers/thermal/imx_thermal.c
Signed-off-by: Peng Fan <Peng.Fan@freescale.com>
(cherry picked from commit f02e68977da7d91d347f6015a5301fc82d72878f)
(cherry picked from commit 5bf7dc588d3311a5493fe66cba9b36a239f3ddfd)
-rw-r--r-- | arch/arm/cpu/armv7/mx6/soc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/cpu/armv7/mx6/soc.c b/arch/arm/cpu/armv7/mx6/soc.c index 6af6b4c..9aacc18 100644 --- a/arch/arm/cpu/armv7/mx6/soc.c +++ b/arch/arm/cpu/armv7/mx6/soc.c @@ -50,8 +50,8 @@ struct scu_regs { #define TEMPERATURE_HOT 80 #define TEMPERATURE_MAX 125 #define FACTOR0 10000000 -#define FACTOR1 16549 -#define FACTOR2 4445388 +#define FACTOR1 15423 +#define FACTOR2 4148468 #define OFFSET 3580661 #define MEASURE_FREQ 327 |