thermal/drivers/loongson2: Add Loongson-2K2000 support
authorBinbin Zhou <zhoubinbin@loongson.cn>
Tue, 23 Apr 2024 01:59:26 +0000 (09:59 +0800)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Tue, 23 Apr 2024 10:40:30 +0000 (12:40 +0200)
commit734b5def91b594d3aa1147d60c45eded139ce2eb
tree8aeb3346e9b51c6a974c218d6adccd86e1917d23
parentc8c4353685778e75e186103411e9d01a4a3f2b90
thermal/drivers/loongson2: Add Loongson-2K2000 support

The Loongson-2K2000 and Loongson-2K1000 have similar thermal sensors,
except that the temperature is read differently.

In particular, the temperature output registers of the Loongson-2K2000
are defined in the chip configuration domain and are read in a different
way.

Signed-off-by: Binbin Zhou <zhoubinbin@loongson.cn>
Acked-by: Huacai Chen <chenhuacai@loongson.cn>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/fdbfdcc3231a36a4ee0bcf1377ddcbd6f8c944b5.1713837379.git.zhoubinbin@loongson.cn
drivers/thermal/loongson2_thermal.c