diff options
author | Samuel Holland <samuel@sholland.org> | 2021-11-19 04:33:36 +0100 |
---|---|---|
committer | Maxime Ripard <maxime@cerno.tech> | 2021-11-23 10:29:05 +0100 |
commit | 7ec03b588d2214d11bea91d5f9ffa444094d3cbd (patch) | |
tree | 664419f113c41d25cadbbed16f74e1bcc2bbebd3 /drivers/clk/Kconfig | |
parent | clk: sunxi-ng: Allow drivers to be built as modules (diff) | |
download | linux-7ec03b588d2214d11bea91d5f9ffa444094d3cbd.tar.xz linux-7ec03b588d2214d11bea91d5f9ffa444094d3cbd.zip |
clk: sunxi-ng: Convert early providers to platform drivers
The PRCM CCU drivers depend on clocks provided by other CCU drivers. For
example, the sun8i-r-ccu driver uses the "pll-periph" clock provided by
the SoC's main CCU.
However, sun8i-r-ccu is an early OF clock provider, and many of the
main CCUs (e.g. sun50i-a64-ccu) use platform drivers. This means that
the consumer clocks will be orphaned until the supplier driver is bound.
This can be avoided by converting the remaining CCUs to use platform
drivers. Then fw_devlink will ensure the drivers are bound in the
optimal order.
The sun5i CCU is the only one which actually needs to be an early clock
provider, because it provides the clock for the system timer. That one
is left alone.
Signed-off-by: Samuel Holland <samuel@sholland.org>
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Link: https://lore.kernel.org/r/20211119033338.25486-4-samuel@sholland.org
Diffstat (limited to 'drivers/clk/Kconfig')
0 files changed, 0 insertions, 0 deletions