diff options
author | Peng Fan <peng.fan@nxp.com> | 2019-12-12 03:58:42 +0100 |
---|---|---|
committer | Shawn Guo <shawnguo@kernel.org> | 2019-12-23 04:50:30 +0100 |
commit | 10c34b50f240d0e6507567e86b7bb1a79abd9ff0 (patch) | |
tree | 70be8ba6e0962eef22131331dd0dca0d8ee81a94 /drivers/clk/imx/clk.h | |
parent | clk: imx7up: Rename the clks to hws (diff) | |
download | linux-10c34b50f240d0e6507567e86b7bb1a79abd9ff0.tar.xz linux-10c34b50f240d0e6507567e86b7bb1a79abd9ff0.zip |
clk: imx: clk-pll14xx: Switch to clk_hw based API
Switch the imx_clk_pll14xx 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.
Reviewed-by: Abel Vesa <abel.vesa@nxp.com>
Signed-off-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 | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/clk/imx/clk.h b/drivers/clk/imx/clk.h index afc794714992..caee661664c1 100644 --- a/drivers/clk/imx/clk.h +++ b/drivers/clk/imx/clk.h @@ -127,6 +127,13 @@ extern struct imx_pll14xx_clk imx_1443x_dram_pll; struct clk *imx_clk_pll14xx(const char *name, const char *parent_name, void __iomem *base, const struct imx_pll14xx_clk *pll_clk); +#define imx_clk_pll14xx(name, parent_name, base, pll_clk) \ + to_clk(imx_clk_hw_pll14xx(name, parent_name, base, pll_clk)) + +struct clk_hw *imx_clk_hw_pll14xx(const char *name, const char *parent_name, + void __iomem *base, + const struct imx_pll14xx_clk *pll_clk); + struct clk_hw *imx_clk_hw_pllv1(enum imx_pllv1_type type, const char *name, const char *parent, void __iomem *base); |