• Peng Fan's avatar
    clk: imx: pfdv2: determine best parent rate · c88a4c79
    Peng Fan authored
    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: default avatarPeng Fan <peng.fan@nxp.com>
    Signed-off-by: default avatarShawn Guo <shawnguo@kernel.org>
    c88a4c79
clk-pfdv2.c 4.58 KB