clk: mediatek: Add MUX_FLAGS macro
Subsystems (2)
PATCH v4 1/3 clk: mediatek: Add MUX_FLAGS macro
From: Jasper Mattsson <[email protected]>
This is required to mark outputs of certain MUXes as CLK_IS_CRITICAL.
Signed-off-by Jasper Mattsson <[email protected]>
Acked-by Mars Cheng <[email protected]>
Signed-off-by Matthias Brugger <[email protected]>
--- drivers/clk/mediatek/clk-mtk.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-)
drivers/clk/mediatek/clk-mtk.h +6 -2
@@ -111,7 +111,11 @@ struct mtk_composite {MUX_GATE_FLAGS (_id, _name, _parents, _reg, _shift, _width, \ _gate, CLK_SET_RATE_PARENT) -#define MUX (_id, _name, _parents, _reg, _shift, _width) { \ +#define MUX (_id, _name, _parents, _reg, _shift, _width) \ + MUX_FLAGS(_id, _name, _parents, _reg, \ + _shift, _width, CLK_SET_RATE_PARENT) + +#define MUX_FLAGS (_id, _name, _parents, _reg, _shift, _width, _flags) { \ .id = _id, \ .name = _name, \ .mux_reg = _reg, \
@@ -121,7 +125,7 @@ struct mtk_composite { .divider_shift = -1, \ .parent_names = _parents, \ .num_parents = ARRAY_SIZE(_parents), \ - .flags = CLK_SET_RATE_PARENT, \ + .flags = _flags, \ } #define DIV_GATE(_id, _name, _parent, _gate_reg, _gate_shift, _div_reg, \
Signature · 1 line
2.20.1
Quoting [email protected] (2019-02-14 08:32:18)
Quoted 8 lines
From: Jasper Mattsson <[email protected]>
This is required to mark outputs of certain MUXes as
CLK_IS_CRITICAL.Signed-off-by Jasper Mattsson <[email protected]>Acked-by Mars Cheng <[email protected]>Signed-off-by Matthias Brugger <[email protected]>---
Applied to clk-next