sifive_prci_...el_use_hfclk(9)
π sifive_prci_hfpclkpllsel_use_hfclk(9) β¨
okay so bestie, welcome to the Kernel API Manual π β this is the page for sifive_prci_hfpclkpllsel_use_hfclk, and no, the name isn't a typo, that's just how kernel devs name things when they're feeling dramatic π
β¨ NAME β¨
sifive_prci_hfpclkpllsel_use_hfclk β switch the HFPCLKPLL mux to output HFCLK π¦
Like, it literally flips the mux so the output is HFCLK. That's the whole vibe check. Slay.
πΈ SYNOPSIS πΈ
void sifive_prci_hfpclkpllsel_use_hfclk (struct __prci_data *pd );
returns void, so no β¨return valueβ¨ to obsess over, she just does her thing and leaves π
π§ ARGUMENTS π§
pdβ astruct __prci_data *for the PRCI that's holding the HFPCLKPLL mux reg π like, this is the one and only thing you hand her, and she needs it to be the right PRCI, iykyk
π₯ DESCRIPTION π₯
she switches the HFPCLKPLL mux over to the HFCLK input source, and then comes right back once it's complete π«Ά that's it, that's the function. short and iconic. main character energy fr fr.
β CONTEXT β
any context bestie π β literally any, no restrictions on where you call her from. BUT (and this is the important part, don't skip it π) the caller must prevent concurrent changes to the PRCI_HFPCLKPLLSEL_OFFSET register. so like, you gotta handle that yourself, she's not doing your locking for you π
no cap, that's a real requirement β if two people poke PRCI_HFPCLKPLLSEL_OFFSET at the same time, that's on you, not her π
π SEE ALSO π
the kernel file ./drivers/clk/sifive/sifive-prci.c β that's where all her friends live πΈ go say hi to:
__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_coreclksel_use_final_corepll(9)sifive_prci_corepllsel_use_dvfscorepll(9)sifive_prci_corepllsel_use_corepll(9)sifive_prci_hfpclkpllsel_use_hfpclkpll(9)__prci_register_clocks(9)sifive_prci_probe(9)
and that's the page, bestie π sign-off time: this whole thing lives over in ./drivers/clk/sifive, it's dated October 2026, and you can find it filed under sifive_prci_...el_use_hfclk(9) π¦ mwah, go flip 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