STRUCT RZG2L_CPG_INFO(9)
π struct_rzg2l_cpg_info(9) β SoC-specific CPG Description π
okay so bestie, welcome to the Kernel API Manual β¨ this one's literally about struct rzg2l_cpg_info, aka the SoC-specific CPG Description. it's giving "one struct to describe a whole SoC's clock pulse generator situation" and honestly? iconic. π
πΈ NAME πΈ
struct rzg2l_cpg_info β the SoC-specific CPG Description, no cap π
β¨ SYNOPSIS β¨
like, here's the whole vibe, character for character, don't touch a single glyph:
struct rzg2l_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 rzg2l_mod_clk *mod_clks;
unsigned int num_mod_clks;
unsigned int num_hw_mod_clks;
const unsigned int *no_pm_mod_clks;
unsigned int num_no_pm_mod_clks;
const struct rzg2l_reset *resets;
unsigned int num_resets;
const unsigned int *crit_mod_clks;
unsigned int num_crit_mod_clks;
const unsigned int *crit_resets;
unsigned int num_crit_resets;
bool has_clk_mon_regs;
};
lowkey a lot of fields but we're gonna go through every single one, bestie, no skips π«Ά
π¦ Members π¦
core_clksβ the array of Core Clock definitions π like the guest list, but for clocks.num_core_clksβ how many entries are actually chillin' incore_clks[]π’last_dt_core_clkβ the ID of the last Core Clock that got exported to DT πnum_total_core_clksβ the total number of Core Clocks (that's exported plus internal, so yes, both) π―mod_clksβ the array of Module Clock definitions π§num_mod_clksβ how many entries live inmod_clks[]π’num_hw_mod_clksβ the number of Module Clocks that are actually supported by the hardware π (the hardware said what it said)resetsβ the array of Module Reset definitions πnum_resetsβ number of entries inresets[]π’crit_mod_clksβ an array holding the Module Clock IDs of critical clocks that should not be disabled without a knowledgeable driver π like fr fr, don't just go disabling these, you need someone who actually knows what they're doing.num_crit_mod_clksβ number of entries incrit_mod_clks[]π’crit_resetsβ an array holding the Reset IDs of critical resets that should not be asserted without a knowledgeable driver π same energy, same warning β knowledgeable driver required, periodt.num_crit_resetsβ number of entries incrit_resets[]π’has_clk_mon_regsβ aboolflag saying whether this SoC has CLK_MON registers or not β simple as that, queen.
π SEE ALSO π
- Kernel file
./drivers/clk/renesas/rzg2l-cpg.h struct rzg2l_mod_clk(9)struct rzg2l_reset(9)
go read those next, iykyk π¦
and that's the whole page, bestie!! π this cutie lives under ./drivers/clk/renesas, it's dated October 2026, and it's serving struct rzg2l_cpg_info(9) realness from the Kernel API Manual. slay, ate, no crumbs. πβ¨π
π¦ 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