[PATCH v2 8/9] thermal/drivers/mediatek/lvts_thermal: Add MT8196 support
AngeloGioacchino Del Regno
angelogioacchino.delregno at collabora.com
Fri Aug 1 00:28:46 PDT 2025
Il 30/07/25 17:21, Laura Nao ha scritto:
> Add LVTS driver support for MT8196.
>
> Signed-off-by: Laura Nao <laura.nao at collabora.com>
When changing commit 4/9, this also needs to follow with
const struct lvts_platform_ops lvts_platform_ops_v2 = {
.lvts_raw_to_temp = lvts_raw_to_temp,
.lvts_temp_to_raw = lvts_temp_to_raw_v2,
};
and
static const struct lvts_data mt8196_lvts_mcu_data = {
.lvts_ctrl = mt8196_lvts_mcu_data_ctrl,
.num_lvts_ctrl = ARRAY_SIZE(mt8196_lvts_mcu_data_ctrl),
.temp_factor = LVTS_COEFF_A_MT8196,
.temp_offset = LVTS_COEFF_B_MT8196,
.gt_calib_bit_offset = 0,
.def_calibration = 14437,
.num_cal_offsets = 2,
.msr_offset = LVTS_MSR_OFFSET_MT8196,
.ops = lvts_platform_ops_v2,
};
static const struct lvts_data mt8196_lvts_ap_data = {
.lvts_ctrl = mt8196_lvts_ap_data_ctrl,
.num_lvts_ctrl = ARRAY_SIZE(mt8196_lvts_ap_data_ctrl),
.temp_factor = LVTS_COEFF_A_MT8196,
.temp_offset = LVTS_COEFF_B_MT8196,
.gt_calib_bit_offset = 0,
.def_calibration = 14437,
.num_cal_offsets = 2,
.msr_offset = LVTS_MSR_OFFSET_MT8196,
.ops = lvts_platform_ops_v2,
};
After which:
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno at collabora.com>
More information about the Linux-mediatek
mailing list