This website requires JavaScript.
Explore
Help
Sign In
Mirrors
/
u-boot
Watch
2
Star
0
Fork
You've already forked u-boot
0
mirror of
https://github.com/AsahiLinux/u-boot
synced
2024-12-14 07:13:03 +00:00
Code
Issues
Projects
Releases
Packages
Wiki
Activity
88b697fb37
u-boot
/
drivers
/
clk
/
microchip
/
Makefile
2 lines
71 B
Makefile
Raw
Normal View
History
Unescape
Escape
clk: microchip: mpfs: convert parent rate acquistion to get_get_rate() Currently the clock driver for PolarFire SoC takes a very naive approach to the relationship between clocks. It reads the dt to get an input clock, assumes that that is fixed frequency, reads the "clock-frequency" property & uses that to set up both the "cfg" and "periph" clocks. Simplifying for the sake of incremental fixes, the "correct" parentage for the clocks currently supported in U-Boot is that the "cfg" clocks should be children of the fixed frequency clock in the dt. The AHB clock is one of these "cfg" clocks and is the parent of the "periph" clocks. Instead of passing the clock rate of the fixed-frequency clock to the "cfg" and "periph" registration functions and the name of the parents, pass their actual parents & use clk_get_rate() to determine their parents rates. The "periph" clocks are purely gate clocks and should not be reading the AHB clocks registers to determine their rates, as they can simply report the output of clk_get_rate() on their parent. Signed-off-by: Conor Dooley <conor.dooley@microchip.com> Reviewed-by: Leo Yu-Chi Liang <ycliang@andestech.com> Reviewed-by: Padmarao Begari <padmarao.begari@microchip.com>
2022-10-25 07:58:45 +00:00
obj-y
+=
mpfs_clk.o mpfs_clk_cfg.o mpfs_clk_periph.o mpfs_clk_msspll.o
Reference in a new issue
Copy permalink