]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
imx: mx6: add get_cpu_temp_grade to obtain cpu temperature grade from OTP
authorTim Harvey <tharvey@gateworks.com>
Mon, 18 May 2015 13:56:45 +0000 (06:56 -0700)
committerLothar Waßmann <LW@KARO-electronics.de>
Tue, 1 Sep 2015 13:03:55 +0000 (15:03 +0200)
commit73b147a8c5885c3c934dc214ac18ef4ece9db28e
treedb002fbde33f89ffd1c998d3f0f67bfdce0588f7
parent203f58ec3e71de25c649b12c30f74e043b69a482
imx: mx6: add get_cpu_temp_grade to obtain cpu temperature grade from OTP

The MX6 has a temperature grade defined by OCOTP_MEM0[7:6] which is at 0x480
in the Fusemap Description Table in the reference manual. Return this value
as well as min/max temperature based on the value.

Note that the IMX6SDLRM and the IMX6SXRM do not indicate this in the
their Fusemap Description Table however Freescale has confirmed that these
eFUSE bits match the description within the IMX6DQRM and that they will
be added to the next revision of the respective reference manuals.

This has been tested with IMX6 Automative and Industrial parts.

Signed-off-by: Tim Harvey <tharvey@gateworks.com>
arch/arm/cpu/armv7/mx6/soc.c
arch/arm/include/asm/arch-mx6/sys_proto.h
include/imx_thermal.h