[PATCH 5/7] clk: imx: Add imx_clk_gate4_flags

Sascha Hauer s.hauer at pengutronix.de
Wed Aug 19 15:45:09 EDT 2020


Needed for further clock driver updates, taken from Linux Kernel.

Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
---
 drivers/clk/imx/clk.h | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/drivers/clk/imx/clk.h b/drivers/clk/imx/clk.h
index 32e7c5cbb7..02270cdf0f 100644
--- a/drivers/clk/imx/clk.h
+++ b/drivers/clk/imx/clk.h
@@ -141,6 +141,12 @@ static inline struct clk *imx_clk_gate4(const char *name, const char *parent,
 	return clk_gate2(name, parent, reg, shift, 0x3, CLK_OPS_PARENT_ENABLE);
 }
 
+static inline struct clk *imx_clk_gate4_flags(const char *name, const char *parent,
+		void __iomem *reg, u8 shift, unsigned long flags)
+{
+	return clk_gate2(name, parent, reg, shift, 0x3, flags | CLK_OPS_PARENT_ENABLE);
+}
+
 static inline struct clk *imx_clk_gate_shared(const char *name, const char *parent,
 					      const char *shared)
 {
-- 
2.28.0




More information about the barebox mailing list