summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Lechner <[email protected]>2026-07-10 13:56:40 -0500
committerDavid Lechner <[email protected]>2026-07-22 12:01:17 -0500
commitf518796ffd8682c3c73d02cde9c9f14f96e03260 (patch)
treea451eca7ae46fdf78fa35b441834885af660584d
parente3f5fd01d4301f75396723b85c7ee7bd89e2c10d (diff)
clk: mediatek: mt7629: remove mt7629_peri_clk_tree
Remove the mt7629_peri_clk_tree struct. Most of the fields are unused and we can just use mt7629_clk_tree instead as it has the required fields. Link: https://patch.msgid.link/20260710-mtk-clk-parent-lookup-improvements-v2-24-f3f3a4a28dca@baylibre.com Signed-off-by: David Lechner <[email protected]>
-rw-r--r--drivers/clk/mediatek/clk-mt7629.c18
1 files changed, 1 insertions, 17 deletions
diff --git a/drivers/clk/mediatek/clk-mt7629.c b/drivers/clk/mediatek/clk-mt7629.c
index 903e9d8ec81..b65d3ef2203 100644
--- a/drivers/clk/mediatek/clk-mt7629.c
+++ b/drivers/clk/mediatek/clk-mt7629.c
@@ -603,22 +603,6 @@ static const struct mtk_clk_tree mt7629_clk_tree = {
.num_ext_clks = ARRAY_SIZE(ext_clock_rates),
};
-static const struct mtk_clk_tree mt7629_peri_clk_tree = {
- .pll_parent = EXT_PARENT(CLK_PAD_CLK20M),
- .ext_clk_rates = ext_clock_rates,
- .num_ext_clks = ARRAY_SIZE(ext_clock_rates),
- .fdivs_offs = CLK_TOP_TO_USB3_SYS,
- .muxes_offs = CLK_TOP_AXI_SEL,
- .plls = apmixed_plls,
- .fclks = top_fixed_clks,
- .fdivs = top_fixed_divs,
- .muxes = top_muxes,
- .num_plls = ARRAY_SIZE(apmixed_plls),
- .num_fclks = ARRAY_SIZE(top_fixed_clks),
- .num_fdivs = ARRAY_SIZE(top_fixed_divs),
- .num_muxes = ARRAY_SIZE(top_muxes),
-};
-
static int mt7629_mcucfg_probe(struct udevice *dev)
{
void __iomem *base;
@@ -665,7 +649,7 @@ static int mt7629_infracfg_probe(struct udevice *dev)
static int mt7629_pericfg_probe(struct udevice *dev)
{
- return mtk_common_clk_gate_init(dev, &mt7629_peri_clk_tree, peri_cgs,
+ return mtk_common_clk_gate_init(dev, &mt7629_clk_tree, peri_cgs,
ARRAY_SIZE(peri_cgs), CLK_PERI_PWM1_PD);
}