]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
soc: mediatek: mtk-dvfsrc: Write bandwidth to EMI DDR if present
authorAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Mon, 24 Nov 2025 11:06:56 +0000 (12:06 +0100)
committerAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Thu, 8 Jan 2026 09:27:49 +0000 (10:27 +0100)
commit7cf9db2aca552f5f537d46f1e52e0ab08ddc2d64
tree1a20d3d36a299d12d43adef2a604cf8dafbeecac
parentddb5862a43b1f40ca0a5cc16882277d8d07b966a
soc: mediatek: mtk-dvfsrc: Write bandwidth to EMI DDR if present

In preparation for adding support for DVFSRC Version 4, add a new
`has_emi_ddr` member to struct dvfsrc_soc_data: if true, write the
DRAM bandwidth both to the BW_AVG and to the newly defined EMI_BW
register, present only on DVFSRC v4.

Currently supported SoCs will not use this, as has_emi_ddr is left
out from their platform data, hence reading false.

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