thermal/drivers/mediatek: Control buffer enablement tweaks
authorMarkus Schneider-Pargmann <msp@baylibre.com>
Fri, 27 Jan 2023 15:44:43 +0000 (16:44 +0100)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Mon, 13 Mar 2023 11:20:34 +0000 (12:20 +0100)
commit33140e668b10200b775779f302b143b32e6ae7ca
tree71aeae4e6a325e5f69c33c1a0cf5382f11cff0c5
parentdfd7956f0031f9c5d758813a63e37c9cb08d33fa
thermal/drivers/mediatek: Control buffer enablement tweaks

Add logic in order to be able to turn on the control buffer on MT8365.
This change now allows to have control buffer support for MTK_THERMAL_V1,
and it allows to define the register offset, and mask used to enable it.

Signed-off-by: Markus Schneider-Pargmann <msp@baylibre.com>
Signed-off-by: Fabien Parent <fparent@baylibre.com>
Signed-off-by: Amjad Ouled-Ameur <aouledameur@baylibre.com>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Link: https://lore.kernel.org/r/20221018-up-i350-thermal-bringup-v9-2-55a1ae14af74@baylibre.com
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
drivers/thermal/mediatek/auxadc_thermal.c