]> git.baikalelectronics.ru Git - kernel.git/commit
thermal: qoriq: Update the settings for TMUv2
authorYuantian Tang <andy.tang@nxp.com>
Tue, 26 May 2020 06:02:12 +0000 (14:02 +0800)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Fri, 29 May 2020 18:26:51 +0000 (20:26 +0200)
commit156d3d52607e655832d3d7bbae8bf4a51f9866be
treed6f9714469190ebf456472480b8c6b9b011136d5
parent2a257997657280fdb3205ade843aa5983307f9a0
thermal: qoriq: Update the settings for TMUv2

For TMU v2, TMSAR registers need to be set properly to get the
accurate temperature values.
Also the temperature read needs to be converted to degree Celsius
since it is in degrees Kelvin.

Signed-off-by: Yuantian Tang <andy.tang@nxp.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20200526060212.4118-1-andy.tang@nxp.com
drivers/thermal/qoriq_thermal.c