STRUCT OMAP_HWMOD_OPT_CLK(9)
π 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 inclk_getπclkβ the opt clock: it's the OMAP clock name, fr fr_clkβ a pointer to thestruct 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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms