diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2017-02-01 16:02:08 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2017-02-06 07:31:48 +0100 |
commit | f5409645e9977727d4512a474cbdfe9caae40790 (patch) | |
tree | f9b33e29724c50c94c5921cc06bd1cf4f87510f8 | |
parent | f573cd5e4075d65657fb68793f689eace5863cc6 (diff) | |
download | barebox-f5409645e9977727d4512a474cbdfe9caae40790.tar.gz barebox-f5409645e9977727d4512a474cbdfe9caae40790.tar.xz |
clk: i.MX: Pass CLK_OPS_PARENT_ENABLE where necessary
CLK_OPS_PARENT_ENABLE was missing on some i.MX7 specific clocks.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r-- | drivers/clk/imx/clk.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/clk/imx/clk.h b/drivers/clk/imx/clk.h index 4f80a32621..019114848f 100644 --- a/drivers/clk/imx/clk.h +++ b/drivers/clk/imx/clk.h @@ -19,7 +19,7 @@ static inline struct clk *imx_clk_divider_np(const char *name, const char *paren static inline struct clk *imx_clk_divider2(const char *name, const char *parent, void __iomem *reg, u8 shift, u8 width) { - return clk_divider(name, parent, reg, shift, width, 0); + return clk_divider(name, parent, reg, shift, width, CLK_OPS_PARENT_ENABLE); } static inline struct clk *imx_clk_divider_table(const char *name, @@ -53,7 +53,7 @@ static inline struct clk *imx_clk_mux(const char *name, void __iomem *reg, static inline struct clk *imx_clk_mux2(const char *name, void __iomem *reg, u8 shift, u8 width, const char **parents, u8 num_parents) { - return clk_mux(name, reg, shift, width, parents, num_parents, 0); + return clk_mux(name, reg, shift, width, parents, num_parents, CLK_OPS_PARENT_ENABLE); } static inline struct clk *imx_clk_mux_p(const char *name, void __iomem *reg, @@ -89,13 +89,13 @@ static inline struct clk *imx_clk_gate2_cgr(const char *name, const char *parent static inline struct clk *imx_clk_gate3(const char *name, const char *parent, void __iomem *reg, u8 shift) { - return clk_gate(name, parent, reg, shift, CLK_SET_RATE_PARENT, 0); + return clk_gate(name, parent, reg, shift, CLK_SET_RATE_PARENT | CLK_OPS_PARENT_ENABLE, 0); } static inline struct clk *imx_clk_gate4(const char *name, const char *parent, void __iomem *reg, u8 shift) { - return clk_gate2(name, parent, reg, shift, 0x3, 0); + return clk_gate2(name, parent, reg, shift, 0x3, CLK_OPS_PARENT_ENABLE); } struct clk *imx_clk_pllv1(const char *name, const char *parent, |