]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
clk: imx: add imx_clk_mux2_flags
authorPeng Fan <peng.fan@nxp.com>
Mon, 30 Dec 2019 08:56:25 +0000 (16:56 +0800)
committerStefano Babic <sbabic@denx.de>
Wed, 8 Jan 2020 12:20:09 +0000 (13:20 +0100)
Add imx_clk_mux2_flags which will be used by i.MX8MP

Signed-off-by: Peng Fan <peng.fan@nxp.com>
drivers/clk/imx/clk.h

index 07dcf94ea58668a4bded25a114ec6a2924120b56..60f287046b9ee102e97b4ad62c5753f75e9750b4 100644 (file)
@@ -125,6 +125,16 @@ static inline struct clk *imx_clk_mux_flags(const char *name,
                                width, 0);
 }
 
+static inline struct clk *imx_clk_mux2_flags(const char *name,
+               void __iomem *reg, u8 shift, u8 width,
+               const char * const *parents,
+               int num_parents, unsigned long flags)
+{
+       return clk_register_mux(NULL, name, parents, num_parents,
+                       flags | CLK_SET_RATE_NO_REPARENT | CLK_OPS_PARENT_ENABLE,
+                       reg, shift, width, 0);
+}
+
 static inline struct clk *imx_clk_mux(const char *name, void __iomem *reg,
                        u8 shift, u8 width, const char * const *parents,
                        int num_parents)