STRUCT RZV2H_CPG_INFO(9)
πΈ struct rzv2h_cpg_info(9) πΈ
okay bestie, welcome to the Kernel API Manual β today's main character is struct rzv2h_cpg_info, and honestly? it's giving SoC-specific CPG Description β¨ it's the little data bundle that tells the clock/power gang everything it needs to know about a specific SoC. no cap, super important π
β¨ NAME β¨
struct rzv2h_cpg_info β SoC-specific CPG Description π
π¦ SYNOPSIS π¦
struct rzv2h_cpg_info {
const struct cpg_core_clk *core_clks;
unsigned int num_core_clks;
unsigned int last_dt_core_clk;
unsigned int num_total_core_clks;
const struct rzv2h_mod_clk *mod_clks;
unsigned int num_mod_clks;
unsigned int num_hw_mod_clks;
const struct rzv2h_reset *resets;
unsigned int num_resets;
unsigned int num_mstop_bits;
};
like, that's the whole vibe of it π«Ά ten fields, zero drama (mostly).
π Members π
core_clksβ Array of Core Clock definitions π₯ the actual core-clock lineup.num_core_clksβ Number of entries incore_clks[]β so you know how far to walk the array, iykyk.last_dt_core_clkβ ID of the last Core Clock exported to DT π the boundary marker between "exists for the kernel" and "exists for devicetree".num_total_core_clksβ Total number of Core Clocks (exported + internal) π both flavours counted together, no clock left behind.mod_clksβ Array of Module Clock definitions π the module-clock roster.num_mod_clksβ Number of entries inmod_clks[]π your trusty array-length buddy.num_hw_mod_clksβ Number of Module Clocks supported by the hardware π hardware says what it says; this is the honest count.resetsβ Array of Module Reset definitions π§ all the reset definitions, neatly arrayed.num_resetsβ Number of entries inresets[]πΈ length check, slay.num_mstop_bitsβ Maximum number of MSTOP bits supported, equivalent to the number ofCPG_BUS_m_MSTOPregisters multiplied by 16 π (yes, literally that math β multiply by sixteen, periodt).
π« SEE ALSO π«
Kernel file ./drivers/clk/renesas/rzv2h-cpg.h β plus these iconic siblings:
struct pll(9)struct ddiv(9)struct smuxed(9)struct fixed_mod_conf(9)struct rzv2h_mod_clk(9)struct rzv2h_reset(9)
go read them, they ate π
ngl, and this is the important bit β the SEE ALSO list has no comma between the header file and the structs, so like... it's a list of things not a sentence. don't come for me, I'm just the messenger π«Ά
and that's the whole page, bestie!! πβ mwah π this gem lives over in ./drivers/clk/renesas, and it's stamped October 2026 β so yes, this documentation is literally from the future πβ¨ go build something gorgeous with it π
π¦ 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