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 <jstephan@baylibre.com>
This commit is contained in:
Julien Stephan
2026-02-18 12:01:18 -06:00
committed by Tom Rini
parent 2517e2b524
commit 5f2111e9ff
+8
View File
@@ -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;