diff options
author | Peng Fan <peng.fan@nxp.com> | 2019-12-30 16:56:25 +0800 |
---|---|---|
committer | Stefano Babic <sbabic@denx.de> | 2020-01-08 13:20:09 +0100 |
commit | 6ddde48b490330c09e239c561adc8349bfe0244f (patch) | |
tree | df30fe274be16ac9b8643a9aeb88ef1afc2c8237 /drivers/clk | |
parent | 19957ee33d821f70738a7214436e269a610fe9ef (diff) | |
download | u-boot-6ddde48b490330c09e239c561adc8349bfe0244f.zip u-boot-6ddde48b490330c09e239c561adc8349bfe0244f.tar.gz u-boot-6ddde48b490330c09e239c561adc8349bfe0244f.tar.bz2 |
clk: imx: add imx_clk_mux2_flags
Add imx_clk_mux2_flags which will be used by i.MX8MP
Signed-off-by: Peng Fan <peng.fan@nxp.com>
Diffstat (limited to 'drivers/clk')
-rw-r--r-- | drivers/clk/imx/clk.h | 10 |
1 files changed, 10 insertions, 0 deletions
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) |