[PATCH 0/7] clk: mediatek: clean up flags
David Lechner
dlechner at baylibre.com
Tue Feb 24 00:21:52 CET 2026
The main point of this series it to get rid of the CLK_BYPASS_XTAL flag.
It was a bit of a hack to allow mux clock parent arrays to contain both
CLK_XTAL and CLK_TOP_* clocks. It's usage doesn't work in all cases and
is easy to get wrong.
In the meantime, we have added CLK_PARENT_MIXED and struct mtk_parent to
handle mux clock parents properly. There just a few drivers that were
not making use of this yet, so those are converted. Then we can remove
the problematic flag.
There are also a couple of other patches to give better names to some
of the existing flags while we are cleaning things up.
Signed-off-by: David Lechner <dlechner at baylibre.com>
---
David Lechner (7):
clk: mediatek: rename HAVE_RST_BAR
clk: mediatek: rename CLK_DOMAIN_SCPSYS
clk: mediatek: add MUX_GATE_MIXED macros
clk: mediatek: mt7622: change to struct mtk_parent
clk: mediatek: mt7623: change to struct mtk_parent
clk: mediatek: mt7629: change to struct mtk_parent
clk: mediatek: remove use of CLK_BYPASS_XTAL flag
drivers/clk/mediatek/clk-mt7622.c | 334 ++++++++--------
drivers/clk/mediatek/clk-mt7623.c | 777 +++++++++++++++++++-------------------
drivers/clk/mediatek/clk-mt7629.c | 448 +++++++++++-----------
drivers/clk/mediatek/clk-mt7981.c | 2 +-
drivers/clk/mediatek/clk-mt7986.c | 2 +-
drivers/clk/mediatek/clk-mt7987.c | 3 +-
drivers/clk/mediatek/clk-mt7988.c | 3 +-
drivers/clk/mediatek/clk-mt8183.c | 12 +-
drivers/clk/mediatek/clk-mt8188.c | 6 +-
drivers/clk/mediatek/clk-mt8195.c | 6 +-
drivers/clk/mediatek/clk-mt8365.c | 4 +-
drivers/clk/mediatek/clk-mt8512.c | 4 +-
drivers/clk/mediatek/clk-mt8516.c | 4 +-
drivers/clk/mediatek/clk-mt8518.c | 4 +-
drivers/clk/mediatek/clk-mtk.c | 14 +-
drivers/clk/mediatek/clk-mtk.h | 16 +-
16 files changed, 820 insertions(+), 819 deletions(-)
---
base-commit: 8fd76675efbe7af785ccc1ba1ac8b9f7e10f6715
change-id: 20260223-clk-mtk-remove-clk-bypass-xtal-flag-c2e2c82aabb4
prerequisite-message-id: <20260217-mtk-mt8189-clocks-v2-0-cd381cd05251 at baylibre.com>
prerequisite-patch-id: 81f2dd4fd7c1632736c08180d6b9f6aef5fe1e7f
prerequisite-patch-id: 0414664c8d24f8303d238aa1c4389072ba9f8613
prerequisite-patch-id: b63492590bec532b0347be3b495cd1779b0ad3ce
prerequisite-patch-id: 9e03fea677d2d9b5ae6860e700f62b27db270e64
prerequisite-patch-id: 3d5661f9e55292a30f57617848a7b10e67844402
prerequisite-patch-id: ccbc73b2bc1dc41beb295604088d63773cea15ef
prerequisite-patch-id: b33a67f241d097c90de822f33c0f82b9de1890f7
Best regards,
--
David Lechner <dlechner at baylibre.com>
More information about the U-Boot
mailing list