clk: imx: Introduce clk_register_gate2()
authorFabio Estevam <fabio.estevam@nxp.com>
Fri, 12 Aug 2016 18:26:55 +0000 (15:26 -0300)
committerStephen Boyd <sboyd@codeaurora.org>
Fri, 19 Aug 2016 19:53:41 +0000 (12:53 -0700)
Introduce imx_clk_gate2_shared2() which is similar to the existing
imx_clk_gate2_shared() and passes CLK_OPS_PARENT_ENABLE flag, which
is useful for i.MX7 shared clocks.

Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
drivers/clk/imx/clk.h

index a81c0385ed646c1eb81535c7620d9646ff8132fd..3799ff82a9b487e85358d2dc57c8dc8fe203ea6f 100644 (file)
@@ -134,6 +134,15 @@ static inline struct clk *imx_clk_gate2_shared(const char *name,
                        shift, 0x3, 0, &imx_ccm_lock, share_count);
 }
 
+static inline struct clk *imx_clk_gate2_shared2(const char *name,
+               const char *parent, void __iomem *reg, u8 shift,
+               unsigned int *share_count)
+{
+       return clk_register_gate2(NULL, name, parent, CLK_SET_RATE_PARENT |
+                                 CLK_OPS_PARENT_ENABLE, reg, shift, 0x3, 0,
+                                 &imx_ccm_lock, share_count);
+}
+
 static inline struct clk *imx_clk_gate2_cgr(const char *name,
                const char *parent, void __iomem *reg, u8 shift, u8 cgr_val)
 {
This page took 0.036379 seconds and 5 git commands to generate.