From: Peng Fan Date: Mon, 30 Dec 2019 08:56:25 +0000 (+0800) Subject: clk: imx: add imx_clk_mux2_flags X-Git-Tag: v2020.10~425^2~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6ddde48b490330c09e239c561adc8349bfe0244f;p=platform%2Fkernel%2Fu-boot.git clk: imx: add imx_clk_mux2_flags Add imx_clk_mux2_flags which will be used by i.MX8MP Signed-off-by: Peng Fan --- diff --git a/drivers/clk/imx/clk.h b/drivers/clk/imx/clk.h index 07dcf94..60f2870 100644 --- a/drivers/clk/imx/clk.h +++ b/drivers/clk/imx/clk.h @@ -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)