drivers/clk/berlin/berlin2-div.h

Source file repositories/reference/linux-study-clean/drivers/clk/berlin/berlin2-div.h

File Facts

System
Linux kernel
Corpus path
drivers/clk/berlin/berlin2-div.h
Extension
.h
Size
1836 bytes
Lines
79
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.

Dependency Surface

Detected Declarations

Annotated Snippet

struct berlin2_div_map {
	u16 pll_select_offs;
	u16 pll_switch_offs;
	u16 div_select_offs;
	u16 div_switch_offs;
	u16 div3_switch_offs;
	u16 gate_offs;
	u8 pll_select_shift;
	u8 pll_switch_shift;
	u8 div_select_shift;
	u8 div_switch_shift;
	u8 div3_switch_shift;
	u8 gate_shift;
};

struct berlin2_div_data {
	const char *name;
	const u8 *parent_ids;
	int num_parents;
	unsigned long flags;
	struct berlin2_div_map map;
	u8 div_flags;
};

struct clk_hw *
berlin2_div_register(const struct berlin2_div_map *map,
	     void __iomem *base,  const char *name, u8 div_flags,
	     const char **parent_names, int num_parents,
	     unsigned long flags,  spinlock_t *lock);

#endif /* __BERLIN2_DIV_H */

Annotation

Implementation Notes