sifive_prci_...el_use_hfclk(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… sifive_prci_coreclksel_use_hfclk(9) β€” Kernel API Manual πŸ’…

okay bestie, welcome to the Kernel API Manual corner of the group chat πŸ’– this one is all about flipping the CORECLK mux over to HFCLK. short king of a function, but lowkey important. let’s get into it ✨


🌸 NAME 🌸

sifive_prci_coreclksel_use_hfclk β€” switch the CORECLK mux to output HFCLK πŸŽ€

πŸ¦‹ SYNOPSIS πŸ¦‹

void sifive_prci_coreclksel_use_hfclk (struct __prci_data *pd );

πŸ’œ ARGUMENTS πŸ’œ

  • pd β€” a struct __prci_data * for the PRCI that contains the CORECLK mux reg. yes, that exact PRCI. don’t hand it some random one, bestie 😭

✨ DESCRIPTION ✨

Switch the CORECLK mux to the HFCLK input source. then? return once complete. that’s it. that’s the whole vibe πŸ’… no cap, no extra steps, just mux-switching and bouncing ✨

🫢 CONTEXT 🫢

Any context. literally any πŸ’–

⚠️ but bestie, the caller must prevent concurrent changes to the PRCI_CORECLKSEL_OFFSET register. this is not a drill. keep that register from getting jumped by other callers πŸ™ˆ

πŸ”₯ SEE ALSO πŸ”₯

Kernel file: ./drivers/clk/sifive/sifive-prci.c


mwah πŸ’‹ catch u later β€” signed, the sifive_prci_...el_use_hfclk(9) girlie πŸŽ€ source/version: ./drivers/clk/sifive Β· October 2026 Β· you’re welcome, ily 🫢✨

πŸ“¦ where this page comes from