]> git.baikalelectronics.ru Git - kernel.git/commit
soc: mediatek: mtk-pm-domains: Allow probing vreg supply on two MFGs
authorAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Thu, 23 Jun 2022 12:38:49 +0000 (14:38 +0200)
committerMatthias Brugger <matthias.bgg@gmail.com>
Thu, 7 Jul 2022 10:07:23 +0000 (12:07 +0200)
commita2e660a8705165d1d875ffff93b6213c78f7cc8a
treeefa583b4afb71fdb42e36d39a9c1975c47886be6
parentcf5e0bed44dc5d403bd0468485f504da4f1b37d3
soc: mediatek: mtk-pm-domains: Allow probing vreg supply on two MFGs

MediaTek SoCs have multiple MFG power-domains, exclusively used for
the GPU which, in turn, requires external power supplies: make sure
to have the MTK_SCPD_DOMAIN_SUPPLY cap on the two topmost MFGs to
allow voting for regulators on/off upon usage of these power domains.

This also ensures that the SRAM is actually powered and that we're
not relying on the bootloader leaving this supply on when performing
the first (and latter) poweron sequence for these domains' sram.

Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Link: https://lore.kernel.org/r/20220623123850.110225-2-angelogioacchino.delregno@collabora.com
Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>
drivers/soc/mediatek/mt8183-pm-domains.h
drivers/soc/mediatek/mt8186-pm-domains.h
drivers/soc/mediatek/mt8192-pm-domains.h
drivers/soc/mediatek/mt8195-pm-domains.h