Skip to content
Commit 32cfdd51 authored by Conor Dooley's avatar Conor Dooley Committed by Leo Yu-Chi Liang
Browse files

clk: microchip: mpfs: fix reference clock handling



The original devicetrees for PolarFire SoC messed up & defined the
msspll's output as a fixed-frequency, 600 MHz clock & used that as the
input for the clock controller node. The msspll is not a fixed
frequency clock and later devicetrees handled this properly. Check the
devicetree & if it is one of the fixed ones, register the msspll.
Otherwise, skip registering it & pass the reference clock directly to
the cfg clock registration function so that existing devicetrees are
not broken by this change.

As the MSS PLL is not a "cfg" or a "periph" clock, add a new driver for
it, based on the one in Linux.

Fixes: 2f27c921 ("clk: Add Microchip PolarFire SoC clock driver")
Signed-off-by: default avatarConor Dooley <conor.dooley@microchip.com>
Reviewed-by: default avatarLeo Yu-Chi Liang <ycliang@andestech.com>
Reviewed-by: default avatarPadmarao Begari <padmarao.begari@microchip.com>
Tested-by: default avatarPadmarao Begari <padmarao.begari@microchip.com>
parent fb103971
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment