eswin_calc_pll(9)
π 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
- 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