Commit ddfa237e authored by Peng Fan's avatar Peng Fan Committed by Greg Kroah-Hartman
Browse files

clk: imx: fracn-gppll: support integer pll



[ Upstream commit 56b8d0bf ]

The fracn gppll could be configured in FRAC or INTEGER mode during
hardware design. The current driver only support FRAC mode, while
this patch introduces INTEGER support. When the PLL is INTEGER pll,
there is no mfn, mfd, the calculation is as below:
 Fvco_clk = (Fref / DIV[RDIV] ) * DIV[MFI]
 Fclko_odiv = Fvco_clk / DIV[ODIV]

In this patch, we reuse the FRAC pll logic with some condition check to
simplify the driver

Signed-off-by: default avatarPeng Fan <peng.fan@nxp.com>
Reviewed-by: default avatarAbel Vesa <abel.vesa@linaro.org>
Link: https://lore.kernel.org/r/20230403095300.3386988-4-peng.fan@oss.nxp.com


Signed-off-by: default avatarAbel Vesa <abel.vesa@linaro.org>
Stable-dep-of: 7622f888 ("clk: imx: fracn-gppll: fix fractional part of PLL getting lost")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 335426e9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment