drivers/clk/ti/clk-814x.c
Source file repositories/reference/linux-study-clean/drivers/clk/ti/clk-814x.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/clk/ti/clk-814x.c- Extension
.c- Size
- 3485 bytes
- Lines
- 119
- 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.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/kernel.hlinux/clk.hlinux/clk-provider.hlinux/clk/ti.hlinux/of_platform.hdt-bindings/clock/dm814.hclock.h
Detected Declarations
function dm814x_adpll_early_initfunction dm814x_adpll_enable_init_clocksfunction dm814x_dt_clk_initmodule init dm814x_adpll_early_init
Annotated Snippet
core_initcall(dm814x_adpll_early_init);
static const char * const init_clocks[] = {
"pll040clkout", /* MPU 481c5040.adpll.clkout */
"pll290clkout", /* DDR 481c5290.adpll.clkout */
};
static int __init dm814x_adpll_enable_init_clocks(void)
{
int i, err;
if (!timer_clocks_initialized)
return -ENODEV;
for (i = 0; i < ARRAY_SIZE(init_clocks); i++) {
struct clk *clock;
clock = clk_get(NULL, init_clocks[i]);
if (WARN(IS_ERR(clock), "could not find init clock %s\n",
init_clocks[i]))
continue;
err = clk_prepare_enable(clock);
if (WARN(err, "could not enable init clock %s\n",
init_clocks[i]))
continue;
}
return 0;
}
postcore_initcall(dm814x_adpll_enable_init_clocks);
int __init dm814x_dt_clk_init(void)
{
ti_dt_clocks_register(dm814_clks);
omap2_clk_disable_autoidle_all();
ti_clk_add_aliases();
omap2_clk_enable_init_clocks(NULL, 0);
timer_clocks_initialized = true;
return 0;
}
Annotation
- Immediate include surface: `linux/kernel.h`, `linux/clk.h`, `linux/clk-provider.h`, `linux/clk/ti.h`, `linux/of_platform.h`, `dt-bindings/clock/dm814.h`, `clock.h`.
- Detected declarations: `function dm814x_adpll_early_init`, `function dm814x_adpll_enable_init_clocks`, `function dm814x_dt_clk_init`, `module init dm814x_adpll_early_init`.
- 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.