omap2_dflt_clk_enable(9)
π omap2_dflt_clk_enable(9) π
okay so welcome to the Kernel API Manual bestie, and today's main character is omap2_dflt_clk_enable β the girl whose whole job is turning a clock ON. in the hardware. fr fr. πβ¨
β¨ NAME β¨
omap2_dflt_clk_enable β enable a clock in the hardware πΈ
π¦ SYNOPSIS π¦
int omap2_dflt_clk_enable (struct clk_hw *hw );
π ARGUMENTS π
hwβ astruct clk_hw *, aka the clock you're trying to enable. this is the one, the only, the pointer in question π
π DESCRIPTION π
so like. we're enabling the clock hw in the hardware. and it's a whole little ritual, bestie, let me walk you through it:
- first we call into the OMAP clockdomain code to "enable" the corresponding clockdomain β but only if this is the first enabled user of that clockdomain. no cap, first one in switches the lights on for everybody. π₯
- then we program the hardware to actually enable the clock. iconic.
- then we wait for the IP block that uses this clock to leave idle (if that's applicable β sometimes it's just vibing and doesn't need the wait). π
and what do we return, you ask? π«Ά
- the error value from
clkdm_clk_enableif that call terminated with an error π -EINVALifhwhas a null clockenable_regπ- zero upon success β slay β¨
π SEE ALSO π
- Kernel file
./drivers/clk/ti/clkt_dflt.c _wait_idlest_generic(9)_omap2_module_wait_ready(9)omap2_clk_dflt_find_companion(9)omap2_clk_dflt_find_idlest(9)omap2_dflt_clk_disable(9)β the reverse queen π§omap2_dflt_clk_is_enabled(9)β the vibe check π
okay that's the whole page, go enable some clocks responsibly bb π©· this came from ./drivers/clk/ti and the date on it is October 2026 β mwah, talk later! ππ«
π¦ 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