__prci_wrpll_unpack(9)
π __prci_wrpll_unpack(9) β like, the Kernel API Manual chapter you actually wanna read π
okay so bestie, welcome to the Kernel API Manual glow-up of __prci_wrpll_unpack(9) β¨ this one is genuinely short and sweet, so let's go π«Ά
β¨ NAME β¨
__prci_wrpll_unpack β unpacks WRPLL configuration registers into parameters π¦
πΈ SYNOPSIS πΈ
void __prci_wrpll_unpack (struct wrpll_cfg *c , u32 r );
π ARGUMENTS π
cβ a ptr to astruct wrpll_cfgrecord, and that's the one we're writing the config into, no cap πrβ the value that got read from the PRCI PLL configuration register β
π DESCRIPTION π
so here's the vibe: you hand it a value r that came out of an FU740 PRCI PLL configuration register, and it literally splits it into fields and populates them into the WRPLL configuration record that c is pointing at π§β¨
and like, heads up β the COREPLLCFG0 macros are what's used below, but the other *PLLCFG0 macros have the same register layout, so don't stress π
π¦ CONTEXT π¦
Any context. fr fr, any π
π SEE ALSO π
okay this list is long but every single one is iconic, we're not skipping anybody π
- Kernel file
./drivers/clk/sifive/sifive-prci.c __prci_readl(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_hfclk(9)sifive_prci_hfpclkpllsel_use_hfpclkpll(9)__prci_register_clocks(9)sifive_prci_probe(9)
ngl that's the whole page, it's giving "short but essential" and honestly? we ate ππ₯
and before you go β this lil masterpiece lives in ./drivers/clk/sifive, stamped October 2026 π mwah, bye bestie, go unpack those registers slayfully ππ
β¨
π¦ 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