STRUCT CLK_REF(9)
๐ struct clk_ref(9) โ the Kernel API Manual, bestie edition ๐
okay so this is a page from the Kernel API Manual and honestly? it's a little cutie. let's get into it โจ
๐ธ NAME ๐ธ
struct clk_ref โ the mxs reference clock ๐
โจ SYNOPSIS โจ
like, here's the whole vibe of the struct, no cap:
struct clk_ref {
struct clk_hw hw;
void __iomem *reg;
u8 idx;
};
๐ Members ๐
hwโ theclk_hwfor the reference clock. that's her main character energy fr ๐regโ the register address ๐idxโ the index of the reference clock within the same register. lowkey the way she tells the others apart ๐ซถ
๐ฆ Description ๐ฆ
k so the mxs reference clock sources from pll. and here's the tea: every 4 reference clocks share one register space, and idx is literally what's used to identify them ๐
each reference clock has a gate control and a fractional * divider โ yes bestie, both, she's doing the most โจ
and the rate? calculated as pll rate * (18 / FRAC), where FRAC = 18 ~ 35. that's it, that's the math ๐งฎ๐ฅ
ngl the * in "fractional * divider" is just sitting there being iconic, iykyk. we don't question it, we respect it ๐
๐ SEE ALSO ๐
- Kernel file
./drivers/clk/mxs/clk-ref.c๐
and that's the whole page, bestie ๐ง๐ hope the vibe check passed โ go read the source, it's giving iconic ๐
source/version: ./drivers/clk/mxs ยท dated: October 2026 ยท struct clk_ref(9) โ ok bye ily, slay the kernel ๐ซถโจ๐
๐ฆ 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