sifive_prci_...inal_corepll(9)
π sifive_prci_...inal_corepll(9) π
okay so bestie, you're reading the Kernel API Manual β welcome to the little corner of the kernel where we flip clock muxes like we flip our hair β¨
πΈ NAME πΈ
sifive_prci_coreclksel_use_final_corepll β the glow-up move where you switch the CORECLK mux over to output FINAL_COREPLL π
π SYNOPSIS π
void sifive_prci_coreclksel_use_final_corepll (struct __prci_data *pd );
literally that's the whole thing. one function, one argument, zero drama π
π¦ ARGUMENTS π¦
pdβ astruct __prci_data *pointing at the PRCI that's holding the CORECLK mux reg. like, that's the one you're about to mess with, so know her before you touch her π«Ά
β DESCRIPTION β
So what does it even do? It switches the CORECLK mux over to the final COREPLL output clock β and then it bounces, returning once the whole thing is complete. no hanging around, no "wait let me check my phone", just done β
π₯ CONTEXT π₯
Any context, bestie β she's flexible like that π but (and this is the important part, don't skip it π) the caller must prevent concurrent changes to the PRCI_CORECLKSEL_OFFSET register. fr fr, no cap β that's on you, not on her. π
π SEE ALSO π
Kernel file ./drivers/clk/sifive/sifive-prci.c, plus her whole friend group:
__prci_readl(9)__prci_wrpll_unpack(9)__prci_wrpll_pack(9)__prci_wrpll_read_cfg0(9)__prci_wrpll_write_cfg0(9)__prci_wrpll_write_cfg1(9)sifive_prci_coreclksel_use_hfclk(9)sifive_prci_coreclksel_use_corepll(9)sifive_prci_corepllsel_use_dvfscorepll(9)sifive_prci_corepllsel_use_corepll(9)sifive_prci_hfpclkpllsel_use_hfclk(9)sifive_prci_hfpclkpllsel_use_hfpclkpll(9)__prci_register_clocks(9)sifive_prci_probe(9)
ngl the register-locking thing is the whole vibe check of this page. say it with me: no concurrent changes to PRCI_CORECLKSEL_OFFSET π§ββοΈ
and that's the page, babe π coming at you straight from ./drivers/clk/sifive β iykyk β dated October 2026 β¨ mwah, go slay that mux ππ
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms