STRUCT ZYNQMP_CLK_DIVIDER(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… struct zynqmp_clk_divider(9)

okay bestie, welcome to the Kernel API Manual, we're looking at struct zynqmp_clk_divider today and honestly? it's giving adjustable divider clock energy and I'm lowkey obsessed πŸŽ€


✨ NAME ✨

struct zynqmp_clk_divider β€” the adjustable divider clock struct, fr fr πŸ’–


🌸 SYNOPSIS 🌸

struct zynqmp_clk_divider {
    struct clk_hw hw;
    u8 flags;
    bool is_frac;
    u32 clk_id;
    u32 div_type;
    u16 max_div;
 };

no cap, that's the whole shape of it. let's break down every single member because we do NOT skip parts in this house πŸ’…


πŸ¦‹ Members πŸ¦‹

🌈 the fields, one by one

  • hw β€” this is the handle between the common clock interfaces and the hardware-specific ones. it's the little bridge between two worlds, main character energy honestly 🫢
  • flags β€” hardware-specific flags. not our generic flags, hardware specific, iykyk ✨
  • is_frac β€” a bool, and it answers one question: is this divider a fractional divider? yes or no, no in-between πŸ’€
  • clk_id β€” the id of the clock. that's it, that's the vibe πŸ‘‘
  • div_type β€” the divisor type. and bestie, it's literally TYPE_DIV1 or TYPE_DIV2, those are the two options, periodt πŸ”₯
  • max_div β€” the maximum supported divisor. and listen β€” it's fetched from firmware, so it's not just vibes, it's official πŸ’–

πŸ’œ SEE ALSO πŸ’œ

like, the whole squad is linked up there, go say hi 🌸


heads up bestie: max_div comes from firmware β€” it's not something you just make up, okay? respect the firmware πŸ™ˆ

okay that's the page!! mwah πŸ’‹ this was ./drivers/clk/zynqmp, October 2026, Kernel API Manual β€” go forth and divide those clocks adjustably, you absolute icon πŸ§šβœ¨πŸ‘‘

πŸ“¦ where this page comes from