STRUCT SG2042_PLL_CLOCK(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 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_hw for initialization. slay, that's the init hookup ✨
  • id β€” used to map clk_onecell_data. iykyk πŸŽ€
  • base β€” used for readl/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 of XXX_LOCK in pll status register.
  • shift_status_updating β€” shift of UPDATING_XXX in pll status register.
  • shift_enable β€” shift of XXX_CLK_EN in pll enable register.

πŸ¦‹ SEE ALSO πŸ¦‹


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