_lookup_sddiv(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… _lookup_sddiv (from the Kernel API Manual) πŸŽ€

okay bestie, buckle up, because this one is literally a tiny little helper that does one very specific job: it calculates the sigma-delta divider for a j-type DPLL. that's it. that's the whole vibe. no cap. ✨


🌸 NAME 🌸

_lookup_sddiv β€” calculate the sigma delta divider for a j-type DPLL πŸ’«


πŸ¦‹ SYNOPSIS πŸ¦‹

void _lookup_sddiv (struct clk_hw_omap *clk , u8 *sd_div , u16 m , u8 n
);

like yes, the formatting is a little cursed, it wraps onto a second line, we don't judge. 🫢


✨ ARGUMENTS ✨

  • clk β€” a pointer to a DPLL struct clk. this is the main character of the whole operation ngl πŸ‘‘
  • sd_div β€” the target sigma-delta divider. it's a u8 *, so it's a pointer, she writes back into you πŸ’…
  • m β€” the DPLL multiplier you want to set, a u16 πŸ”’
  • n β€” the DPLL divider you want to set, a u8 ⭐

πŸ’– DESCRIPTION πŸ’–

so the actual spec tea: see 36xx TRM section 3.5.3.3.3.2 "Type B DPLL (Low-Jitter)" πŸ“– that's where the real lore lives, iykyk.

XXX β€” this code is not needed for 3430/AM35xx. the manpage literally asks the question: can it be optimized out in non-multi-OMAP builds for those chips? πŸ€” so yeah, that's an open question, not a settled answer. don't come for me, I'm just the messenger 😭

🌈 SEE ALSO 🌈

kernel file ./drivers/clk/ti/dpll3xxx.c β€” and oooooh the friend group is large, look at all these related functions, absolutely iconic roster fr fr:

like that's the whole clique, no gatekeeping here 🫢✨


and that's the page, bestie! πŸŽ€ one last cute little sign-off: this one comes from ./drivers/clk/ti and it's dated October 2026 β€” mark your calendars, she's a time traveler πŸ¦‹β°πŸ’œ

πŸ“¦ where this page comes from