drivers/pinctrl/freescale/pinctrl-mxs.h

Source file repositories/reference/linux-study-clean/drivers/pinctrl/freescale/pinctrl-mxs.h

File Facts

System
Linux kernel
Corpus path
drivers/pinctrl/freescale/pinctrl-mxs.h
Extension
.h
Size
1719 bytes
Lines
85
Domain
Driver Families
Bucket
drivers/pinctrl
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 mxs_function {
	const char *name;
	const char **groups;
	unsigned ngroups;
};

struct mxs_group {
	const char *name;
	unsigned int *pins;
	unsigned npins;
	u8 *muxsel;
	u8 config;
};

struct mxs_regs {
	u16 muxsel;
	u16 drive;
	u16 pull;
};

struct mxs_pinctrl_soc_data {
	const struct mxs_regs *regs;
	const struct pinctrl_pin_desc *pins;
	unsigned npins;
	struct mxs_function *functions;
	unsigned nfunctions;
	struct mxs_group *groups;
	unsigned ngroups;
};

int mxs_pinctrl_probe(struct platform_device *pdev,
		      struct mxs_pinctrl_soc_data *soc);

#endif /* __PINCTRL_MXS_H */

Annotation

Implementation Notes