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)
commit47fa116e5faec894f6238f87322c01dd41d21e23
treed6f9714469190ebf456472480b8c6b9b011136d5
parentb03628b73564cf54e05b7611e22d9886a8822877
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