From: Julien Stephan Date: Mon, 2 Feb 2026 12:08:12 +0000 (+0100) Subject: clk: mediatek: implement GATE_FLAGS macro X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5f2111e9ff79c85ec389c2a2bb75eae9118fe897;p=thirdparty%2Fu-boot.git clk: mediatek: implement GATE_FLAGS macro Add helper macro for mtk_gate, the same way, there are macros for FIXED_CLK, MUX and FACTOR. Signed-off-by: Julien Stephan --- diff --git a/drivers/clk/mediatek/clk-mtk.h b/drivers/clk/mediatek/clk-mtk.h index e618e982e8b..f3d2377aee4 100644 --- a/drivers/clk/mediatek/clk-mtk.h +++ b/drivers/clk/mediatek/clk-mtk.h @@ -243,6 +243,14 @@ struct mtk_gate { u32 flags; }; +#define GATE_FLAGS(_id, _parent, _regs, _shift, _flags) { \ + .id = _id, \ + .parent = _parent, \ + .regs = _regs, \ + .shift = _shift, \ + .flags = _flags, \ + } + /* struct mtk_clk_tree - clock tree */ struct mtk_clk_tree { unsigned long xtal_rate;