]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
soc: mediatek: mtk-dvfsrc: Add support for DVFSRCv4 and MT8196
authorAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Mon, 24 Nov 2025 11:06:57 +0000 (12:06 +0100)
committerAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Thu, 8 Jan 2026 09:27:49 +0000 (10:27 +0100)
commit75cf308fee7e4b3038741f96fd90afc3bd871e64
treed1d7805dfe56141a9eabd3d23daec42ffdc2372a
parent7cf9db2aca552f5f537d46f1e52e0ab08ddc2d64
soc: mediatek: mtk-dvfsrc: Add support for DVFSRCv4 and MT8196

Add support for the DVFSRC Version 4 by adding new functions for
vcore/dram levels (in v4, called gears instead), and for readout
of pre-programmed dvfsrc_opp entries, corresponding to each gear.

In the probe function, for v4, the curr_opps is initialized from
the get_hw_opps() function instead of platform data.

In order to make use of the new DVFSRCv4 code, also add support
for the MediaTek MT8196 SoC.

Co-developed-by: Nicolas Frattaroli <nicolas.frattaroli@collabora.com>
Signed-off-by: Nicolas Frattaroli <nicolas.frattaroli@collabora.com>
Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
drivers/soc/mediatek/mtk-dvfsrc.c