diff options
author | Abel Vesa <abel.vesa@nxp.com> | 2019-12-11 12:25:43 +0300 |
---|---|---|
committer | Shawn Guo <shawnguo@kernel.org> | 2019-12-11 14:19:41 +0300 |
commit | 556f788010adfd4e06959ded48e7b0d89f9024b8 (patch) | |
tree | 5012943d0a8e01da70e2859ef0cb90dd39326cd5 /drivers/clk/imx/clk.h | |
parent | 0394d404c3320893080aac57ab2462e62c04d2d9 (diff) | |
download | linux-556f788010adfd4e06959ded48e7b0d89f9024b8.tar.xz |
clk: imx: pllv1: Switch to clk_hw based API
Switch the imx_clk_pllv1 register function to clk_hw based API, rename
accordingly and add a macro for clk based legacy. This allows us to
move closer to a clear split between consumer and provider clk APIs.
Signed-off-by: Abel Vesa <abel.vesa@nxp.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
Diffstat (limited to 'drivers/clk/imx/clk.h')
-rw-r--r-- | drivers/clk/imx/clk.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/clk/imx/clk.h b/drivers/clk/imx/clk.h index 62b7c14b3cf4..9dd5ea585fa3 100644 --- a/drivers/clk/imx/clk.h +++ b/drivers/clk/imx/clk.h @@ -110,10 +110,13 @@ extern struct imx_pll14xx_clk imx_1443x_dram_pll; #define imx_clk_mux(name, reg, shift, width, parents, num_parents) \ to_clk(imx_clk_hw_mux(name, reg, shift, width, parents, num_parents)) +#define imx_clk_pllv1(type, name, parent, base) \ + to_clk(imx_clk_hw_pllv1(type, name, parent, base)) + struct clk *imx_clk_pll14xx(const char *name, const char *parent_name, void __iomem *base, const struct imx_pll14xx_clk *pll_clk); -struct clk *imx_clk_pllv1(enum imx_pllv1_type type, const char *name, +struct clk_hw *imx_clk_hw_pllv1(enum imx_pllv1_type type, const char *name, const char *parent, void __iomem *base); struct clk *imx_clk_pllv2(const char *name, const char *parent, |