OSDN Git Service

clk: mediatek: clk-mt8192: Add clock mux notifier for mfg_pll_sel
authorAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Tue, 27 Sep 2022 10:11:28 +0000 (12:11 +0200)
committerChen-Yu Tsai <wenst@chromium.org>
Thu, 29 Sep 2022 04:22:14 +0000 (12:22 +0800)
commit116151bd95d5050581c8f77be7fe91f0cedfb32a
tree7af24b806c282488de931835e538f62876f0ad8c
parent341d2035fac07d710e1035f9922d97d96ddfa295
clk: mediatek: clk-mt8192: Add clock mux notifier for mfg_pll_sel

Following the changes that were done for mt8183, add a clock notifier
for the GPU PLL selector mux: this allows safe clock rate changes by
temporarily reparenting the GPU to a safe clock (clk26m) while the
MFGPLL is reprogrammed and stabilizes.

Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Reviewed-by: Chen-Yu Tsai <wenst@chromium.org>
Link: https://lore.kernel.org/r/20220927101128.44758-11-angelogioacchino.delregno@collabora.com
Signed-off-by: Chen-Yu Tsai <wenst@chromium.org>
drivers/clk/mediatek/clk-mt8192.c