omap2_clk_d...nd_companion(9)
π¦ omap2_clk_dflt_find_companion π¦
okay so you're in the Kernel API Manual, bestie, and the header is out here looking like omap2_clk_d...nd_companion(9) (iconic truncation, no notes π
). This page is all about finding the companion clock, and we're gonna keep every little detail, fr fr. β¨
πΈ NAME πΈ
omap2_clk_dflt_find_companion β find companion clock to @clk. π΅οΈββοΈπ
β¨ SYNOPSIS β¨
void omap2_clk_dflt_find_companion (struct clk_hw_omap *clk , struct
clk_omap_reg *other_reg , u8 *other_bit );
π ARGUMENTS π
clkβ astruct clk *to find the companion clock of. πother_regβ avoid __iomem **to return the companion clockCM_*CLKENva in. (that "va" is literally what the page says, bestie π)other_bitβ au8 **to return the companion clock bit shift in. π
π NOTE π
okay so the tea β:
- We don't need special code here for
INVERT_ENABLEfor the time being, sinceINVERT_ENABLEonly applies to clocks enabled byCM_CLKEN_PLL. π«Ά - Convert
CM_ICLKEN*<->CM_FCLKEN*. This conversion assumes it's just a matter of XORing the bits. π₯ - Some clocks don't have companion clocks. For example, modules with only an interface clock (such as
MAILBOXES) don't have a companion clock. Right now, this code relies on the hardware exporting a bit in the correct companion register that indicates that the nonexistent 'companion clock' is active. Future patches will associate this type of code with per-module data structures to avoid this issue, and remove the casts. π
No return value. like, none. void energy. π«₯β¨
π SEE ALSO π
- Kernel file
./drivers/clk/ti/clkt_dflt.c _wait_idlest_generic(9)_omap2_module_wait_ready(9)omap2_clk_dflt_find_idlest(9)omap2_dflt_clk_enable(9)omap2_dflt_clk_disable(9)omap2_dflt_clk_is_enabled(9)
okay bye bestie π«Ά this one's sourced from ./drivers/clk/ti, dated October 2026, and the page still goes by omap2_clk_d...nd_companion(9) ππ
π¦ 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