STRUCT INGENIC_CGU_GATE_INFO(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… struct ingenic_cgu_gate_info(9) β€” like, the whole glow-up

okay bestie, welcome to the Kernel API Manual ✨ this one's a lil struct page and honestly? it's giving "small but iconic." no cap, it's literally just four fields and yet it runs the whole "is this clock on or not" situation. obsessed.


🌸 NAME 🌸

struct ingenic_cgu_gate_info β€” the tea on a clock gate, fr fr 🫢

think of it as the little info card that tells the kernel how to flip one specific gate bit on and off. very main character of it.

πŸŽ€ SYNOPSIS πŸŽ€

struct ingenic_cgu_gate_info {
    unsigned reg;
    u8 bit;
    bool clear_to_gate;
    u16 delay_us;
};

that's it. that's the struct. four members, zero drama, highkey slaying πŸ’–


πŸ¦‹ Members πŸ¦‹

  • reg β€” the offset of the gate control register within the CGU. like, where in the CGU's little house this register lives. you gotta know the address before you knock, yk? 🏠
  • bit β€” the offset of the bit in the register that controls the gate. so reg gets you to the right register, and bit gets you to the exact bit inside it. precision queen behavior πŸ‘‘
  • clear_to_gate β€” if this is set, the clock is gated when the bit is cleared. yes bestie, that means it's inverted from what your brain probably expects πŸ™ˆ so like, read it twice.
  • delay_us β€” delay in microseconds after which the clock is considered stable. the "give it a sec, she's still getting ready" field. ⏳✨

πŸ”₯ SEE ALSO πŸ”₯

the whole squad, all in the kernel file ./drivers/clk/ingenic/cgu.h πŸ’œ:

  • struct ingenic_cgu_pll_info(9)
  • struct ingenic_cgu_mux_info(9)
  • struct ingenic_cgu_div_info(9)
  • struct ingenic_cgu_fixdiv_info(9)
  • struct ingenic_cgu_custom_info(9)
  • struct ingenic_cgu_clk_info(9)
  • struct ingenic_cgu(9)
  • struct ingenic_clk(9)
  • ingenic_cgu_new(9)
  • ingenic_cgu_register_clocks(9)

like, go read all of them, they're literally all connected 😭 it's a whole friend group.


okay that's the page!! mwah πŸ’‹ this little legend lives over in ./drivers/clk/ingenic and it was dated October 2026 β€” and yeah, the header still says struct ingen...gu_gate_info(9) because truncation is eternal, bestie. bye, ily, go gate some clocks responsibly πŸŒˆβ­πŸ“

πŸ“¦ where this page comes from