summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Stephan <[email protected]>2026-02-02 13:08:12 +0100
committerTom Rini <[email protected]>2026-02-18 12:01:18 -0600
commit5f2111e9ff79c85ec389c2a2bb75eae9118fe897 (patch)
tree08de54c130c9c2ceadc9efa40f834b896694ad3f
parent2517e2b524e8af3d7ac7285c55c3867603429155 (diff)
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 <[email protected]>
-rw-r--r--drivers/clk/mediatek/clk-mtk.h8
1 files changed, 8 insertions, 0 deletions
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;