diff options
author | Jacky Bai <ping.bai@nxp.com> | 2021-09-14 14:52:01 +0800 |
---|---|---|
committer | Abel Vesa <abel.vesa@nxp.com> | 2021-09-30 16:22:55 +0300 |
commit | 5f0601c47c336ae75aec9ed308b6c4428c7d179b (patch) | |
tree | 74d684d30755719d0c77b9536d726c700faddf23 /drivers/clk/imx/clk.h | |
parent | d48f12d9ae73c76f792eaaf057d4e64900730c0e (diff) | |
download | linux-5f0601c47c336ae75aec9ed308b6c4428c7d179b.tar.gz linux-5f0601c47c336ae75aec9ed308b6c4428c7d179b.tar.bz2 linux-5f0601c47c336ae75aec9ed308b6c4428c7d179b.zip |
clk: imx: Update the pllv4 to support imx8ulp
The PLLs used on i.MX8ULP is mostly the same as on i.MX7ULP,
except the PLL register offset is changed. Change the PLLv4
driver for code reuse on i.MX7ULP and i.MX8ULP.
Signed-off-by: Jacky Bai <ping.bai@nxp.com>
Reviewed-by: Abel Vesa <abel.vesa@nxp.com>
Link: https://lore.kernel.org/r/20210914065208.3582128-3-ping.bai@nxp.com
Signed-off-by: Abel Vesa <abel.vesa@nxp.com>
Diffstat (limited to 'drivers/clk/imx/clk.h')
-rw-r--r-- | drivers/clk/imx/clk.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/drivers/clk/imx/clk.h b/drivers/clk/imx/clk.h index e36d01411a4e..5af70d351993 100644 --- a/drivers/clk/imx/clk.h +++ b/drivers/clk/imx/clk.h @@ -42,6 +42,11 @@ enum imx_pll14xx_type { PLL_1443X, }; +enum imx_pllv4_type { + IMX_PLLV4_IMX7ULP, + IMX_PLLV4_IMX8ULP, +}; + /* NOTE: Rate table should be kept sorted in descending order. */ struct imx_pll14xx_rate_table { unsigned int rate; @@ -241,8 +246,8 @@ struct clk_hw *imx_clk_hw_pllv3(enum imx_pllv3_type type, const char *name, .kdiv = (_k), \ } -struct clk_hw *imx_clk_hw_pllv4(const char *name, const char *parent_name, - void __iomem *base); +struct clk_hw *imx_clk_hw_pllv4(enum imx_pllv4_type type, const char *name, + const char *parent_name, void __iomem *base); struct clk_hw *clk_hw_register_gate2(struct device *dev, const char *name, const char *parent_name, unsigned long flags, |