[U-Boot] [PATCH v6 3/4] mx6: thermal: Check cpu temperature via thermal sensor

nitin.garg at freescale.com nitin.garg at freescale.com
Fri Nov 14 21:13:05 CET 2014


From: Nitin Garg <nitin.garg at freescale.com>

read cpu temperature using the onchip thermal
sensor.

Signed-off-by: Nitin Garg <nitin.garg at freescale.com>
---
 arch/arm/imx-common/cpu.c |    6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/arch/arm/imx-common/cpu.c b/arch/arm/imx-common/cpu.c
index 09fc227..441c484 100644
--- a/arch/arm/imx-common/cpu.c
+++ b/arch/arm/imx-common/cpu.c
@@ -17,6 +17,7 @@
 #include <asm/arch/sys_proto.h>
 #include <asm/arch/crm_regs.h>
 #include <ipu_pixfmt.h>
+#include <imx_thermal.h>
 
 #ifdef CONFIG_FSL_ESDHC
 #include <fsl_esdhc.h>
@@ -141,6 +142,11 @@ int print_cpuinfo(void)
 		(cpurev & 0x000F0) >> 4,
 		(cpurev & 0x0000F) >> 0,
 		mxc_get_clock(MXC_ARM_CLK) / 1000000);
+
+#if defined(CONFIG_MX6) && defined(CONFIG_IMX6_THERMAL)
+	check_cpu_temperature();
+#endif
+
 	printf("Reset cause: %s\n", get_reset_cause());
 	return 0;
 }
-- 
1.7.9.5



More information about the U-Boot mailing list