thermal/drivers/qoriq: Support version 2.1
authorPeng Fan <peng.fan@nxp.com>
Tue, 16 May 2023 08:37:46 +0000 (16:37 +0800)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Mon, 26 Jun 2023 10:03:14 +0000 (12:03 +0200)
commitf12d60c81fceccddc012c746085f6cd87832d6ff
treeb516d9fc51271d5a266676fcffc6b74b63e4987c
parent9301575df2509ecf8bd66f601046afaff606b1d5
thermal/drivers/qoriq: Support version 2.1

i.MX93 use TMU version 2.1, which supports:
 - TRITSR_TP5(When this field is 1, you must add 0.5 K to the temperature
   that TEMP reports. For example, if TEMP is 300 K and TP5=1, then the
   final temperature is 300.5 K.)
 - Has 16 TTRCR register: Temperature Range Control (TTRCR0 - TTRCR15)

This patch is to add this support.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20230516083746.63436-4-peng.fan@oss.nxp.com
drivers/thermal/qoriq_thermal.c