diff options
author | Conor Dooley <[email protected]> | 2022-04-13 08:58:34 +0100 |
---|---|---|
committer | Stephen Boyd <[email protected]> | 2022-04-22 18:40:22 -0700 |
commit | 445c2da89747e2583062d988c98726cb2744b357 (patch) | |
tree | 59e51c23ead1c4975d218418218c582c860391d8 /lib/test_fortify/write_overflow-strlcpy-src.c | |
parent | 8e8fbab4f1e659f9955bc946a2fc71b8c3ba17e0 (diff) |
clk: microchip: mpfs: re-parent the configurable clocks
Currently the mpfs clock driver uses a reference clock called the
"msspll", set in the device tree, as the parent for the cpu/axi/ahb
(config) clocks. The frequency of the msspll is determined by the FPGA
bitstream & the bootloader configures the clock to match the bitstream.
The real reference is provided by a 100 or 125 MHz off chip oscillator.
However, the msspll clock is not actually the parent of all clocks on
the system - the reference clock for the rtc/mtimer actually has the
off chip oscillator as its parent.
In order to fix this, add support for reading the configuration of the
msspll & reparent the "config" clocks so that they are derived from
this clock rather than the reference in the device tree.
Fixes: 635e5e73370e ("clk: microchip: Add driver for Microchip PolarFire SoC")
Reviewed-by: Daire McNamara <[email protected]>
Signed-off-by: Conor Dooley <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Acked-by: Palmer Dabbelt <[email protected]>
Signed-off-by: Stephen Boyd <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strlcpy-src.c')
0 files changed, 0 insertions, 0 deletions