Skip to content

Commit 7954c92

Browse files
Hsin-Te Yuandlezcano
authored andcommitted
thermal/drivers/mediatek/lvts_thermal: Add coeff for mt8192
In order for lvts_raw_to_temp to function properly on mt8192, temperature coefficients for mt8192 need to be added. Fixes: 2887322 ("thermal/drivers/mediatek/lvts_thermal: Add mt8192 support") Signed-off-by: Hsin-Te Yuan <yuanhsinte@chromium.org> Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org> Link: https://lore.kernel.org/r/20240416-lvts_thermal-v2-1-f8a36882cc53@chromium.org
1 parent 63d23fb commit 7954c92

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

drivers/thermal/mediatek/lvts_thermal.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1530,11 +1530,15 @@ static const struct lvts_data mt7988_lvts_ap_data = {
15301530
static const struct lvts_data mt8192_lvts_mcu_data = {
15311531
.lvts_ctrl = mt8192_lvts_mcu_data_ctrl,
15321532
.num_lvts_ctrl = ARRAY_SIZE(mt8192_lvts_mcu_data_ctrl),
1533+
.temp_factor = LVTS_COEFF_A_MT8195,
1534+
.temp_offset = LVTS_COEFF_B_MT8195,
15331535
};
15341536

15351537
static const struct lvts_data mt8192_lvts_ap_data = {
15361538
.lvts_ctrl = mt8192_lvts_ap_data_ctrl,
15371539
.num_lvts_ctrl = ARRAY_SIZE(mt8192_lvts_ap_data_ctrl),
1540+
.temp_factor = LVTS_COEFF_A_MT8195,
1541+
.temp_offset = LVTS_COEFF_B_MT8195,
15381542
};
15391543

15401544
static const struct lvts_data mt8195_lvts_mcu_data = {

0 commit comments

Comments
 (0)