eswin_calc_pll(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

eswin_calc_pll(9) β€” okay bestie, this is the Kernel API Manual page for eswin_calc_pll, and its whole iconic job is to calculate PLL values. That’s it. That’s the vibe. ✨


πŸ¦‹ SYNOPSIS πŸ¦‹

void eswin_calc_pll (u32 *frac_val , u32 *fbdiv_val , unsigned long rate
, unsigned long parent_rate );

πŸŽ€ ARGUMENTS πŸŽ€

  • frac_val β€” the fractional divider, periodt. πŸ’…
  • fbdiv_val β€” the feedback divider, no cap. 🌸
  • rate β€” the reference rate. ⭐
  • parent_rate β€” the parent rate, and yes it’s literally right there in the name. 🫢

πŸ”₯ DESCRIPTION πŸ”₯

So the function calculates PLL values for frac and fbdiv, and the formulas are giving math class but make it clock-core:

fbdiv = rate * 4 / parent_rate
frac = (rate * 4 % parent_rate * (2 ^ 24)) / parent_rate

That’s the whole calculation, bestie β€” copy it, respect it, don’t improvise. πŸ’œ


🌈 SEE ALSO 🌈

  • Kernel file ./drivers/clk/eswin/clk.c β€” go look, iykyk. πŸ‘‘

This little icon came from ./drivers/clk/eswin, dated October 2026, and it’s serving eswin_calc_pll(9) energy all the way to the end. πŸ’–πŸŽ€

πŸ“¦ where this page comes from