Skip to content
Commit c816e1dd authored by Zong Li's avatar Zong Li Committed by Stephen Boyd
Browse files

clk: sifive: Extract prci core to common base



Extract common core of prci driver to an independent file, it could
allow other chips to reuse it. Separate SoCs-dependent code 'fu540'
from prci core, then we can easily add 'fu740' later.

Almost these changes are code movement. The different is adding the
private data for each SoC use, so it needs to get match data in probe
callback function, then use the data for initialization.

Signed-off-by: default avatarZong Li <zong.li@sifive.com>
Reviewed-by: default avatarPragnesh Patel <Pragnesh.patel@sifive.com>
Acked-by: default avatarPalmer Dabbelt <palmerdabbelt@google.com>
Link: https://lore.kernel.org/r/20201209094916.17383-2-zong.li@sifive.com


[sboyd@kernel.org: Include header to silence sparse]
Signed-off-by: default avatarStephen Boyd <sboyd@kernel.org>
parent a00a3f29
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