]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
clk: mediaTek: mt7623: add clock tree type flags
authorDavid Lechner <dlechner@baylibre.com>
Fri, 10 Jul 2026 18:56:20 +0000 (13:56 -0500)
committerDavid Lechner <dlechner@baylibre.com>
Wed, 22 Jul 2026 17:01:17 +0000 (12:01 -0500)
Add clock tree type flags to the mt7623 clock tree structures. These
will be used later for parent lookup.

Link: https://patch.msgid.link/20260710-mtk-clk-parent-lookup-improvements-v2-4-f3f3a4a28dca@baylibre.com
Signed-off-by: David Lechner <dlechner@baylibre.com>
drivers/clk/mediatek/clk-mt7623.c

index 0a302b405e20e89d675bf35776cbbb8a375840f8..348b8c1e85f96af9d762b8ce0b15926273d5398a 100644 (file)
@@ -1009,6 +1009,7 @@ static const struct mtk_clk_tree mt7623_apmixedsys_clk_tree = {
        .id_offs_map_size = ARRAY_SIZE(pll_id_offs_map),
        .plls = apmixed_plls,
        .num_plls = ARRAY_SIZE(apmixed_plls),
+       .type = MTK_CLK_TREE_APMIXED,
 };
 
 static const struct mtk_clk_tree mt7623_topckgen_clk_tree = {
@@ -1024,6 +1025,7 @@ static const struct mtk_clk_tree mt7623_topckgen_clk_tree = {
        .num_fclks = ARRAY_SIZE(top_fixed_clks),
        .num_fdivs = ARRAY_SIZE(top_fixed_divs),
        .num_muxes = ARRAY_SIZE(top_muxes),
+       .type = MTK_CLK_TREE_TOPCKGEN,
 };
 
 static int mt7623_mcucfg_probe(struct udevice *dev)
@@ -1163,6 +1165,7 @@ U_BOOT_DRIVER(mtk_clk_apmixedsys) = {
        .name = "mt7623-clock-apmixedsys",
        .id = UCLASS_CLK,
        .of_match = mt7623_apmixed_compat,
+       .bind = mtk_common_clk_parent_bind,
        .probe = mt7623_apmixedsys_probe,
        .priv_auto      = sizeof(struct mtk_clk_priv),
        .ops = &mtk_clk_apmixedsys_ops,
@@ -1173,6 +1176,7 @@ U_BOOT_DRIVER(mtk_clk_topckgen) = {
        .name = "mt7623-clock-topckgen",
        .id = UCLASS_CLK,
        .of_match = mt7623_topckgen_compat,
+       .bind = mtk_common_clk_parent_bind,
        .probe = mt7623_topckgen_probe,
        .priv_auto      = sizeof(struct mtk_clk_priv),
        .ops = &mtk_clk_topckgen_ops,