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:Peng Fan <peng.fan@nxp.com> Reviewed-by:
Abel Vesa <abel.vesa@linaro.org> Link: https://lore.kernel.org/r/20230403095300.3386988-4-peng.fan@oss.nxp.com Signed-off-by:
Abel Vesa <abel.vesa@linaro.org> Stable-dep-of: 7622f888 ("clk: imx: fracn-gppll: fix fractional part of PLL getting lost") Signed-off-by:
Sasha Levin <sashal@kernel.org>
Loading
Please sign in to comment