drivers/clk/rockchip/clk-rv1126b.c
Source file repositories/reference/linux-study-clean/drivers/clk/rockchip/clk-rv1126b.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/clk/rockchip/clk-rv1126b.c- Extension
.c- Size
- 52671 bytes
- Lines
- 1118
- 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.hlinux/clk-provider.hlinux/module.hlinux/of.hlinux/of_address.hlinux/of_device.hlinux/platform_device.hlinux/regmap.hlinux/syscore_ops.hdt-bindings/clock/rockchip,rv1126b-cru.hclk.h
Detected Declarations
struct clk_rv1126b_initsenum rv1126b_pllsfunction rv1126b_clk_initfunction clk_rv1126b_probe
Annotated Snippet
struct clk_rv1126b_inits {
void (*inits)(struct device_node *np);
};
static const struct clk_rv1126b_inits clk_rv1126b_init = {
.inits = rv1126b_clk_init,
};
static const struct of_device_id clk_rv1126b_match_table[] = {
{
.compatible = "rockchip,rv1126b-cru",
.data = &clk_rv1126b_init,
},
{ }
};
static int clk_rv1126b_probe(struct platform_device *pdev)
{
const struct clk_rv1126b_inits *init_data;
struct device *dev = &pdev->dev;
init_data = device_get_match_data(dev);
if (!init_data)
return -EINVAL;
if (init_data->inits)
init_data->inits(dev->of_node);
return 0;
}
static struct platform_driver clk_rv1126b_driver = {
.probe = clk_rv1126b_probe,
.driver = {
.name = "clk-rv1126b",
.of_match_table = clk_rv1126b_match_table,
.suppress_bind_attrs = true,
},
};
builtin_platform_driver_probe(clk_rv1126b_driver, clk_rv1126b_probe);
Annotation
- Immediate include surface: `linux/clk.h`, `linux/clk-provider.h`, `linux/module.h`, `linux/of.h`, `linux/of_address.h`, `linux/of_device.h`, `linux/platform_device.h`, `linux/regmap.h`.
- Detected declarations: `struct clk_rv1126b_inits`, `enum rv1126b_plls`, `function rv1126b_clk_init`, `function clk_rv1126b_probe`.
- 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.