drivers/clk/stm32/clk-stm32mp1.c
Source file repositories/reference/linux-study-clean/drivers/clk/stm32/clk-stm32mp1.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/clk/stm32/clk-stm32mp1.c- Extension
.c- Size
- 61359 bytes
- Lines
- 2368
- Domain
- Driver Families
- Bucket
- drivers/clk
- Inferred role
- Driver Families: exported/initcall integration point
- Status
- integration 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.
- Exports symbols or registers init work; inspect boot/module ordering and who consumes the exported contract.
- Uses kernel synchronization; read lock ordering, sleepability, and interrupt context assumptions before translating.
- Allocates kernel memory; connect allocation flags and lifetime to context constraints.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/clk.hlinux/clk-provider.hlinux/delay.hlinux/err.hlinux/io.hlinux/module.hlinux/of.hlinux/of_address.hlinux/platform_device.hlinux/reset-controller.hlinux/slab.hlinux/spinlock.hdt-bindings/clock/stm32mp1-clks.hreset-stm32.h
Detected Declarations
struct stm32_mmuxstruct stm32_clk_mmuxstruct stm32_mgatestruct stm32_clk_mgatestruct clock_configstruct gate_cfgstruct fixed_factor_cfgstruct div_cfgstruct mux_cfgstruct stm32_gate_cfgstruct stm32_div_cfgstruct stm32_mux_cfgstruct stm32_composite_cfgstruct stm32_pll_objstruct timer_ckerstruct stm32_pll_cfgstruct stm32_cktim_cfgstruct stm32_rcc_match_datafunction _clk_hw_register_gatefunction _clk_hw_register_fixed_factorfunction _clk_hw_register_divider_tablefunction _clk_hw_register_muxfunction mp1_gate_clk_enablefunction mp1_gate_clk_disablefunction clk_stm32_register_gate_opsfunction clk_stm32_register_compositefunction mp1_mgate_clk_enablefunction mp1_mgate_clk_disablefunction clk_mmux_get_parentfunction clk_mmux_set_parentfunction __pll_is_enabledfunction pll_enablefunction pll_disablefunction pll_frac_valfunction pll_recalc_ratefunction pll_is_enabledfunction pll_get_parentfunction __bestmultfunction timer_ker_determine_ratefunction timer_ker_set_ratefunction timer_ker_recalc_ratefunction clk_divider_rtc_recalc_ratefunction clk_divider_rtc_set_ratefunction clk_divider_rtc_determine_ratefunction _clk_stm32_register_gatefunction _clk_stm32_register_compositefunction GATE_MP1function stm32_check_security
Annotated Snippet
core_initcall(stm32mp1_clocks_init);
Annotation
- Immediate include surface: `linux/clk.h`, `linux/clk-provider.h`, `linux/delay.h`, `linux/err.h`, `linux/io.h`, `linux/module.h`, `linux/of.h`, `linux/of_address.h`.
- Detected declarations: `struct stm32_mmux`, `struct stm32_clk_mmux`, `struct stm32_mgate`, `struct stm32_clk_mgate`, `struct clock_config`, `struct gate_cfg`, `struct fixed_factor_cfg`, `struct div_cfg`, `struct mux_cfg`, `struct stm32_gate_cfg`.
- Atlas domain: Driver Families / drivers/clk.
- Implementation status: integration implementation candidate.
- Synchronization appears in or near this file; preserve lock ordering, sleepability, and interrupt-context constraints.
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.