From 674015bf83c1009a3bfcd81df9207e578cf8288f Mon Sep 17 00:00:00 2001 From: Andrey Smirnov Date: Wed, 9 Nov 2016 08:14:02 -0800 Subject: i.MX: clk: Port imx_clk_mux_flags from Linux Port imx_clk_mux_flags from Linux, to simplify clock code porting. Signed-off-by: Andrey Smirnov Signed-off-by: Sascha Hauer --- drivers/clk/imx/clk.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'drivers/clk/imx/clk.h') diff --git a/drivers/clk/imx/clk.h b/drivers/clk/imx/clk.h index fd43fc2622..970f65c7d1 100644 --- a/drivers/clk/imx/clk.h +++ b/drivers/clk/imx/clk.h @@ -30,6 +30,14 @@ static inline struct clk *imx_clk_fixed_factor(const char *name, return clk_fixed_factor(name, parent, mult, div, CLK_SET_RATE_PARENT); } +static inline struct clk *imx_clk_mux_flags(const char *name, void __iomem *reg, + u8 shift, u8 width, + const char **parents, u8 num_parents, + unsigned long flags) +{ + return clk_mux(name, reg, shift, width, parents, num_parents, flags); +} + static inline struct clk *imx_clk_mux(const char *name, void __iomem *reg, u8 shift, u8 width, const char **parents, u8 num_parents) { -- cgit v1.2.3