diff options
-rw-r--r-- | drivers/clk/imx/clk.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/drivers/clk/imx/clk.h b/drivers/clk/imx/clk.h index d69c4bbf3597..8076ec040f37 100644 --- a/drivers/clk/imx/clk.h +++ b/drivers/clk/imx/clk.h | |||
@@ -123,6 +123,13 @@ static inline struct clk *imx_clk_gate(const char *name, const char *parent, | |||
123 | shift, 0, &imx_ccm_lock); | 123 | shift, 0, &imx_ccm_lock); |
124 | } | 124 | } |
125 | 125 | ||
126 | static inline struct clk *imx_clk_gate_flags(const char *name, const char *parent, | ||
127 | void __iomem *reg, u8 shift, unsigned long flags) | ||
128 | { | ||
129 | return clk_register_gate(NULL, name, parent, flags | CLK_SET_RATE_PARENT, reg, | ||
130 | shift, 0, &imx_ccm_lock); | ||
131 | } | ||
132 | |||
126 | static inline struct clk *imx_clk_gate_dis(const char *name, const char *parent, | 133 | static inline struct clk *imx_clk_gate_dis(const char *name, const char *parent, |
127 | void __iomem *reg, u8 shift) | 134 | void __iomem *reg, u8 shift) |
128 | { | 135 | { |
@@ -137,6 +144,13 @@ static inline struct clk *imx_clk_gate2(const char *name, const char *parent, | |||
137 | shift, 0x3, 0, &imx_ccm_lock, NULL); | 144 | shift, 0x3, 0, &imx_ccm_lock, NULL); |
138 | } | 145 | } |
139 | 146 | ||
147 | static inline struct clk *imx_clk_gate2_flags(const char *name, const char *parent, | ||
148 | void __iomem *reg, u8 shift, unsigned long flags) | ||
149 | { | ||
150 | return clk_register_gate2(NULL, name, parent, flags | CLK_SET_RATE_PARENT, reg, | ||
151 | shift, 0x3, 0, &imx_ccm_lock, NULL); | ||
152 | } | ||
153 | |||
140 | static inline struct clk *imx_clk_gate2_shared(const char *name, | 154 | static inline struct clk *imx_clk_gate2_shared(const char *name, |
141 | const char *parent, void __iomem *reg, u8 shift, | 155 | const char *parent, void __iomem *reg, u8 shift, |
142 | unsigned int *share_count) | 156 | unsigned int *share_count) |