drivers/clk/renesas/r8a7791-cpg-mssr.c
Source file repositories/reference/linux-study-clean/drivers/clk/renesas/r8a7791-cpg-mssr.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/clk/renesas/r8a7791-cpg-mssr.c- Extension
.c- Size
- 10602 bytes
- Lines
- 286
- Domain
- Driver Families
- Bucket
- drivers/clk
- Inferred role
- Driver Families: implementation source
- Status
- source implementation candidate
Why This File Exists
Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.
- Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/device.hlinux/init.hlinux/kernel.hlinux/of.hlinux/soc/renesas/rcar-rst.hdt-bindings/clock/r8a7791-cpg-mssr.hrenesas-cpg-mssr.hrcar-gen2-cpg.h
Detected Declarations
enum clk_idsfunction r8a7791_cpg_mssr_init
Annotated Snippet
if (r8a7791_core_clks[i].id == R8A7791_CLK_ZG) {
r8a7791_core_clks[i].div = 5;
break;
}
}
return rcar_gen2_cpg_init(cpg_pll_config, 2, cpg_mode);
}
const struct cpg_mssr_info r8a7791_cpg_mssr_info __initconst = {
/* Core Clocks */
.core_clks = r8a7791_core_clks,
.num_core_clks = ARRAY_SIZE(r8a7791_core_clks),
.last_dt_core_clk = LAST_DT_CORE_CLK,
.num_total_core_clks = MOD_CLK_BASE,
/* Module Clocks */
.mod_clks = r8a7791_mod_clks,
.num_mod_clks = ARRAY_SIZE(r8a7791_mod_clks),
.num_hw_mod_clks = 12 * 32,
/* Critical Module Clocks */
.crit_mod_clks = r8a7791_crit_mod_clks,
.num_crit_mod_clks = ARRAY_SIZE(r8a7791_crit_mod_clks),
/* Callbacks */
.init = r8a7791_cpg_mssr_init,
.cpg_clk_register = rcar_gen2_cpg_clk_register,
};
Annotation
- Immediate include surface: `linux/device.h`, `linux/init.h`, `linux/kernel.h`, `linux/of.h`, `linux/soc/renesas/rcar-rst.h`, `dt-bindings/clock/r8a7791-cpg-mssr.h`, `renesas-cpg-mssr.h`, `rcar-gen2-cpg.h`.
- Detected declarations: `enum clk_ids`, `function r8a7791_cpg_mssr_init`.
- Atlas domain: Driver Families / drivers/clk.
- Implementation status: source implementation candidate.
Implementation Notes
- This generated page is the file-by-file coverage layer; curated subsystem chapters should link here when they synthesize a multi-file control flow.
- Core OS pages should be promoted from atlas-only to deep-reviewed when they explain data structures, invariants, locking, lifecycle, and C implementation snippets.
- Driver-family pages are intentionally pattern-oriented unless they are part of the selected PCIe/NVMe representative device path.