drivers/clk/visconti/pll.h
Source file repositories/reference/linux-study-clean/drivers/clk/visconti/pll.h
File Facts
- System
- Linux kernel
- Corpus path
drivers/clk/visconti/pll.h- Extension
.h- Size
- 1499 bytes
- Lines
- 64
- 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-provider.hlinux/regmap.hlinux/spinlock.h
Detected Declarations
struct visconti_pll_providerstruct visconti_pll_rate_tablestruct visconti_pll_info
Annotated Snippet
struct visconti_pll_provider {
void __iomem *reg_base;
struct device_node *node;
/* Must be last */
struct clk_hw_onecell_data clk_data;
};
#define VISCONTI_PLL_RATE(_rate, _dacen, _dsmen, \
_refdiv, _intin, _fracin, _postdiv1, _postdiv2) \
{ \
.rate = _rate, \
.dacen = _dacen, \
.dsmen = _dsmen, \
.refdiv = _refdiv, \
.intin = _intin, \
.fracin = _fracin, \
.postdiv1 = _postdiv1, \
.postdiv2 = _postdiv2 \
}
struct visconti_pll_rate_table {
unsigned long rate;
unsigned int dacen;
unsigned int dsmen;
unsigned int refdiv;
unsigned long intin;
unsigned long fracin;
unsigned int postdiv1;
unsigned int postdiv2;
};
struct visconti_pll_info {
unsigned int id;
const char *name;
const char *parent;
unsigned long base_reg;
const struct visconti_pll_rate_table *rate_table;
};
struct visconti_pll_provider * __init visconti_init_pll(struct device_node *np,
void __iomem *base,
unsigned long nr_plls);
void visconti_register_plls(struct visconti_pll_provider *ctx,
const struct visconti_pll_info *list,
unsigned int nr_plls, spinlock_t *lock);
#endif /* _VISCONTI_PLL_H_ */
Annotation
- Immediate include surface: `linux/clk-provider.h`, `linux/regmap.h`, `linux/spinlock.h`.
- Detected declarations: `struct visconti_pll_provider`, `struct visconti_pll_rate_table`, `struct visconti_pll_info`.
- 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.