STRUCT SG2042_PLL_CLOCK(9)
πΈ NAME πΈ
okay bestie, this is the kernel API manual page for struct sg2042_pll_clock(9), and it is literally a PLL clock struct. no cap, that's the whole vibe β it's the struct for a PLL clock. periodt. π
β¨ SYNOPSIS β¨
here's the exact struct shape, bestie β do not freestyle it:
struct sg2042_pll_clock {
struct clk_hw hw;
unsigned int id;
void __iomem *base;
spinlock_t *lock;
u32 offset_ctrl;
u8 shift_status_lock;
u8 shift_status_updating;
u8 shift_enable;
};
π§ Members π§
hwβclk_hwfor initialization. slay, that's the init hookup β¨idβ used to mapclk_onecell_data. iykyk πbaseβ used forreadl/writel. NOTE: PLL registers are all in SYS_CTRL! like, all of them, bestie πlockβ spinlock to protect register access; modification of frequency can only be served one at the time. one at the time, no queue-jumping π«Άoffset_ctrlβ offset of pll control registers.shift_status_lockβ shift ofXXX_LOCKin pll status register.shift_status_updatingβ shift ofUPDATING_XXXin pll status register.shift_enableβ shift ofXXX_CLK_ENin pll enable register.
π¦ SEE ALSO π¦
- Kernel file
./drivers/clk/sophgo/clk-sg2042-pll.c sg2042_pll_recalc_rate(9)sg2042_pll_get_postdiv_1_2(9)sg2042_get_pll_ctl_setting(9)sg2042_clk_pll_recalc_rate(9)
mwah π that's the page, bestie! source/version: ./drivers/clk/sophgo, date: October 2026, manual: struct sg2042_pll_clock(9). go slay those PLL clocks π«Άβ¨
π¦ 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