thermal/drivers/mtk: Add support for MT7986 and MT7981
authorDaniel Golle <daniel@makrotopia.org>
Wed, 18 Jan 2023 15:40:58 +0000 (15:40 +0000)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Tue, 24 Jan 2023 10:44:01 +0000 (11:44 +0100)
commit248da1fc8418c732e98726fe570d4db01385562d
treeb225159e2d496194b2e0ef5ba556e5488837819d
parent4f2ee0aa2e70622e01c06686a967a4dab6fb7f05
thermal/drivers/mtk: Add support for MT7986 and MT7981

Add support for V3 generation thermal found in MT7986 and MT7981 SoCs.
Brings code to assign values from efuse as well as new function to
convert raw temperature to millidegree celsius, as found in MediaTek's
SDK sources (but cleaned up and de-duplicated)

[1]: https://git01.mediatek.com/plugins/gitiles/openwrt/feeds/mtk-openwrt-feeds/+/baf36c7eef477aae1f8f2653b6c29e2caf48475b

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Link: https://lore.kernel.org/r/2d341fc45266217249586eb4bd3be3ac4ca83a12.1674055882.git.daniel@makrotopia.org
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
drivers/thermal/mtk_thermal.c