From: Peng Fan Date: Mon, 30 Dec 2019 10:09:55 +0000 Subject: [PATCH 19/22] clk: imx: add imx_clk_mux2_flags In-Reply-To: <20191230102802.10899-1-peng.fan@nxp.com> References: <20191230102802.10899-1-peng.fan@nxp.com> Message-ID: <20191230102802.10899-20-peng.fan@nxp.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Add imx_clk_mux2_flags which will be used by i.MX8MP Signed-off-by: Peng Fan Cc: Lukasz Majewski --- drivers/clk/imx/clk.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/drivers/clk/imx/clk.h b/drivers/clk/imx/clk.h index 07dcf94ea5..60f287046b 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) -- 2.16.4