]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
clk: mediatek: mt8183: convert CLK_XTAL to CLK_PAD_CLK26M
authorDavid Lechner <dlechner@baylibre.com>
Tue, 10 Mar 2026 15:32:22 +0000 (10:32 -0500)
committerDavid Lechner <dlechner@baylibre.com>
Tue, 24 Mar 2026 16:04:01 +0000 (11:04 -0500)
Replace all uses of CLK_XTAL with CLK_PAD_CLK26M.

This avoids declaring the same parent clock two different ways and will
eventually let us remove CLK_PARENT_XTAL completely.

Reviewed-by: Julien Stephan <jstephan@baylibre.com>
Link: https://patch.msgid.link/20260310-clk-mtk-parent-cleanup-v1-9-66175ca8f637@baylibre.com
Signed-off-by: David Lechner <dlechner@baylibre.com>
drivers/clk/mediatek/clk-mt8183.c

index 6158441fb957069719362edb768d67c32993f1c3..7b2d796bc6ce09dd4f053624a1c497e912973982 100644 (file)
@@ -76,7 +76,7 @@ static const struct mtk_pll_data apmixed_plls[] = {
 };
 
 #define FIXED_CLK0(_id, _rate)                                         \
-       FIXED_CLK(_id, CLK_XTAL, CLK_PARENT_XTAL, _rate)
+       FIXED_CLK(_id, CLK_PAD_CLK26M, CLK_PARENT_EXT, _rate)
 
 #define FIXED_CLK1(_id, _rate)                                         \
        FIXED_CLK(_id, CLK_TOP_UNIVPLL, CLK_PARENT_TOPCKGEN, _rate)
@@ -605,7 +605,6 @@ static const struct mtk_composite top_muxes[] = {
 };
 
 static const struct mtk_clk_tree mt8183_clk_tree = {
-       .xtal_rate = 26 * MHZ,
        .pll_parent = EXT_PARENT(CLK_PAD_CLK26M),
        .ext_clk_rates = ext_clock_rates,
        .num_ext_clks = ARRAY_SIZE(ext_clock_rates),