1
2
3
4
5
6
7
8
9
10
11 #ifndef __DRIVERS_PINCTRL_IMX1_H
12 #define __DRIVERS_PINCTRL_IMX1_H
13
14 struct platform_device;
15
16
17
18
19
20
21
22 struct imx1_pin {
23 unsigned int pin_id;
24 unsigned int mux_id;
25 unsigned long config;
26 };
27
28
29
30
31
32
33
34
35 struct imx1_pin_group {
36 const char *name;
37 unsigned int *pin_ids;
38 struct imx1_pin *pins;
39 unsigned npins;
40 };
41
42
43
44
45
46
47
48 struct imx1_pmx_func {
49 const char *name;
50 const char **groups;
51 unsigned num_groups;
52 };
53
54 struct imx1_pinctrl_soc_info {
55 struct device *dev;
56 const struct pinctrl_pin_desc *pins;
57 unsigned int npins;
58 struct imx1_pin_group *groups;
59 unsigned int ngroups;
60 struct imx1_pmx_func *functions;
61 unsigned int nfunctions;
62 };
63
64 #define IMX_PINCTRL_PIN(pin) PINCTRL_PIN(pin, #pin)
65
66 int imx1_pinctrl_core_probe(struct platform_device *pdev,
67 struct imx1_pinctrl_soc_info *info);
68 #endif