STRUCT CLK_ALPHA_PLL(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… NAME πŸ’…

struct clk_alpha_pll β€” a phase locked loop (PLL) πŸŒ€ and honestly? main character energy. This is the Kernel API Manual, bestie, so we're doing this properly but cute.


✨ SYNOPSIS ✨

okay so here's the entire struct, copied exactly because we do not play with code, no cap:

       struct clk_alpha_pll {
           u32 offset;
           const u8 *regs;
           const struct alpha_pll_config *config;
           const struct pll_vco *vco_table;
           size_t num_vco;
         #define SUPPORTS_OFFLINE_REQ            BIT(0);
         #define SUPPORTS_FSM_MODE               BIT(2);
         #define SUPPORTS_DYNAMIC_UPDATE BIT(3);
         #define SUPPORTS_FSM_LEGACY_MODE        BIT(4);
           u8 flags;
           struct clk_regmap clkr;
        };

πŸŽ€ Members πŸŽ€

roll call time, let's meet the whole squad:

  • offset β€” base address of registers, aka where this PLL's register situation begins. home address vibes 🏠.
  • regs β€” the alpha pll register map, and yes it's literally pointing you to clk_alpha_pll_regs for the full lore πŸ‘€.
  • config β€” array of pll settings. the preset menu, if you will πŸ“.
  • vco_table β€” array of VCO settings. another table, another vibe 🌸.
  • num_vco β€” number of VCO settings in vco_table. literally the count, that's it, that's the whole job πŸ”’.
  • flags β€” bitmask to indicate features supported by the hardware. the hardware's way of saying "here's what I can do" πŸ’…. the bits are SUPPORTS_OFFLINE_REQ = BIT(0), SUPPORTS_FSM_MODE = BIT(2), SUPPORTS_DYNAMIC_UPDATE = BIT(3), and SUPPORTS_FSM_LEGACY_MODE = BIT(4). (no BIT(1) in the roster, don't come for me, that's just what the struct says.)
  • clkr β€” regmap clock handle. the actual handle for the regmap clock situation πŸŽ€.

πŸ¦‹ SEE ALSO πŸ¦‹

go peek at these if you're obsessed like me:

  • Kernel file ./drivers/clk/qcom/clk-alpha-pll.h β€” the source file, iykyk.
  • struct clk_alpha_pll_postdiv(9) β€” the postdiv struct, highly recommend for the full picture πŸ’œ.

and that's the page, bestie. source/version: ./drivers/clk/qcom; date: October 2026; manual: struct clk_alpha_pll(9). periodt πŸ’…βœ¨πŸ«Ά

πŸ“¦ where this page comes from