thermal: mediatek: Add tsensor support for V2 thermal system
authorHenry Yen <henry.yen@mediatek.com>
Thu, 30 Apr 2020 09:14:34 +0000 (17:14 +0800)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Fri, 31 Jul 2020 07:59:13 +0000 (09:59 +0200)
commit89945047b1666c021c4222ef285239c1275f8e24
tree22f73c9c32b7862d4a76db7b4509da48a377e6fc
parent54bf1e5a629dfbd0ee1b1e286d4e8119be23b902
thermal: mediatek: Add tsensor support for V2 thermal system

This patch adds full support for ver 2 thermal system (e.g., MT7622 SoC).
The new changes include reading calibration data, converting temperature
and hardware initialization which are specific for version 2 system.
Each platform decides which function to call according to its version.

Fixes: 3966be3c08c3 ("thermal: mediatek: add support for MT7622 SoC")
Signed-off-by: Henry Yen <henry.yen@mediatek.com>
Reviewed-by: Matthias Brugger <matthias.bgg@gmail.com>
Tested-By: Frank Wunderlich <frank-w@public-files.de>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/1588238074-19338-3-git-send-email-henry.yen@mediatek.com
drivers/thermal/mtk_thermal.c