]> www.infradead.org Git - users/jedix/linux-maple.git/commit
thermal/drivers/mediatek/lvts_thermal: Provide default calibration data
authorChen-Yu Tsai <wenst@chromium.org>
Thu, 20 Jun 2024 09:23:03 +0000 (17:23 +0800)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Mon, 15 Jul 2024 11:31:39 +0000 (13:31 +0200)
commita5d4afb92eca216b27f662d77e91f2d464345c6e
treeda1ad021222bf812098b00bb0f0b43b508f7d24b
parent97e32381d0fc6c2602a767b0c46e15eb2b75971d
thermal/drivers/mediatek/lvts_thermal: Provide default calibration data

On some pre-production hardware, the SoCs do not contain calibration
data for the thermal sensors. The downstream drivers provide default
values that sort of work, instead of having the thermal sensors not
work at all.

Port the default values to the upstream driver. These values are from
the ChromeOS kernels, which sadly do not cover the MT7988.

Signed-off-by: Chen-Yu Tsai <wenst@chromium.org>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Link: https://lore.kernel.org/r/20240620092306.2352606-1-wenst@chromium.org
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
drivers/thermal/mediatek/lvts_thermal.c