clk: mediatek: mt7629: fix gate offset of peri clock tree
authorSam Shih <sam.shih@mediatek.com>
Tue, 14 Jan 2025 10:42:55 +0000 (18:42 +0800)
committerTom Rini <trini@konsulko.com>
Tue, 21 Jan 2025 15:28:43 +0000 (09:28 -0600)
commit544916713943001446e627b2066f06d8aab608e5
tree3924da17a097e4be2d88692555d6c1e6a8395bd8
parentc33c245e30667ee0f69edba1f50ee696e2aaaf43
clk: mediatek: mt7629: fix gate offset of peri clock tree

The clock definitions in mt7629-clk.h indicate that CLK_PERIBUS_SEL is the
first element in the pericfg clock tree and also serves as a clock mux,
unlike other clocks belonging to the clock gate in pericfg.

This make the clock consumer get a wrong clock gate during request a clock
from <&pericfg>.

Since CLK_PERIBUS_SEL clock is not required in U-Boot, add a clock gate
offset for the pericfg clock tree to resolve this problem.

Signed-off-by: Sam Shih <sam.shih@mediatek.com>
Signed-off-by: Weijie Gao <weijie.gao@mediatek.com>
drivers/clk/mediatek/clk-mt7629.c