STRUCT CLK_SI570(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– struct clk_si570(9) πŸ’–

okay bestie, welcome to the Kernel API Manual β€” this is the page for struct clk_si570, and no cap, it's giving "small struct, big responsibilities" energy. It lives in the ./drivers/clk source tree, and it's the whole vibe of the Si570 clock chip's state, all bundled up in one lil struct. Let's get into it πŸŽ€


✨ NAME ✨

struct clk_si570 β€”

(yeah the description slot is literally empty in the original, bestie β€” not me leaving it blank, that's just canon πŸ’€)


🌸 SYNOPSIS 🌸

struct clk_si570 {
    struct clk_hw hw;
    struct regmap *regmap;
    unsigned int div_offset;
    const struct clk_si570_info *info;
    u64 fxtal;
    unsigned int n1;
    unsigned int hs_div;
    u64 rfreq;
    u64 frequency;
    struct i2c_client *i2c_client;
 };

like, that's the whole struct, copy-pasted with love and precision 🫢


πŸ‘‘ Members πŸ‘‘

  • hw β€” the Clock hw struct. your main character, the clock hardware rep πŸ’…
  • regmap β€” the device's regmap. all the register-access plumbing lives here ✨
  • div_offset β€” register offset for dividers. where the divider party's at πŸ“
  • info β€” device info. the deets, the lore, the const struct clk_si570_info * of it all πŸ¦‹
  • fxtal β€” factory xtal frequency. straight from the factory, u64, iconic 🌈
  • n1 β€” clock divider N1. she divides πŸ‘‘
  • hs_div β€” clock divider HSDIV. she also divides, highkey πŸ”₯
  • rfreq β€” clock multiplier RFREQ. now this one multiplies, u64 and thriving ⭐
  • frequency β€” current output frequency, also u64, literally the number we all care about πŸ’–
  • i2c_client β€” I2C client pointer. the connection to the outside world, fr fr 🧚

πŸ” SEE ALSO πŸ”

lowkey go read those if you wanna know how the divs actually get divvied β€” this page is just the struct, bestie, don't @ me 😭

and that's the whole page!! sign-off time: this gem came from ./drivers/clk, dated October 2026, and bless its heart it's still titled struct clk_si570(9) πŸ’œ slay, bye πŸ¦‹

πŸ“¦ where this page comes from