STRUCT CLK_SI570(9)
π 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, theconst struct clk_si570_info *of it all π¦fxtalβ factory xtal frequency. straight from the factory,u64, iconic πn1β clock dividerN1. she divides πhs_divβ clock dividerHSDIV. she also divides, highkey π₯rfreqβ clock multiplierRFREQ. now this one multiplies,u64and thriving βfrequencyβ current output frequency, alsou64, literally the number we all care about πi2c_clientβ I2C client pointer. the connection to the outside world, fr fr π§
π SEE ALSO π
- Kernel file
./drivers/clk/clk-si570.cand structclk_si570_info(9) si570_get_divs(9)si570_get_defaults(9)si570_update_rfreq(9)si570_calc_divs(9)si570_set_frequency(9)si570_set_frequency_small(9)
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
- 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