summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnson Huang <b20788@freescale.com>2013-04-15 08:54:42 +0800
committerAnson Huang <b20788@freescale.com>2013-04-16 17:55:04 +0800
commit6f994b957c0749478843c021d6bb2be0917a7c2f (patch)
tree003825017224cde15f5922603fcf530fb1f0ab3d
parentecc7d124fe49c9ade7f4acc2b09deebfe4dd444f (diff)
downloadu-boot-imx-6f994b957c0749478843c021d6bb2be0917a7c2f.zip
u-boot-imx-6f994b957c0749478843c021d6bb2be0917a7c2f.tar.gz
u-boot-imx-6f994b957c0749478843c021d6bb2be0917a7c2f.tar.bz2
ENGR00258651 mx6: update thermal equation for i.MX6sl
New thermal equation is working for all i.MX6 series SOCs, so update it for i.MX6SL as well. Signed-off-by: Anson Huang <b20788@freescale.com>
-rw-r--r--cpu/arm_cortexa8/mx6/generic.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cpu/arm_cortexa8/mx6/generic.c b/cpu/arm_cortexa8/mx6/generic.c
index 253b5e0..9aea30d 100644
--- a/cpu/arm_cortexa8/mx6/generic.c
+++ b/cpu/arm_cortexa8/mx6/generic.c
@@ -892,11 +892,11 @@ static inline int read_cpu_temperature(void)
hot_temp = fuse & 0xff;
/*
- * Only when it is i.MX6Q and high temperature calibration
+ * Only when high temperature calibration
* data not used, we use universal equation to get thermal
* sensor's ratio.
*/
-#if (!defined(CONFIG_MX6SL) && !defined(USE_CALIBRATION))
+#ifndef USE_CALIBRATION
/*
* The universal equation for thermal sensor
* is slope = 0.4297157 - (0.0015976 * 25C fuse),