drivers/clk/mxs/clk-imx28.c
Source file repositories/reference/linux-study-clean/drivers/clk/mxs/clk-imx28.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/clk/mxs/clk-imx28.c- Extension
.c- Size
- 10164 bytes
- Lines
- 250
- 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/clk/mxs.hlinux/clkdev.hlinux/clk.hlinux/clk-provider.hlinux/err.hlinux/init.hlinux/io.hlinux/of.hlinux/of_address.hclk.h
Detected Declarations
enum imx28_clkfunction DIRECTfunction clk_misc_initfunction mx28_clocks_init
Annotated Snippet
if (IS_ERR(clks[i])) {
pr_err("i.MX28 clk %d: register failed with %ld\n",
i, PTR_ERR(clks[i]));
return;
}
clk_data.clks = clks;
clk_data.clk_num = ARRAY_SIZE(clks);
of_clk_add_provider(np, of_clk_src_onecell_get, &clk_data);
clk_register_clkdev(clks[enet_out], NULL, "enet_out");
for (i = 0; i < ARRAY_SIZE(clks_init_on); i++)
clk_prepare_enable(clks[clks_init_on[i]]);
}
CLK_OF_DECLARE(imx28_clkctrl, "fsl,imx28-clkctrl", mx28_clocks_init);
Annotation
- Immediate include surface: `linux/clk/mxs.h`, `linux/clkdev.h`, `linux/clk.h`, `linux/clk-provider.h`, `linux/err.h`, `linux/init.h`, `linux/io.h`, `linux/of.h`.
- Detected declarations: `enum imx28_clk`, `function DIRECT`, `function clk_misc_init`, `function mx28_clocks_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.