STRUCT OMAP_HWMOD_OPT_CLK(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… struct omap_hwmod_opt_clk(9)

okay so bestie, welcome to the Kernel API Manual ✨ β€” yes, the real one, and yes, we're about to talk about optional clocks on OMAP hardware like it's the most exciting thing in the group chat (because it kind of is 🫢).


🌸 NAME 🌸

struct omap_hwmod_opt_clk β€” literally just the optional clocks that this hwmod uses. that's the whole vibe. no cap.


✨ SYNOPSIS ✨

struct omap_hwmod_opt_clk {
    const char      *role;
    const char      *clk;
    struct clk      *_clk;
 };

like, that's the struct. that's her. three little members and she's iconic πŸ‘‘


πŸŽ€ Members πŸŽ€

  • role β€” a string like "sys", "32k", "tv", etc. β€” bestie this is what gets used in clk_get πŸ”
  • clk β€” the opt clock: it's the OMAP clock name, fr fr
  • _clk β€” a pointer to the struct clk, and the way this one works is it gets filled in at runtime 🌈 (not me, not you β€” the runtime 😭)

πŸ’– Description πŸ’–

quick vibe check: the module's interface clock and its main functional clock should not be added as optional clocks. that's the rule. we don't break it πŸ™ˆ

like pls don't sneak the interface clock or the main functional clock in here, they're not optional, they're main character energy and this struct is for the optional girlies πŸ’…

πŸ¦‹ SEE ALSO πŸ¦‹

  • Kernel file ./arch/arm/mach-omap2/omap_hwmod.h
  • struct omap_hwmod_rst_info(9)
  • struct omap_hwmod_omap2_firewall(9)
  • struct omap_hwmod_ocp_if(9)
  • struct omap_hwmod_class_sysconfig(9)
  • struct omap_hwmod_omap2_prcm(9)
  • struct omap_hwmod_omap4_prcm(9)
  • struct omap_hwmod_class(9)
  • struct omap_hwmod(9)

go read those next, iykyk πŸ“šβœ¨


anyway that's the whole page bestie 🌸 β€” sourced straight from ./arch/arm/mach-omap2, dated October 2026, and yeah she's filed under struct omap_hwmod_opt_clk(9) πŸ’œ mwah, slay, periodt πŸŽ€

πŸ“¦ where this page comes from