summaryrefslogtreecommitdiffstats
path: root/drivers/clk/imx/clk.h
diff options
context:
space:
mode:
authorAndrey Smirnov <andrew.smirnov@gmail.com>2016-11-09 08:14:02 -0800
committerSascha Hauer <s.hauer@pengutronix.de>2017-01-11 08:07:00 +0100
commit674015bf83c1009a3bfcd81df9207e578cf8288f (patch)
treef3cd687364efba55f620ac73d77b68df2c881439 /drivers/clk/imx/clk.h
parentc30a463d644b49edb4af9a6dec2065c824a9d32b (diff)
downloadbarebox-674015bf83c1009a3bfcd81df9207e578cf8288f.tar.gz
barebox-674015bf83c1009a3bfcd81df9207e578cf8288f.tar.xz
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 <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/clk/imx/clk.h')
-rw-r--r--drivers/clk/imx/clk.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/clk/imx/clk.h b/drivers/clk/imx/clk.h
index fd43fc262..970f65c7d 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)
{