]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
pmdomain: mediatek: Add support for MFlexGraphics
authorNicolas Frattaroli <nicolas.frattaroli@collabora.com>
Fri, 17 Oct 2025 15:31:12 +0000 (17:31 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Wed, 19 Nov 2025 17:06:50 +0000 (18:06 +0100)
commitf08e7a4e8d6ac4de677727af352ea33c6ce9f444
tree290082c96239b48c43a7170cf0fbbcf812688e49
parent19e668e81e273b43b28608e8e05f4fb090a32f5a
pmdomain: mediatek: Add support for MFlexGraphics

Various MediaTek SoCs use GPU integration silicon named "MFlexGraphics"
by MediaTek. On the MT8196 and MT6991 SoCs, interacting with this
integration silicon is required to power on the GPU.

This glue silicon is in the form of an embedded microcontroller running
special-purpose firmware, which autonomously adjusts clocks and
regulators.

Implement a driver, modelled as a pmdomain driver with a
set_performance_state operation, to support these SoCs.

The driver also exposes the actual achieved clock rate, as read back
from the MCU, as common clock framework clocks, by acting as a clock
provider as well.

Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Signed-off-by: Nicolas Frattaroli <nicolas.frattaroli@collabora.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/pmdomain/mediatek/Kconfig
drivers/pmdomain/mediatek/Makefile
drivers/pmdomain/mediatek/mtk-mfg-pmdomain.c [new file with mode: 0644]