STRUCT RZG2L_CPG_PRIV(9)
π struct rzg2l_cpg_priv(9) π
okay so bestie, welcome to the Kernel API Manual β¨ this one's all about struct rzg2l_cpg_priv β that's the Clock Pulse Generator Private Data struct, and yes it's literally the main character of the Renesas RZ/G2L clock driver π
πΈ NAME πΈ
struct rzg2l_cpg_priv β Clock Pulse Generator Private Data π
β¨ SYNOPSIS β¨
like, here's the whole vibe, no cap:
struct rzg2l_cpg_priv {
struct reset_controller_dev rcdev;
struct device *dev;
void __iomem *base;
spinlock_t rmw_lock;
struct clk **clks;
unsigned int num_core_clks;
unsigned int num_mod_clks;
unsigned int num_resets;
unsigned int last_dt_core_clk;
const struct rzg2l_cpg_info *info;
struct generic_pm_domain genpd;
struct rzg2l_pll5_mux_dsi_div_param mux_dsi_div_params;
};
π«Ά Members π«Ά
rcdevβ the reset controller entity, it's giving "who's in charge of resets" energy πdevβ the CPG device itself, iconicbaseβ base address of the CPG register block, aka where the registers actually live πrmw_lockβ a spinlock that protects register accesses, so nobody's out here fighting over the same registers πclksβ the array holding all the Core and Module Clocks, the whole squad πnum_core_clksβ how many Core Clocks are chillin' inclks[]num_mod_clksβ how many Module Clocks are inclks[]num_resetsβ how many Module Resets live ininfo->resets[]last_dt_core_clkβ the ID of the last Core Clock exported to DT, iykykinfoβ pointer to the platform data ποΈgenpdβ the PM domain β‘mux_dsi_div_paramsβ the pll5 mux and dsi div parameters, fancy fr fr π
π¦ SEE ALSO π¦
Kernel file ./drivers/clk/renesas/rzg2l-cpg.c β plus these icons: struct clk_hw_data(9), struct sd_mux_hw_data(9), struct div_hw_data(9), struct mstop(9), struct mod_clock(9) π
lowkey a whole ecosystem in here bestie, go read the friends too π
so yeah, that's the whole page β¨ this one came out of ./drivers/clk/renesas, dated October 2026, and the manual name on the tin is struct rzg2l_cpg_priv(9) β slay, go forth and read clocks π
π¦ 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