]> git.baikalelectronics.ru Git - kernel.git/commit
clk: imx: pfdv2: determine best parent rate
authorPeng Fan <peng.fan@nxp.com>
Wed, 19 Feb 2020 07:59:48 +0000 (15:59 +0800)
committerShawn Guo <shawnguo@kernel.org>
Tue, 10 Mar 2020 06:02:02 +0000 (14:02 +0800)
commit3d8d3009e030965cc0d0fc2c544c3e363b0792c1
tree1147b84efb58e8fe21b516d6f6ff1ab717e3e6ad
parentbe9ddff9e9fcf848d0b55b109f3ca125c121137e
clk: imx: pfdv2: determine best parent rate

pfdv2 is only used in i.MX7ULP. To get best pfd output, the i.MX7ULP
Datasheet defines two best PLL rate and pfd frac.

Per Datasheel
All PLLs on i.MX 7ULP either have VCO base frequency of
480 MHz or 528 MHz. So when determine best rate, we also
determine best parent rate which could match the requirement.

For some reason the current parent might not be 480MHz or 528MHz,
so we still take current parent rate as a choice.

And we also enable flag CLK_SET_RATE_PARENT to let parent rate
to be configured.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
drivers/clk/imx/clk-pfdv2.c