]> 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)
commit9e05e0204cd199575bc9683d656eb211ebd143d7
treed6f9714469190ebf456472480b8c6b9b011136d5
parent0776ae6ef561d1868485fe56acc009c3aa21196d
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