drivers/clk/microchip/clk-mpfs.c
Source file repositories/reference/linux-study-clean/drivers/clk/microchip/clk-mpfs.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/clk/microchip/clk-mpfs.c- Extension
.c- Size
- 18075 bytes
- Lines
- 588
- 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.
- 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/cleanup.hlinux/clk-provider.hlinux/io.hlinux/mfd/syscon.hlinux/module.hlinux/platform_device.hlinux/regmap.hdt-bindings/clock/microchip,mpfs-clock.hsoc/microchip/mpfs.h
Detected Declarations
struct mpfs_clock_datastruct mpfs_msspll_hw_clockstruct mpfs_msspll_out_hw_clockstruct mpfs_cfg_clockstruct mpfs_cfg_hw_clockstruct mpfs_periph_clockstruct mpfs_periph_hw_clockfunction mpfs_clk_msspll_recalc_ratefunction mpfs_clk_register_msspllsfunction mpfs_clk_register_msspll_outsfunction mpfs_cfg_clk_recalc_ratefunction mpfs_cfg_clk_determine_ratefunction mpfs_cfg_clk_set_ratefunction mpfs_clk_register_cfgsfunction mpfs_periph_clk_enablefunction mpfs_periph_clk_disablefunction mpfs_periph_clk_is_enabledfunction mpfs_clk_register_periphsfunction mpfs_clk_syscon_probefunction mpfs_clk_old_format_probefunction mpfs_clk_probefunction clk_mpfs_initfunction clk_mpfs_exitmodule init clk_mpfs_init
Annotated Snippet
core_initcall(clk_mpfs_init);
static void __exit clk_mpfs_exit(void)
{
platform_driver_unregister(&mpfs_clk_driver);
}
module_exit(clk_mpfs_exit);
MODULE_DESCRIPTION("Microchip PolarFire SoC Clock Driver");
MODULE_AUTHOR("Padmarao Begari <padmarao.begari@microchip.com>");
MODULE_AUTHOR("Daire McNamara <daire.mcnamara@microchip.com>");
MODULE_AUTHOR("Conor Dooley <conor.dooley@microchip.com>");
MODULE_IMPORT_NS("MCHP_CLK_MPFS");
Annotation
- Immediate include surface: `linux/cleanup.h`, `linux/clk-provider.h`, `linux/io.h`, `linux/mfd/syscon.h`, `linux/module.h`, `linux/platform_device.h`, `linux/regmap.h`, `dt-bindings/clock/microchip,mpfs-clock.h`.
- Detected declarations: `struct mpfs_clock_data`, `struct mpfs_msspll_hw_clock`, `struct mpfs_msspll_out_hw_clock`, `struct mpfs_cfg_clock`, `struct mpfs_cfg_hw_clock`, `struct mpfs_periph_clock`, `struct mpfs_periph_hw_clock`, `function mpfs_clk_msspll_recalc_rate`, `function mpfs_clk_register_mssplls`, `function mpfs_clk_register_msspll_outs`.
- Atlas domain: Driver Families / drivers/clk.
- Implementation status: integration 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.