clk: imx: pll14xx: consolidate rate calculation
authorSascha Hauer <s.hauer@pengutronix.de>
Fri, 4 Mar 2022 12:52:52 +0000 (13:52 +0100)
committerAbel Vesa <abel.vesa@nxp.com>
Fri, 4 Mar 2022 15:06:30 +0000 (17:06 +0200)
commit53990cf9d5b489fc0ec08e5c4df7139fc311a824
tree6dd5524fdea4db1520ab0a429993b57840bb154d
parent58f4980ccbecf633df1fcb113e2a9f04842eccc6
clk: imx: pll14xx: consolidate rate calculation

The PLL driver has support for two different PLLs: The pll1416x and
the pll1443x. The latter has support for an additional kdiv value.
recalc_rate can be the same calculation when kdiv is assumed to be zero
for the PLL which doesn't support that value.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Reviewed-by: Abel Vesa <abel.vesa@nxp.com>
Link: https://lore.kernel.org/r/20220304125256.2125023-5-s.hauer@pengutronix.de
Signed-off-by: Abel Vesa <abel.vesa@nxp.com>
drivers/clk/imx/clk-pll14xx.c