Skip to content

Commit 03c4fda

Browse files
Jasper Mattssonbebarino
authored andcommitted
clk: mediatek: Add MUX_FLAGS macro
This is required to mark outputs of certain MUXes as CLK_IS_CRITICAL. Signed-off-by: Jasper Mattsson <jasu@njomotys.info> Acked-by: Mars Cheng <mars.cheng@mediatek.com> Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com> Signed-off-by: Stephen Boyd <sboyd@kernel.org>
1 parent bfeffd1 commit 03c4fda

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

drivers/clk/mediatek/clk-mtk.h

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,11 @@ struct mtk_composite {
111111
MUX_GATE_FLAGS(_id, _name, _parents, _reg, _shift, _width, \
112112
_gate, CLK_SET_RATE_PARENT)
113113

114-
#define MUX(_id, _name, _parents, _reg, _shift, _width) { \
114+
#define MUX(_id, _name, _parents, _reg, _shift, _width) \
115+
MUX_FLAGS(_id, _name, _parents, _reg, \
116+
_shift, _width, CLK_SET_RATE_PARENT)
117+
118+
#define MUX_FLAGS(_id, _name, _parents, _reg, _shift, _width, _flags) { \
115119
.id = _id, \
116120
.name = _name, \
117121
.mux_reg = _reg, \
@@ -121,7 +125,7 @@ struct mtk_composite {
121125
.divider_shift = -1, \
122126
.parent_names = _parents, \
123127
.num_parents = ARRAY_SIZE(_parents), \
124-
.flags = CLK_SET_RATE_PARENT, \
128+
.flags = _flags, \
125129
}
126130

127131
#define DIV_GATE(_id, _name, _parent, _gate_reg, _gate_shift, _div_reg, \

0 commit comments

Comments
 (0)