]> git.baikalelectronics.ru Git - uboot.git/commit
thermal: imx_tmu: Check the TEMP range for iMX8MM
authorPeng Fan <peng.fan@nxp.com>
Sun, 3 May 2020 14:19:50 +0000 (22:19 +0800)
committerStefano Babic <sbabic@denx.de>
Sun, 10 May 2020 18:55:20 +0000 (20:55 +0200)
commit07cf4ec22f035c6a73ff544f645f7f9985e1fcf4
tree43b5ebce38795d6275b88c836f98127963776ab1
parent80ff0c20a3773ec6b95e7fcb88dd1007e58f0cae
thermal: imx_tmu: Check the TEMP range for iMX8MM

On iMX8MM, the V flag in TRISTR register only reflect the state of SNSR
value, not the calibrated TEMP value. So checking this flag is not
reliable. Per IC suggestion, change to read the TEMP/AVG_TEMP directly
and check whether it in valid range 10-125C.

Signed-off-by: Ye Li <ye.li@nxp.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
drivers/thermal/imx_tmu.c