diff options
author | Bai Ping <ping.bai@nxp.com> | 2019-01-22 10:31:41 +0100 |
---|---|---|
committer | Stephen Boyd <sboyd@kernel.org> | 2019-02-21 21:41:16 +0100 |
commit | 8646d4dcc7fb2e6e771f8cee500950f3f69aa1ea (patch) | |
tree | 1dbd430e9df6b5fdf7be1d09aadac9e87ad8ddd7 /drivers/clk/imx/clk.h | |
parent | clk: imx5: add imx5_SCC2_IPG_GATE (diff) | |
download | linux-8646d4dcc7fb2e6e771f8cee500950f3f69aa1ea.tar.xz linux-8646d4dcc7fb2e6e771f8cee500950f3f69aa1ea.zip |
clk: imx: Add PLLs driver for imx8mm soc
New PLLs are introduced on i.MX8M Mini SOC.
PLL1416X is Integer PLL, PLL1443X is a Frac PLL.
Signed-off-by: Bai Ping <ping.bai@nxp.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Diffstat (limited to 'drivers/clk/imx/clk.h')
-rw-r--r-- | drivers/clk/imx/clk.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/drivers/clk/imx/clk.h b/drivers/clk/imx/clk.h index 2e442d8389a5..0aa48d3e3b95 100644 --- a/drivers/clk/imx/clk.h +++ b/drivers/clk/imx/clk.h @@ -27,6 +27,30 @@ enum imx_sccg_pll_type { SCCG_PLL2, }; +enum imx_pll14xx_type { + PLL_1416X, + PLL_1443X, +}; + +/* NOTE: Rate table should be kept sorted in descending order. */ +struct imx_pll14xx_rate_table { + unsigned int rate; + unsigned int pdiv; + unsigned int mdiv; + unsigned int sdiv; + unsigned int kdiv; +}; + +struct imx_pll14xx_clk { + enum imx_pll14xx_type type; + const struct imx_pll14xx_rate_table *rate_table; + int rate_count; + int flags; +}; + +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, const char *parent, void __iomem *base); |