diff options
author | Carlo Caione <carlo@endlessm.com> | 2015-03-19 17:34:10 -0400 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2015-04-07 05:40:42 -0400 |
commit | 0cf6f3c2b5ef0b5b3bb82f02edbeda4751b27763 (patch) | |
tree | 2255249d481a019a89680b23bcf308c477d1212e | |
parent | 25a853d037a40b7ac2c317adef6442ef92d8407e (diff) |
pinctrl: Cleanup Meson8 driver
This patch introduces a new PIN macro and few small modifications to
simplify and shorten the Meson pinctrl drivers and cleanup the support
file for the AmLogic Meson8 SoC.
Signed-off-by: Carlo Caione <carlo@endlessm.com>
Acked-by: Beniamino Galvani <b.galvani@gmail.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
-rw-r--r-- | drivers/pinctrl/meson/pinctrl-meson.h | 8 | ||||
-rw-r--r-- | drivers/pinctrl/meson/pinctrl-meson8.c | 1050 |
2 files changed, 461 insertions, 597 deletions
diff --git a/drivers/pinctrl/meson/pinctrl-meson.h b/drivers/pinctrl/meson/pinctrl-meson.h index bfea8adc7953..bc48c781ca51 100644 --- a/drivers/pinctrl/meson/pinctrl-meson.h +++ b/drivers/pinctrl/meson/pinctrl-meson.h | |||
@@ -155,6 +155,8 @@ struct meson_pinctrl { | |||
155 | struct meson_domain *domains; | 155 | struct meson_domain *domains; |
156 | }; | 156 | }; |
157 | 157 | ||
158 | #define PIN(x, b) (b + x) | ||
159 | |||
158 | #define GROUP(grp, r, b) \ | 160 | #define GROUP(grp, r, b) \ |
159 | { \ | 161 | { \ |
160 | .name = #grp, \ | 162 | .name = #grp, \ |
@@ -165,10 +167,10 @@ struct meson_pinctrl { | |||
165 | .domain = 0, \ | 167 | .domain = 0, \ |
166 | } | 168 | } |
167 | 169 | ||
168 | #define GPIO_GROUP(gpio) \ | 170 | #define GPIO_GROUP(gpio, b) \ |
169 | { \ | 171 | { \ |
170 | .name = #gpio, \ | 172 | .name = #gpio, \ |
171 | .pins = (const unsigned int[]){ PIN_ ## gpio}, \ | 173 | .pins = (const unsigned int[]){ PIN(gpio, b) }, \ |
172 | .num_pins = 1, \ | 174 | .num_pins = 1, \ |
173 | .is_gpio = true, \ | 175 | .is_gpio = true, \ |
174 | } | 176 | } |
@@ -204,6 +206,6 @@ struct meson_pinctrl { | |||
204 | }, \ | 206 | }, \ |
205 | } | 207 | } |
206 | 208 | ||
207 | #define MESON_PIN(x) PINCTRL_PIN(PIN_ ## x, #x) | 209 | #define MESON_PIN(x, b) PINCTRL_PIN(PIN(x, b), #x) |
208 | 210 | ||
209 | extern struct meson_pinctrl_data meson8_pinctrl_data; | 211 | extern struct meson_pinctrl_data meson8_pinctrl_data; |
diff --git a/drivers/pinctrl/meson/pinctrl-meson8.c b/drivers/pinctrl/meson/pinctrl-meson8.c index f8aa3a281767..7b1cc91733ef 100644 --- a/drivers/pinctrl/meson/pinctrl-meson8.c +++ b/drivers/pinctrl/meson/pinctrl-meson8.c | |||
@@ -14,620 +14,482 @@ | |||
14 | #include <dt-bindings/gpio/meson8-gpio.h> | 14 | #include <dt-bindings/gpio/meson8-gpio.h> |
15 | #include "pinctrl-meson.h" | 15 | #include "pinctrl-meson.h" |
16 | 16 | ||
17 | #define AO_OFFSET 120 | 17 | #define AO_OFF 120 |
18 | |||
19 | #define PIN_GPIOX_0 GPIOX_0 | ||
20 | #define PIN_GPIOX_1 GPIOX_1 | ||
21 | #define PIN_GPIOX_2 GPIOX_2 | ||
22 | #define PIN_GPIOX_3 GPIOX_3 | ||
23 | #define PIN_GPIOX_4 GPIOX_4 | ||
24 | #define PIN_GPIOX_5 GPIOX_5 | ||
25 | #define PIN_GPIOX_6 GPIOX_6 | ||
26 | #define PIN_GPIOX_7 GPIOX_7 | ||
27 | #define PIN_GPIOX_8 GPIOX_8 | ||
28 | #define PIN_GPIOX_9 GPIOX_9 | ||
29 | #define PIN_GPIOX_10 GPIOX_10 | ||
30 | #define PIN_GPIOX_11 GPIOX_11 | ||
31 | #define PIN_GPIOX_12 GPIOX_12 | ||
32 | #define PIN_GPIOX_13 GPIOX_13 | ||
33 | #define PIN_GPIOX_14 GPIOX_14 | ||
34 | #define PIN_GPIOX_15 GPIOX_15 | ||
35 | #define PIN_GPIOX_16 GPIOX_16 | ||
36 | #define PIN_GPIOX_17 GPIOX_17 | ||
37 | #define PIN_GPIOX_18 GPIOX_18 | ||
38 | #define PIN_GPIOX_19 GPIOX_19 | ||
39 | #define PIN_GPIOX_20 GPIOX_20 | ||
40 | #define PIN_GPIOX_21 GPIOX_21 | ||
41 | #define PIN_GPIOY_0 GPIOY_0 | ||
42 | #define PIN_GPIOY_1 GPIOY_1 | ||
43 | #define PIN_GPIOY_2 GPIOY_2 | ||
44 | #define PIN_GPIOY_3 GPIOY_3 | ||
45 | #define PIN_GPIOY_4 GPIOY_4 | ||
46 | #define PIN_GPIOY_5 GPIOY_5 | ||
47 | #define PIN_GPIOY_6 GPIOY_6 | ||
48 | #define PIN_GPIOY_7 GPIOY_7 | ||
49 | #define PIN_GPIOY_8 GPIOY_8 | ||
50 | #define PIN_GPIOY_9 GPIOY_9 | ||
51 | #define PIN_GPIOY_10 GPIOY_10 | ||
52 | #define PIN_GPIOY_11 GPIOY_11 | ||
53 | #define PIN_GPIOY_12 GPIOY_12 | ||
54 | #define PIN_GPIOY_13 GPIOY_13 | ||
55 | #define PIN_GPIOY_14 GPIOY_14 | ||
56 | #define PIN_GPIOY_15 GPIOY_15 | ||
57 | #define PIN_GPIOY_16 GPIOY_16 | ||
58 | #define PIN_GPIODV_0 GPIODV_0 | ||
59 | #define PIN_GPIODV_1 GPIODV_1 | ||
60 | #define PIN_GPIODV_2 GPIODV_2 | ||
61 | #define PIN_GPIODV_3 GPIODV_3 | ||
62 | #define PIN_GPIODV_4 GPIODV_4 | ||
63 | #define PIN_GPIODV_5 GPIODV_5 | ||
64 | #define PIN_GPIODV_6 GPIODV_6 | ||
65 | #define PIN_GPIODV_7 GPIODV_7 | ||
66 | #define PIN_GPIODV_8 GPIODV_8 | ||
67 | #define PIN_GPIODV_9 GPIODV_9 | ||
68 | #define PIN_GPIODV_10 GPIODV_10 | ||
69 | #define PIN_GPIODV_11 GPIODV_11 | ||
70 | #define PIN_GPIODV_12 GPIODV_12 | ||
71 | #define PIN_GPIODV_13 GPIODV_13 | ||
72 | #define PIN_GPIODV_14 GPIODV_14 | ||
73 | #define PIN_GPIODV_15 GPIODV_15 | ||
74 | #define PIN_GPIODV_16 GPIODV_16 | ||
75 | #define PIN_GPIODV_17 GPIODV_17 | ||
76 | #define PIN_GPIODV_18 GPIODV_18 | ||
77 | #define PIN_GPIODV_19 GPIODV_19 | ||
78 | #define PIN_GPIODV_20 GPIODV_20 | ||
79 | #define PIN_GPIODV_21 GPIODV_21 | ||
80 | #define PIN_GPIODV_22 GPIODV_22 | ||
81 | #define PIN_GPIODV_23 GPIODV_23 | ||
82 | #define PIN_GPIODV_24 GPIODV_24 | ||
83 | #define PIN_GPIODV_25 GPIODV_25 | ||
84 | #define PIN_GPIODV_26 GPIODV_26 | ||
85 | #define PIN_GPIODV_27 GPIODV_27 | ||
86 | #define PIN_GPIODV_28 GPIODV_28 | ||
87 | #define PIN_GPIODV_29 GPIODV_29 | ||
88 | #define PIN_GPIOH_0 GPIOH_0 | ||
89 | #define PIN_GPIOH_1 GPIOH_1 | ||
90 | #define PIN_GPIOH_2 GPIOH_2 | ||
91 | #define PIN_GPIOH_3 GPIOH_3 | ||
92 | #define PIN_GPIOH_4 GPIOH_4 | ||
93 | #define PIN_GPIOH_5 GPIOH_5 | ||
94 | #define PIN_GPIOH_6 GPIOH_6 | ||
95 | #define PIN_GPIOH_7 GPIOH_7 | ||
96 | #define PIN_GPIOH_8 GPIOH_8 | ||
97 | #define PIN_GPIOH_9 GPIOH_9 | ||
98 | #define PIN_GPIOZ_0 GPIOZ_0 | ||
99 | #define PIN_GPIOZ_1 GPIOZ_1 | ||
100 | #define PIN_GPIOZ_2 GPIOZ_2 | ||
101 | #define PIN_GPIOZ_3 GPIOZ_3 | ||
102 | #define PIN_GPIOZ_4 GPIOZ_4 | ||
103 | #define PIN_GPIOZ_5 GPIOZ_5 | ||
104 | #define PIN_GPIOZ_6 GPIOZ_6 | ||
105 | #define PIN_GPIOZ_7 GPIOZ_7 | ||
106 | #define PIN_GPIOZ_8 GPIOZ_8 | ||
107 | #define PIN_GPIOZ_9 GPIOZ_9 | ||
108 | #define PIN_GPIOZ_10 GPIOZ_10 | ||
109 | #define PIN_GPIOZ_11 GPIOZ_11 | ||
110 | #define PIN_GPIOZ_12 GPIOZ_12 | ||
111 | #define PIN_GPIOZ_13 GPIOZ_13 | ||
112 | #define PIN_GPIOZ_14 GPIOZ_14 | ||
113 | #define PIN_CARD_0 CARD_0 | ||
114 | #define PIN_CARD_1 CARD_1 | ||
115 | #define PIN_CARD_2 CARD_2 | ||
116 | #define PIN_CARD_3 CARD_3 | ||
117 | #define PIN_CARD_4 CARD_4 | ||
118 | #define PIN_CARD_5 CARD_5 | ||
119 | #define PIN_CARD_6 CARD_6 | ||
120 | #define PIN_BOOT_0 BOOT_0 | ||
121 | #define PIN_BOOT_1 BOOT_1 | ||
122 | #define PIN_BOOT_2 BOOT_2 | ||
123 | #define PIN_BOOT_3 BOOT_3 | ||
124 | #define PIN_BOOT_4 BOOT_4 | ||
125 | #define PIN_BOOT_5 BOOT_5 | ||
126 | #define PIN_BOOT_6 BOOT_6 | ||
127 | #define PIN_BOOT_7 BOOT_7 | ||
128 | #define PIN_BOOT_8 BOOT_8 | ||
129 | #define PIN_BOOT_9 BOOT_9 | ||
130 | #define PIN_BOOT_10 BOOT_10 | ||
131 | #define PIN_BOOT_11 BOOT_11 | ||
132 | #define PIN_BOOT_12 BOOT_12 | ||
133 | #define PIN_BOOT_13 BOOT_13 | ||
134 | #define PIN_BOOT_14 BOOT_14 | ||
135 | #define PIN_BOOT_15 BOOT_15 | ||
136 | #define PIN_BOOT_16 BOOT_16 | ||
137 | #define PIN_BOOT_17 BOOT_17 | ||
138 | #define PIN_BOOT_18 BOOT_18 | ||
139 | |||
140 | #define PIN_GPIOAO_0 (AO_OFFSET + GPIOAO_0) | ||
141 | #define PIN_GPIOAO_1 (AO_OFFSET + GPIOAO_1) | ||
142 | #define PIN_GPIOAO_2 (AO_OFFSET + GPIOAO_2) | ||
143 | #define PIN_GPIOAO_3 (AO_OFFSET + GPIOAO_3) | ||
144 | #define PIN_GPIOAO_4 (AO_OFFSET + GPIOAO_4) | ||
145 | #define PIN_GPIOAO_5 (AO_OFFSET + GPIOAO_5) | ||
146 | #define PIN_GPIOAO_6 (AO_OFFSET + GPIOAO_6) | ||
147 | #define PIN_GPIOAO_7 (AO_OFFSET + GPIOAO_7) | ||
148 | #define PIN_GPIOAO_8 (AO_OFFSET + GPIOAO_8) | ||
149 | #define PIN_GPIOAO_9 (AO_OFFSET + GPIOAO_9) | ||
150 | #define PIN_GPIOAO_10 (AO_OFFSET + GPIOAO_10) | ||
151 | #define PIN_GPIOAO_11 (AO_OFFSET + GPIOAO_11) | ||
152 | #define PIN_GPIOAO_12 (AO_OFFSET + GPIOAO_12) | ||
153 | #define PIN_GPIOAO_13 (AO_OFFSET + GPIOAO_13) | ||
154 | #define PIN_GPIO_BSD_EN (AO_OFFSET + GPIO_BSD_EN) | ||
155 | #define PIN_GPIO_TEST_N (AO_OFFSET + GPIO_TEST_N) | ||
156 | 18 | ||
157 | static const struct pinctrl_pin_desc meson8_pins[] = { | 19 | static const struct pinctrl_pin_desc meson8_pins[] = { |
158 | MESON_PIN(GPIOX_0), | 20 | MESON_PIN(GPIOX_0, 0), |
159 | MESON_PIN(GPIOX_1), | 21 | MESON_PIN(GPIOX_1, 0), |
160 | MESON_PIN(GPIOX_2), | 22 | MESON_PIN(GPIOX_2, 0), |
161 | MESON_PIN(GPIOX_3), | 23 | MESON_PIN(GPIOX_3, 0), |
162 | MESON_PIN(GPIOX_4), | 24 | MESON_PIN(GPIOX_4, 0), |
163 | MESON_PIN(GPIOX_5), | 25 | MESON_PIN(GPIOX_5, 0), |
164 | MESON_PIN(GPIOX_6), | 26 | MESON_PIN(GPIOX_6, 0), |
165 | MESON_PIN(GPIOX_7), | 27 | MESON_PIN(GPIOX_7, 0), |
166 | MESON_PIN(GPIOX_8), | 28 | MESON_PIN(GPIOX_8, 0), |
167 | MESON_PIN(GPIOX_9), | 29 | MESON_PIN(GPIOX_9, 0), |
168 | MESON_PIN(GPIOX_10), | 30 | MESON_PIN(GPIOX_10, 0), |
169 | MESON_PIN(GPIOX_11), | 31 | MESON_PIN(GPIOX_11, 0), |
170 | MESON_PIN(GPIOX_12), | 32 | MESON_PIN(GPIOX_12, 0), |
171 | MESON_PIN(GPIOX_13), | 33 | MESON_PIN(GPIOX_13, 0), |
172 | MESON_PIN(GPIOX_14), | 34 | MESON_PIN(GPIOX_14, 0), |
173 | MESON_PIN(GPIOX_15), | 35 | MESON_PIN(GPIOX_15, 0), |
174 | MESON_PIN(GPIOX_16), | 36 | MESON_PIN(GPIOX_16, 0), |
175 | MESON_PIN(GPIOX_17), | 37 | MESON_PIN(GPIOX_17, 0), |
176 | MESON_PIN(GPIOX_18), | 38 | MESON_PIN(GPIOX_18, 0), |
177 | MESON_PIN(GPIOX_19), | 39 | MESON_PIN(GPIOX_19, 0), |
178 | MESON_PIN(GPIOX_20), | 40 | MESON_PIN(GPIOX_20, 0), |
179 | MESON_PIN(GPIOX_21), | 41 | MESON_PIN(GPIOX_21, 0), |
180 | MESON_PIN(GPIOY_0), | 42 | MESON_PIN(GPIOY_0, 0), |
181 | MESON_PIN(GPIOY_1), | 43 | MESON_PIN(GPIOY_1, 0), |
182 | MESON_PIN(GPIOY_2), | 44 | MESON_PIN(GPIOY_2, 0), |
183 | MESON_PIN(GPIOY_3), | 45 | MESON_PIN(GPIOY_3, 0), |
184 | MESON_PIN(GPIOY_4), | 46 | MESON_PIN(GPIOY_4, 0), |
185 | MESON_PIN(GPIOY_5), | 47 | MESON_PIN(GPIOY_5, 0), |
186 | MESON_PIN(GPIOY_6), | 48 | MESON_PIN(GPIOY_6, 0), |
187 | MESON_PIN(GPIOY_7), | 49 | MESON_PIN(GPIOY_7, 0), |
188 | MESON_PIN(GPIOY_8), | 50 | MESON_PIN(GPIOY_8, 0), |
189 | MESON_PIN(GPIOY_9), | 51 | MESON_PIN(GPIOY_9, 0), |
190 | MESON_PIN(GPIOY_10), | 52 | MESON_PIN(GPIOY_10, 0), |
191 | MESON_PIN(GPIOY_11), | 53 | MESON_PIN(GPIOY_11, 0), |
192 | MESON_PIN(GPIOY_12), | 54 | MESON_PIN(GPIOY_12, 0), |
193 | MESON_PIN(GPIOY_13), | 55 | MESON_PIN(GPIOY_13, 0), |
194 | MESON_PIN(GPIOY_14), | 56 | MESON_PIN(GPIOY_14, 0), |
195 | MESON_PIN(GPIOY_15), | 57 | MESON_PIN(GPIOY_15, 0), |
196 | MESON_PIN(GPIOY_16), | 58 | MESON_PIN(GPIOY_16, 0), |
197 | MESON_PIN(GPIODV_0), | 59 | MESON_PIN(GPIODV_0, 0), |
198 | MESON_PIN(GPIODV_1), | 60 | MESON_PIN(GPIODV_1, 0), |
199 | MESON_PIN(GPIODV_2), | 61 | MESON_PIN(GPIODV_2, 0), |
200 | MESON_PIN(GPIODV_3), | 62 | MESON_PIN(GPIODV_3, 0), |
201 | MESON_PIN(GPIODV_4), | 63 | MESON_PIN(GPIODV_4, 0), |
202 | MESON_PIN(GPIODV_5), | 64 | MESON_PIN(GPIODV_5, 0), |
203 | MESON_PIN(GPIODV_6), | 65 | MESON_PIN(GPIODV_6, 0), |
204 | MESON_PIN(GPIODV_7), | 66 | MESON_PIN(GPIODV_7, 0), |
205 | MESON_PIN(GPIODV_8), | 67 | MESON_PIN(GPIODV_8, 0), |
206 | MESON_PIN(GPIODV_9), | 68 | MESON_PIN(GPIODV_9, 0), |
207 | MESON_PIN(GPIODV_10), | 69 | MESON_PIN(GPIODV_10, 0), |
208 | MESON_PIN(GPIODV_11), | 70 | MESON_PIN(GPIODV_11, 0), |
209 | MESON_PIN(GPIODV_12), | 71 | MESON_PIN(GPIODV_12, 0), |
210 | MESON_PIN(GPIODV_13), | 72 | MESON_PIN(GPIODV_13, 0), |
211 | MESON_PIN(GPIODV_14), | 73 | MESON_PIN(GPIODV_14, 0), |
212 | MESON_PIN(GPIODV_15), | 74 | MESON_PIN(GPIODV_15, 0), |
213 | MESON_PIN(GPIODV_16), | 75 | MESON_PIN(GPIODV_16, 0), |
214 | MESON_PIN(GPIODV_17), | 76 | MESON_PIN(GPIODV_17, 0), |
215 | MESON_PIN(GPIODV_18), | 77 | MESON_PIN(GPIODV_18, 0), |
216 | MESON_PIN(GPIODV_19), | 78 | MESON_PIN(GPIODV_19, 0), |
217 | MESON_PIN(GPIODV_20), | 79 | MESON_PIN(GPIODV_20, 0), |
218 | MESON_PIN(GPIODV_21), | 80 | MESON_PIN(GPIODV_21, 0), |
219 | MESON_PIN(GPIODV_22), | 81 | MESON_PIN(GPIODV_22, 0), |
220 | MESON_PIN(GPIODV_23), | 82 | MESON_PIN(GPIODV_23, 0), |
221 | MESON_PIN(GPIODV_24), | 83 | MESON_PIN(GPIODV_24, 0), |
222 | MESON_PIN(GPIODV_25), | 84 | MESON_PIN(GPIODV_25, 0), |
223 | MESON_PIN(GPIODV_26), | 85 | MESON_PIN(GPIODV_26, 0), |
224 | MESON_PIN(GPIODV_27), | 86 | MESON_PIN(GPIODV_27, 0), |
225 | MESON_PIN(GPIODV_28), | 87 | MESON_PIN(GPIODV_28, 0), |
226 | MESON_PIN(GPIODV_29), | 88 | MESON_PIN(GPIODV_29, 0), |
227 | MESON_PIN(GPIOH_0), | 89 | MESON_PIN(GPIOH_0, 0), |
228 | MESON_PIN(GPIOH_1), | 90 | MESON_PIN(GPIOH_1, 0), |
229 | MESON_PIN(GPIOH_2), | 91 | MESON_PIN(GPIOH_2, 0), |
230 | MESON_PIN(GPIOH_3), | 92 | MESON_PIN(GPIOH_3, 0), |
231 | MESON_PIN(GPIOH_4), | 93 | MESON_PIN(GPIOH_4, 0), |
232 | MESON_PIN(GPIOH_5), | 94 | MESON_PIN(GPIOH_5, 0), |
233 | MESON_PIN(GPIOH_6), | 95 | MESON_PIN(GPIOH_6, 0), |
234 | MESON_PIN(GPIOH_7), | 96 | MESON_PIN(GPIOH_7, 0), |
235 | MESON_PIN(GPIOH_8), | 97 | MESON_PIN(GPIOH_8, 0), |
236 | MESON_PIN(GPIOH_9), | 98 | MESON_PIN(GPIOH_9, 0), |
237 | MESON_PIN(GPIOZ_0), | 99 | MESON_PIN(GPIOZ_0, 0), |
238 | MESON_PIN(GPIOZ_1), | 100 | MESON_PIN(GPIOZ_1, 0), |
239 | MESON_PIN(GPIOZ_2), | 101 | MESON_PIN(GPIOZ_2, 0), |
240 | MESON_PIN(GPIOZ_3), | 102 | MESON_PIN(GPIOZ_3, 0), |
241 | MESON_PIN(GPIOZ_4), | 103 | MESON_PIN(GPIOZ_4, 0), |
242 | MESON_PIN(GPIOZ_5), | 104 | MESON_PIN(GPIOZ_5, 0), |
243 | MESON_PIN(GPIOZ_6), | 105 | MESON_PIN(GPIOZ_6, 0), |
244 | MESON_PIN(GPIOZ_7), | 106 | MESON_PIN(GPIOZ_7, 0), |
245 | MESON_PIN(GPIOZ_8), | 107 | MESON_PIN(GPIOZ_8, 0), |
246 | MESON_PIN(GPIOZ_9), | 108 | MESON_PIN(GPIOZ_9, 0), |
247 | MESON_PIN(GPIOZ_10), | 109 | MESON_PIN(GPIOZ_10, 0), |
248 | MESON_PIN(GPIOZ_11), | 110 | MESON_PIN(GPIOZ_11, 0), |
249 | MESON_PIN(GPIOZ_12), | 111 | MESON_PIN(GPIOZ_12, 0), |
250 | MESON_PIN(GPIOZ_13), | 112 | MESON_PIN(GPIOZ_13, 0), |
251 | MESON_PIN(GPIOZ_14), | 113 | MESON_PIN(GPIOZ_14, 0), |
252 | MESON_PIN(CARD_0), | 114 | MESON_PIN(CARD_0, 0), |
253 | MESON_PIN(CARD_1), | 115 | MESON_PIN(CARD_1, 0), |
254 | MESON_PIN(CARD_2), | 116 | MESON_PIN(CARD_2, 0), |
255 | MESON_PIN(CARD_3), | 117 | MESON_PIN(CARD_3, 0), |
256 | MESON_PIN(CARD_4), | 118 | MESON_PIN(CARD_4, 0), |
257 | MESON_PIN(CARD_5), | 119 | MESON_PIN(CARD_5, 0), |
258 | MESON_PIN(CARD_6), | 120 | MESON_PIN(CARD_6, 0), |
259 | MESON_PIN(BOOT_0), | 121 | MESON_PIN(BOOT_0, 0), |
260 | MESON_PIN(BOOT_1), | 122 | MESON_PIN(BOOT_1, 0), |
261 | MESON_PIN(BOOT_2), | 123 | MESON_PIN(BOOT_2, 0), |
262 | MESON_PIN(BOOT_3), | 124 | MESON_PIN(BOOT_3, 0), |
263 | MESON_PIN(BOOT_4), | 125 | MESON_PIN(BOOT_4, 0), |
264 | MESON_PIN(BOOT_5), | 126 | MESON_PIN(BOOT_5, 0), |
265 | MESON_PIN(BOOT_6), | 127 | MESON_PIN(BOOT_6, 0), |
266 | MESON_PIN(BOOT_7), | 128 | MESON_PIN(BOOT_7, 0), |
267 | MESON_PIN(BOOT_8), | 129 | MESON_PIN(BOOT_8, 0), |
268 | MESON_PIN(BOOT_9), | 130 | MESON_PIN(BOOT_9, 0), |
269 | MESON_PIN(BOOT_10), | 131 | MESON_PIN(BOOT_10, 0), |
270 | MESON_PIN(BOOT_11), | 132 | MESON_PIN(BOOT_11, 0), |
271 | MESON_PIN(BOOT_12), | 133 | MESON_PIN(BOOT_12, 0), |
272 | MESON_PIN(BOOT_13), | 134 | MESON_PIN(BOOT_13, 0), |
273 | MESON_PIN(BOOT_14), | 135 | MESON_PIN(BOOT_14, 0), |
274 | MESON_PIN(BOOT_15), | 136 | MESON_PIN(BOOT_15, 0), |
275 | MESON_PIN(BOOT_16), | 137 | MESON_PIN(BOOT_16, 0), |
276 | MESON_PIN(BOOT_17), | 138 | MESON_PIN(BOOT_17, 0), |
277 | MESON_PIN(BOOT_18), | 139 | MESON_PIN(BOOT_18, 0), |
278 | MESON_PIN(GPIOAO_0), | 140 | MESON_PIN(GPIOAO_0, AO_OFF), |
279 | MESON_PIN(GPIOAO_1), | 141 | MESON_PIN(GPIOAO_1, AO_OFF), |
280 | MESON_PIN(GPIOAO_2), | 142 | MESON_PIN(GPIOAO_2, AO_OFF), |
281 | MESON_PIN(GPIOAO_3), | 143 | MESON_PIN(GPIOAO_3, AO_OFF), |
282 | MESON_PIN(GPIOAO_4), | 144 | MESON_PIN(GPIOAO_4, AO_OFF), |
283 | MESON_PIN(GPIOAO_5), | 145 | MESON_PIN(GPIOAO_5, AO_OFF), |
284 | MESON_PIN(GPIOAO_6), | 146 | MESON_PIN(GPIOAO_6, AO_OFF), |
285 | MESON_PIN(GPIOAO_7), | 147 | MESON_PIN(GPIOAO_7, AO_OFF), |
286 | MESON_PIN(GPIOAO_8), | 148 | MESON_PIN(GPIOAO_8, AO_OFF), |
287 | MESON_PIN(GPIOAO_9), | 149 | MESON_PIN(GPIOAO_9, AO_OFF), |
288 | MESON_PIN(GPIOAO_10), | 150 | MESON_PIN(GPIOAO_10, AO_OFF), |
289 | MESON_PIN(GPIOAO_11), | 151 | MESON_PIN(GPIOAO_11, AO_OFF), |
290 | MESON_PIN(GPIOAO_12), | 152 | MESON_PIN(GPIOAO_12, AO_OFF), |
291 | MESON_PIN(GPIOAO_13), | 153 | MESON_PIN(GPIOAO_13, AO_OFF), |
292 | MESON_PIN(GPIO_BSD_EN), | 154 | MESON_PIN(GPIO_BSD_EN, AO_OFF), |
293 | MESON_PIN(GPIO_TEST_N), | 155 | MESON_PIN(GPIO_TEST_N, AO_OFF), |
294 | }; | 156 | }; |
295 | 157 | ||
296 | /* bank X */ | 158 | /* bank X */ |
297 | static const unsigned int sd_d0_a_pins[] = { PIN_GPIOX_0 }; | 159 | static const unsigned int sd_d0_a_pins[] = { PIN(GPIOX_0, 0) }; |
298 | static const unsigned int sd_d1_a_pins[] = { PIN_GPIOX_1 }; | 160 | static const unsigned int sd_d1_a_pins[] = { PIN(GPIOX_1, 0) }; |
299 | static const unsigned int sd_d2_a_pins[] = { PIN_GPIOX_2 }; | 161 | static const unsigned int sd_d2_a_pins[] = { PIN(GPIOX_2, 0) }; |
300 | static const unsigned int sd_d3_a_pins[] = { PIN_GPIOX_3 }; | 162 | static const unsigned int sd_d3_a_pins[] = { PIN(GPIOX_3, 0) }; |
301 | static const unsigned int sd_clk_a_pins[] = { PIN_GPIOX_8 }; | 163 | static const unsigned int sd_clk_a_pins[] = { PIN(GPIOX_8, 0) }; |
302 | static const unsigned int sd_cmd_a_pins[] = { PIN_GPIOX_9 }; | 164 | static const unsigned int sd_cmd_a_pins[] = { PIN(GPIOX_9, 0) }; |
303 | 165 | ||
304 | static const unsigned int sdxc_d0_a_pins[] = { PIN_GPIOX_0 }; | 166 | static const unsigned int sdxc_d0_a_pins[] = { PIN(GPIOX_0, 0) }; |
305 | static const unsigned int sdxc_d13_a_pins[] = { PIN_GPIOX_1, PIN_GPIOX_2, | 167 | static const unsigned int sdxc_d13_a_pins[] = { PIN(GPIOX_1, 0), PIN(GPIOX_2, 0), |
306 | PIN_GPIOX_3 }; | 168 | PIN(GPIOX_3, 0) }; |
307 | static const unsigned int sdxc_d47_a_pins[] = { PIN_GPIOX_4, PIN_GPIOX_5, | 169 | static const unsigned int sdxc_d47_a_pins[] = { PIN(GPIOX_4, 0), PIN(GPIOX_5, 0), |
308 | PIN_GPIOX_6, PIN_GPIOX_7 }; | 170 | PIN(GPIOX_6, 0), PIN(GPIOX_7, 0) }; |
309 | static const unsigned int sdxc_clk_a_pins[] = { PIN_GPIOX_8 }; | 171 | static const unsigned int sdxc_clk_a_pins[] = { PIN(GPIOX_8, 0) }; |
310 | static const unsigned int sdxc_cmd_a_pins[] = { PIN_GPIOX_9 }; | 172 | static const unsigned int sdxc_cmd_a_pins[] = { PIN(GPIOX_9, 0) }; |
311 | 173 | ||
312 | static const unsigned int pcm_out_a_pins[] = { PIN_GPIOX_4 }; | 174 | static const unsigned int pcm_out_a_pins[] = { PIN(GPIOX_4, 0) }; |
313 | static const unsigned int pcm_in_a_pins[] = { PIN_GPIOX_5 }; | 175 | static const unsigned int pcm_in_a_pins[] = { PIN(GPIOX_5, 0) }; |
314 | static const unsigned int pcm_fs_a_pins[] = { PIN_GPIOX_6 }; | 176 | static const unsigned int pcm_fs_a_pins[] = { PIN(GPIOX_6, 0) }; |
315 | static const unsigned int pcm_clk_a_pins[] = { PIN_GPIOX_7 }; | 177 | static const unsigned int pcm_clk_a_pins[] = { PIN(GPIOX_7, 0) }; |
316 | 178 | ||
317 | static const unsigned int uart_tx_a0_pins[] = { PIN_GPIOX_4 }; | 179 | static const unsigned int uart_tx_a0_pins[] = { PIN(GPIOX_4, 0) }; |
318 | static const unsigned int uart_rx_a0_pins[] = { PIN_GPIOX_5 }; | 180 | static const unsigned int uart_rx_a0_pins[] = { PIN(GPIOX_5, 0) }; |
319 | static const unsigned int uart_cts_a0_pins[] = { PIN_GPIOX_6 }; | 181 | static const unsigned int uart_cts_a0_pins[] = { PIN(GPIOX_6, 0) }; |
320 | static const unsigned int uart_rts_a0_pins[] = { PIN_GPIOX_7 }; | 182 | static const unsigned int uart_rts_a0_pins[] = { PIN(GPIOX_7, 0) }; |
321 | 183 | ||
322 | static const unsigned int uart_tx_a1_pins[] = { PIN_GPIOX_12 }; | 184 | static const unsigned int uart_tx_a1_pins[] = { PIN(GPIOX_12, 0) }; |
323 | static const unsigned int uart_rx_a1_pins[] = { PIN_GPIOX_13 }; | 185 | static const unsigned int uart_rx_a1_pins[] = { PIN(GPIOX_13, 0) }; |
324 | static const unsigned int uart_cts_a1_pins[] = { PIN_GPIOX_14 }; | 186 | static const unsigned int uart_cts_a1_pins[] = { PIN(GPIOX_14, 0) }; |
325 | static const unsigned int uart_rts_a1_pins[] = { PIN_GPIOX_15 }; | 187 | static const unsigned int uart_rts_a1_pins[] = { PIN(GPIOX_15, 0) }; |
326 | 188 | ||
327 | static const unsigned int uart_tx_b0_pins[] = { PIN_GPIOX_16 }; | 189 | static const unsigned int uart_tx_b0_pins[] = { PIN(GPIOX_16, 0) }; |
328 | static const unsigned int uart_rx_b0_pins[] = { PIN_GPIOX_17 }; | 190 | static const unsigned int uart_rx_b0_pins[] = { PIN(GPIOX_17, 0) }; |
329 | static const unsigned int uart_cts_b0_pins[] = { PIN_GPIOX_18 }; | 191 | static const unsigned int uart_cts_b0_pins[] = { PIN(GPIOX_18, 0) }; |
330 | static const unsigned int uart_rts_b0_pins[] = { PIN_GPIOX_19 }; | 192 | static const unsigned int uart_rts_b0_pins[] = { PIN(GPIOX_19, 0) }; |
331 | 193 | ||
332 | static const unsigned int iso7816_det_pins[] = { PIN_GPIOX_16 }; | 194 | static const unsigned int iso7816_det_pins[] = { PIN(GPIOX_16, 0) }; |
333 | static const unsigned int iso7816_reset_pins[] = { PIN_GPIOX_17 }; | 195 | static const unsigned int iso7816_reset_pins[] = { PIN(GPIOX_17, 0) }; |
334 | static const unsigned int iso7816_clk_pins[] = { PIN_GPIOX_18 }; | 196 | static const unsigned int iso7816_clk_pins[] = { PIN(GPIOX_18, 0) }; |
335 | static const unsigned int iso7816_data_pins[] = { PIN_GPIOX_19 }; | 197 | static const unsigned int iso7816_data_pins[] = { PIN(GPIOX_19, 0) }; |
336 | 198 | ||
337 | static const unsigned int i2c_sda_d0_pins[] = { PIN_GPIOX_16 }; | 199 | static const unsigned int i2c_sda_d0_pins[] = { PIN(GPIOX_16, 0) }; |
338 | static const unsigned int i2c_sck_d0_pins[] = { PIN_GPIOX_17 }; | 200 | static const unsigned int i2c_sck_d0_pins[] = { PIN(GPIOX_17, 0) }; |
339 | 201 | ||
340 | static const unsigned int xtal_32k_out_pins[] = { PIN_GPIOX_10 }; | 202 | static const unsigned int xtal_32k_out_pins[] = { PIN(GPIOX_10, 0) }; |
341 | static const unsigned int xtal_24m_out_pins[] = { PIN_GPIOX_11 }; | 203 | static const unsigned int xtal_24m_out_pins[] = { PIN(GPIOX_11, 0) }; |
342 | 204 | ||
343 | /* bank Y */ | 205 | /* bank Y */ |
344 | static const unsigned int uart_tx_c_pins[] = { PIN_GPIOY_0 }; | 206 | static const unsigned int uart_tx_c_pins[] = { PIN(GPIOY_0, 0) }; |
345 | static const unsigned int uart_rx_c_pins[] = { PIN_GPIOY_1 }; | 207 | static const unsigned int uart_rx_c_pins[] = { PIN(GPIOY_1, 0) }; |
346 | static const unsigned int uart_cts_c_pins[] = { PIN_GPIOY_2 }; | 208 | static const unsigned int uart_cts_c_pins[] = { PIN(GPIOY_2, 0) }; |
347 | static const unsigned int uart_rts_c_pins[] = { PIN_GPIOY_3 }; | 209 | static const unsigned int uart_rts_c_pins[] = { PIN(GPIOY_3, 0) }; |
348 | 210 | ||
349 | static const unsigned int pcm_out_b_pins[] = { PIN_GPIOY_4 }; | 211 | static const unsigned int pcm_out_b_pins[] = { PIN(GPIOY_4, 0) }; |
350 | static const unsigned int pcm_in_b_pins[] = { PIN_GPIOY_5 }; | 212 | static const unsigned int pcm_in_b_pins[] = { PIN(GPIOY_5, 0) }; |
351 | static const unsigned int pcm_fs_b_pins[] = { PIN_GPIOY_6 }; | 213 | static const unsigned int pcm_fs_b_pins[] = { PIN(GPIOY_6, 0) }; |
352 | static const unsigned int pcm_clk_b_pins[] = { PIN_GPIOY_7 }; | 214 | static const unsigned int pcm_clk_b_pins[] = { PIN(GPIOY_7, 0) }; |
353 | 215 | ||
354 | static const unsigned int i2c_sda_c0_pins[] = { PIN_GPIOY_0 }; | 216 | static const unsigned int i2c_sda_c0_pins[] = { PIN(GPIOY_0, 0) }; |
355 | static const unsigned int i2c_sck_c0_pins[] = { PIN_GPIOY_1 }; | 217 | static const unsigned int i2c_sck_c0_pins[] = { PIN(GPIOY_1, 0) }; |
356 | 218 | ||
357 | /* bank DV */ | 219 | /* bank DV */ |
358 | static const unsigned int dvin_rgb_pins[] = { PIN_GPIODV_0, PIN_GPIODV_1, | 220 | static const unsigned int dvin_rgb_pins[] = { PIN(GPIODV_0, 0), PIN(GPIODV_1, 0), |
359 | PIN_GPIODV_2, PIN_GPIODV_3, | 221 | PIN(GPIODV_2, 0), PIN(GPIODV_3, 0), |
360 | PIN_GPIODV_4, PIN_GPIODV_5, | 222 | PIN(GPIODV_4, 0), PIN(GPIODV_5, 0), |
361 | PIN_GPIODV_6, PIN_GPIODV_7, | 223 | PIN(GPIODV_6, 0), PIN(GPIODV_7, 0), |
362 | PIN_GPIODV_8, PIN_GPIODV_9, | 224 | PIN(GPIODV_8, 0), PIN(GPIODV_9, 0), |
363 | PIN_GPIODV_10, PIN_GPIODV_11, | 225 | PIN(GPIODV_10, 0), PIN(GPIODV_11, 0), |
364 | PIN_GPIODV_12, PIN_GPIODV_13, | 226 | PIN(GPIODV_12, 0), PIN(GPIODV_13, 0), |
365 | PIN_GPIODV_14, PIN_GPIODV_15, | 227 | PIN(GPIODV_14, 0), PIN(GPIODV_15, 0), |
366 | PIN_GPIODV_16, PIN_GPIODV_17, | 228 | PIN(GPIODV_16, 0), PIN(GPIODV_17, 0), |
367 | PIN_GPIODV_18, PIN_GPIODV_19, | 229 | PIN(GPIODV_18, 0), PIN(GPIODV_19, 0), |
368 | PIN_GPIODV_20, PIN_GPIODV_21, | 230 | PIN(GPIODV_20, 0), PIN(GPIODV_21, 0), |
369 | PIN_GPIODV_22, PIN_GPIODV_23 }; | 231 | PIN(GPIODV_22, 0), PIN(GPIODV_23, 0) }; |
370 | static const unsigned int dvin_vs_pins[] = { PIN_GPIODV_24 }; | 232 | static const unsigned int dvin_vs_pins[] = { PIN(GPIODV_24, 0) }; |
371 | static const unsigned int dvin_hs_pins[] = { PIN_GPIODV_25 }; | 233 | static const unsigned int dvin_hs_pins[] = { PIN(GPIODV_25, 0) }; |
372 | static const unsigned int dvin_clk_pins[] = { PIN_GPIODV_26 }; | 234 | static const unsigned int dvin_clk_pins[] = { PIN(GPIODV_26, 0) }; |
373 | static const unsigned int dvin_de_pins[] = { PIN_GPIODV_27 }; | 235 | static const unsigned int dvin_de_pins[] = { PIN(GPIODV_27, 0) }; |
374 | 236 | ||
375 | static const unsigned int enc_0_pins[] = { PIN_GPIODV_0 }; | 237 | static const unsigned int enc_0_pins[] = { PIN(GPIODV_0, 0) }; |
376 | static const unsigned int enc_1_pins[] = { PIN_GPIODV_1 }; | 238 | static const unsigned int enc_1_pins[] = { PIN(GPIODV_1, 0) }; |
377 | static const unsigned int enc_2_pins[] = { PIN_GPIODV_2 }; | 239 | static const unsigned int enc_2_pins[] = { PIN(GPIODV_2, 0) }; |
378 | static const unsigned int enc_3_pins[] = { PIN_GPIODV_3 }; | 240 | static const unsigned int enc_3_pins[] = { PIN(GPIODV_3, 0) }; |
379 | static const unsigned int enc_4_pins[] = { PIN_GPIODV_4 }; | 241 | static const unsigned int enc_4_pins[] = { PIN(GPIODV_4, 0) }; |
380 | static const unsigned int enc_5_pins[] = { PIN_GPIODV_5 }; | 242 | static const unsigned int enc_5_pins[] = { PIN(GPIODV_5, 0) }; |
381 | static const unsigned int enc_6_pins[] = { PIN_GPIODV_6 }; | 243 | static const unsigned int enc_6_pins[] = { PIN(GPIODV_6, 0) }; |
382 | static const unsigned int enc_7_pins[] = { PIN_GPIODV_7 }; | 244 | static const unsigned int enc_7_pins[] = { PIN(GPIODV_7, 0) }; |
383 | static const unsigned int enc_8_pins[] = { PIN_GPIODV_8 }; | 245 | static const unsigned int enc_8_pins[] = { PIN(GPIODV_8, 0) }; |
384 | static const unsigned int enc_9_pins[] = { PIN_GPIODV_9 }; | 246 | static const unsigned int enc_9_pins[] = { PIN(GPIODV_9, 0) }; |
385 | static const unsigned int enc_10_pins[] = { PIN_GPIODV_10 }; | 247 | static const unsigned int enc_10_pins[] = { PIN(GPIODV_10, 0) }; |
386 | static const unsigned int enc_11_pins[] = { PIN_GPIODV_11 }; | 248 | static const unsigned int enc_11_pins[] = { PIN(GPIODV_11, 0) }; |
387 | static const unsigned int enc_12_pins[] = { PIN_GPIODV_12 }; | 249 | static const unsigned int enc_12_pins[] = { PIN(GPIODV_12, 0) }; |
388 | static const unsigned int enc_13_pins[] = { PIN_GPIODV_13 }; | 250 | static const unsigned int enc_13_pins[] = { PIN(GPIODV_13, 0) }; |
389 | static const unsigned int enc_14_pins[] = { PIN_GPIODV_14 }; | 251 | static const unsigned int enc_14_pins[] = { PIN(GPIODV_14, 0) }; |
390 | static const unsigned int enc_15_pins[] = { PIN_GPIODV_15 }; | 252 | static const unsigned int enc_15_pins[] = { PIN(GPIODV_15, 0) }; |
391 | static const unsigned int enc_16_pins[] = { PIN_GPIODV_16 }; | 253 | static const unsigned int enc_16_pins[] = { PIN(GPIODV_16, 0) }; |
392 | static const unsigned int enc_17_pins[] = { PIN_GPIODV_17 }; | 254 | static const unsigned int enc_17_pins[] = { PIN(GPIODV_17, 0) }; |
393 | 255 | ||
394 | static const unsigned int uart_tx_b1_pins[] = { PIN_GPIODV_24 }; | 256 | static const unsigned int uart_tx_b1_pins[] = { PIN(GPIODV_24, 0) }; |
395 | static const unsigned int uart_rx_b1_pins[] = { PIN_GPIODV_25 }; | 257 | static const unsigned int uart_rx_b1_pins[] = { PIN(GPIODV_25, 0) }; |
396 | static const unsigned int uart_cts_b1_pins[] = { PIN_GPIODV_26 }; | 258 | static const unsigned int uart_cts_b1_pins[] = { PIN(GPIODV_26, 0) }; |
397 | static const unsigned int uart_rts_b1_pins[] = { PIN_GPIODV_27 }; | 259 | static const unsigned int uart_rts_b1_pins[] = { PIN(GPIODV_27, 0) }; |
398 | 260 | ||
399 | static const unsigned int vga_vs_pins[] = { PIN_GPIODV_24 }; | 261 | static const unsigned int vga_vs_pins[] = { PIN(GPIODV_24, 0) }; |
400 | static const unsigned int vga_hs_pins[] = { PIN_GPIODV_25 }; | 262 | static const unsigned int vga_hs_pins[] = { PIN(GPIODV_25, 0) }; |
401 | 263 | ||
402 | /* bank H */ | 264 | /* bank H */ |
403 | static const unsigned int hdmi_hpd_pins[] = { PIN_GPIOH_0 }; | 265 | static const unsigned int hdmi_hpd_pins[] = { PIN(GPIOH_0, 0) }; |
404 | static const unsigned int hdmi_sda_pins[] = { PIN_GPIOH_1 }; | 266 | static const unsigned int hdmi_sda_pins[] = { PIN(GPIOH_1, 0) }; |
405 | static const unsigned int hdmi_scl_pins[] = { PIN_GPIOH_2 }; | 267 | static const unsigned int hdmi_scl_pins[] = { PIN(GPIOH_2, 0) }; |
406 | static const unsigned int hdmi_cec_pins[] = { PIN_GPIOH_3 }; | 268 | static const unsigned int hdmi_cec_pins[] = { PIN(GPIOH_3, 0) }; |
407 | 269 | ||
408 | static const unsigned int spi_ss0_0_pins[] = { PIN_GPIOH_3 }; | 270 | static const unsigned int spi_ss0_0_pins[] = { PIN(GPIOH_3, 0) }; |
409 | static const unsigned int spi_miso_0_pins[] = { PIN_GPIOH_4 }; | 271 | static const unsigned int spi_miso_0_pins[] = { PIN(GPIOH_4, 0) }; |
410 | static const unsigned int spi_mosi_0_pins[] = { PIN_GPIOH_5 }; | 272 | static const unsigned int spi_mosi_0_pins[] = { PIN(GPIOH_5, 0) }; |
411 | static const unsigned int spi_sclk_0_pins[] = { PIN_GPIOH_6 }; | 273 | static const unsigned int spi_sclk_0_pins[] = { PIN(GPIOH_6, 0) }; |
412 | 274 | ||
413 | static const unsigned int i2c_sda_d1_pins[] = { PIN_GPIOH_7 }; | 275 | static const unsigned int i2c_sda_d1_pins[] = { PIN(GPIOH_7, 0) }; |
414 | static const unsigned int i2c_sck_d1_pins[] = { PIN_GPIOH_8 }; | 276 | static const unsigned int i2c_sck_d1_pins[] = { PIN(GPIOH_8, 0) }; |
415 | 277 | ||
416 | /* bank Z */ | 278 | /* bank Z */ |
417 | static const unsigned int spi_ss0_1_pins[] = { PIN_GPIOZ_9 }; | 279 | static const unsigned int spi_ss0_1_pins[] = { PIN(GPIOZ_9, 0) }; |
418 | static const unsigned int spi_ss1_1_pins[] = { PIN_GPIOZ_10 }; | 280 | static const unsigned int spi_ss1_1_pins[] = { PIN(GPIOZ_10, 0) }; |
419 | static const unsigned int spi_sclk_1_pins[] = { PIN_GPIOZ_11 }; | 281 | static const unsigned int spi_sclk_1_pins[] = { PIN(GPIOZ_11, 0) }; |
420 | static const unsigned int spi_mosi_1_pins[] = { PIN_GPIOZ_12 }; | 282 | static const unsigned int spi_mosi_1_pins[] = { PIN(GPIOZ_12, 0) }; |
421 | static const unsigned int spi_miso_1_pins[] = { PIN_GPIOZ_13 }; | 283 | static const unsigned int spi_miso_1_pins[] = { PIN(GPIOZ_13, 0) }; |
422 | static const unsigned int spi_ss2_1_pins[] = { PIN_GPIOZ_14 }; | 284 | static const unsigned int spi_ss2_1_pins[] = { PIN(GPIOZ_14, 0) }; |
423 | 285 | ||
424 | static const unsigned int eth_tx_clk_50m_pins[] = { PIN_GPIOZ_4 }; | 286 | static const unsigned int eth_tx_clk_50m_pins[] = { PIN(GPIOZ_4, 0) }; |
425 | static const unsigned int eth_tx_en_pins[] = { PIN_GPIOZ_5 }; | 287 | static const unsigned int eth_tx_en_pins[] = { PIN(GPIOZ_5, 0) }; |
426 | static const unsigned int eth_txd1_pins[] = { PIN_GPIOZ_6 }; | 288 | static const unsigned int eth_txd1_pins[] = { PIN(GPIOZ_6, 0) }; |
427 | static const unsigned int eth_txd0_pins[] = { PIN_GPIOZ_7 }; | 289 | static const unsigned int eth_txd0_pins[] = { PIN(GPIOZ_7, 0) }; |
428 | static const unsigned int eth_rx_clk_in_pins[] = { PIN_GPIOZ_8 }; | 290 | static const unsigned int eth_rx_clk_in_pins[] = { PIN(GPIOZ_8, 0) }; |
429 | static const unsigned int eth_rx_dv_pins[] = { PIN_GPIOZ_9 }; | 291 | static const unsigned int eth_rx_dv_pins[] = { PIN(GPIOZ_9, 0) }; |
430 | static const unsigned int eth_rxd1_pins[] = { PIN_GPIOZ_10 }; | 292 | static const unsigned int eth_rxd1_pins[] = { PIN(GPIOZ_10, 0) }; |
431 | static const unsigned int eth_rxd0_pins[] = { PIN_GPIOZ_11 }; | 293 | static const unsigned int eth_rxd0_pins[] = { PIN(GPIOZ_11, 0) }; |
432 | static const unsigned int eth_mdio_pins[] = { PIN_GPIOZ_12 }; | 294 | static const unsigned int eth_mdio_pins[] = { PIN(GPIOZ_12, 0) }; |
433 | static const unsigned int eth_mdc_pins[] = { PIN_GPIOZ_13 }; | 295 | static const unsigned int eth_mdc_pins[] = { PIN(GPIOZ_13, 0) }; |
434 | 296 | ||
435 | static const unsigned int i2c_sda_a0_pins[] = { PIN_GPIOZ_0 }; | 297 | static const unsigned int i2c_sda_a0_pins[] = { PIN(GPIOZ_0, 0) }; |
436 | static const unsigned int i2c_sck_a0_pins[] = { PIN_GPIOZ_1 }; | 298 | static const unsigned int i2c_sck_a0_pins[] = { PIN(GPIOZ_1, 0) }; |
437 | 299 | ||
438 | static const unsigned int i2c_sda_b_pins[] = { PIN_GPIOZ_2 }; | 300 | static const unsigned int i2c_sda_b_pins[] = { PIN(GPIOZ_2, 0) }; |
439 | static const unsigned int i2c_sck_b_pins[] = { PIN_GPIOZ_3 }; | 301 | static const unsigned int i2c_sck_b_pins[] = { PIN(GPIOZ_3, 0) }; |
440 | 302 | ||
441 | static const unsigned int i2c_sda_c1_pins[] = { PIN_GPIOZ_4 }; | 303 | static const unsigned int i2c_sda_c1_pins[] = { PIN(GPIOZ_4, 0) }; |
442 | static const unsigned int i2c_sck_c1_pins[] = { PIN_GPIOZ_5 }; | 304 | static const unsigned int i2c_sck_c1_pins[] = { PIN(GPIOZ_5, 0) }; |
443 | 305 | ||
444 | static const unsigned int i2c_sda_a1_pins[] = { PIN_GPIOZ_0 }; | 306 | static const unsigned int i2c_sda_a1_pins[] = { PIN(GPIOZ_0, 0) }; |
445 | static const unsigned int i2c_sck_a1_pins[] = { PIN_GPIOZ_1 }; | 307 | static const unsigned int i2c_sck_a1_pins[] = { PIN(GPIOZ_1, 0) }; |
446 | 308 | ||
447 | static const unsigned int i2c_sda_a2_pins[] = { PIN_GPIOZ_0 }; | 309 | static const unsigned int i2c_sda_a2_pins[] = { PIN(GPIOZ_0, 0) }; |
448 | static const unsigned int i2c_sck_a2_pins[] = { PIN_GPIOZ_1 }; | 310 | static const unsigned int i2c_sck_a2_pins[] = { PIN(GPIOZ_1, 0) }; |
449 | 311 | ||
450 | /* bank BOOT */ | 312 | /* bank BOOT */ |
451 | static const unsigned int sd_d0_c_pins[] = { PIN_BOOT_0 }; | 313 | static const unsigned int sd_d0_c_pins[] = { PIN(BOOT_0, 0) }; |
452 | static const unsigned int sd_d1_c_pins[] = { PIN_BOOT_1 }; | 314 | static const unsigned int sd_d1_c_pins[] = { PIN(BOOT_1, 0) }; |
453 | static const unsigned int sd_d2_c_pins[] = { PIN_BOOT_2 }; | 315 | static const unsigned int sd_d2_c_pins[] = { PIN(BOOT_2, 0) }; |
454 | static const unsigned int sd_d3_c_pins[] = { PIN_BOOT_3 }; | 316 | static const unsigned int sd_d3_c_pins[] = { PIN(BOOT_3, 0) }; |
455 | static const unsigned int sd_cmd_c_pins[] = { PIN_BOOT_16 }; | 317 | static const unsigned int sd_cmd_c_pins[] = { PIN(BOOT_16, 0) }; |
456 | static const unsigned int sd_clk_c_pins[] = { PIN_BOOT_17 }; | 318 | static const unsigned int sd_clk_c_pins[] = { PIN(BOOT_17, 0) }; |
457 | 319 | ||
458 | static const unsigned int sdxc_d0_c_pins[] = { PIN_BOOT_0}; | 320 | static const unsigned int sdxc_d0_c_pins[] = { PIN(BOOT_0, 0)}; |
459 | static const unsigned int sdxc_d13_c_pins[] = { PIN_BOOT_1, PIN_BOOT_2, | 321 | static const unsigned int sdxc_d13_c_pins[] = { PIN(BOOT_1, 0), PIN(BOOT_2, 0), |
460 | PIN_BOOT_3 }; | 322 | PIN(BOOT_3, 0) }; |
461 | static const unsigned int sdxc_d47_c_pins[] = { PIN_BOOT_4, PIN_BOOT_5, | 323 | static const unsigned int sdxc_d47_c_pins[] = { PIN(BOOT_4, 0), PIN(BOOT_5, 0), |
462 | PIN_BOOT_6, PIN_BOOT_7 }; | 324 | PIN(BOOT_6, 0), PIN(BOOT_7, 0) }; |
463 | static const unsigned int sdxc_cmd_c_pins[] = { PIN_BOOT_16 }; | 325 | static const unsigned int sdxc_cmd_c_pins[] = { PIN(BOOT_16, 0) }; |
464 | static const unsigned int sdxc_clk_c_pins[] = { PIN_BOOT_17 }; | 326 | static const unsigned int sdxc_clk_c_pins[] = { PIN(BOOT_17, 0) }; |
465 | 327 | ||
466 | static const unsigned int nand_io_pins[] = { PIN_BOOT_0, PIN_BOOT_1, | 328 | static const unsigned int nand_io_pins[] = { PIN(BOOT_0, 0), PIN(BOOT_1, 0), |
467 | PIN_BOOT_2, PIN_BOOT_3, | 329 | PIN(BOOT_2, 0), PIN(BOOT_3, 0), |
468 | PIN_BOOT_4, PIN_BOOT_5, | 330 | PIN(BOOT_4, 0), PIN(BOOT_5, 0), |
469 | PIN_BOOT_6, PIN_BOOT_7 }; | 331 | PIN(BOOT_6, 0), PIN(BOOT_7, 0) }; |
470 | static const unsigned int nand_io_ce0_pins[] = { PIN_BOOT_8 }; | 332 | static const unsigned int nand_io_ce0_pins[] = { PIN(BOOT_8, 0) }; |
471 | static const unsigned int nand_io_ce1_pins[] = { PIN_BOOT_9 }; | 333 | static const unsigned int nand_io_ce1_pins[] = { PIN(BOOT_9, 0) }; |
472 | static const unsigned int nand_io_rb0_pins[] = { PIN_BOOT_10 }; | 334 | static const unsigned int nand_io_rb0_pins[] = { PIN(BOOT_10, 0) }; |
473 | static const unsigned int nand_ale_pins[] = { PIN_BOOT_11 }; | 335 | static const unsigned int nand_ale_pins[] = { PIN(BOOT_11, 0) }; |
474 | static const unsigned int nand_cle_pins[] = { PIN_BOOT_12 }; | 336 | static const unsigned int nand_cle_pins[] = { PIN(BOOT_12, 0) }; |
475 | static const unsigned int nand_wen_clk_pins[] = { PIN_BOOT_13 }; | 337 | static const unsigned int nand_wen_clk_pins[] = { PIN(BOOT_13, 0) }; |
476 | static const unsigned int nand_ren_clk_pins[] = { PIN_BOOT_14 }; | 338 | static const unsigned int nand_ren_clk_pins[] = { PIN(BOOT_14, 0) }; |
477 | static const unsigned int nand_dqs_pins[] = { PIN_BOOT_15 }; | 339 | static const unsigned int nand_dqs_pins[] = { PIN(BOOT_15, 0) }; |
478 | static const unsigned int nand_ce2_pins[] = { PIN_BOOT_16 }; | 340 | static const unsigned int nand_ce2_pins[] = { PIN(BOOT_16, 0) }; |
479 | static const unsigned int nand_ce3_pins[] = { PIN_BOOT_17 }; | 341 | static const unsigned int nand_ce3_pins[] = { PIN(BOOT_17, 0) }; |
480 | 342 | ||
481 | static const unsigned int nor_d_pins[] = { PIN_BOOT_11 }; | 343 | static const unsigned int nor_d_pins[] = { PIN(BOOT_11, 0) }; |
482 | static const unsigned int nor_q_pins[] = { PIN_BOOT_12 }; | 344 | static const unsigned int nor_q_pins[] = { PIN(BOOT_12, 0) }; |
483 | static const unsigned int nor_c_pins[] = { PIN_BOOT_13 }; | 345 | static const unsigned int nor_c_pins[] = { PIN(BOOT_13, 0) }; |
484 | static const unsigned int nor_cs_pins[] = { PIN_BOOT_18 }; | 346 | static const unsigned int nor_cs_pins[] = { PIN(BOOT_18, 0) }; |
485 | 347 | ||
486 | /* bank CARD */ | 348 | /* bank CARD */ |
487 | static const unsigned int sd_d1_b_pins[] = { PIN_CARD_0 }; | 349 | static const unsigned int sd_d1_b_pins[] = { PIN(CARD_0, 0) }; |
488 | static const unsigned int sd_d0_b_pins[] = { PIN_CARD_1 }; | 350 | static const unsigned int sd_d0_b_pins[] = { PIN(CARD_1, 0) }; |
489 | static const unsigned int sd_clk_b_pins[] = { PIN_CARD_2 }; | 351 | static const unsigned int sd_clk_b_pins[] = { PIN(CARD_2, 0) }; |
490 | static const unsigned int sd_cmd_b_pins[] = { PIN_CARD_3 }; | 352 | static const unsigned int sd_cmd_b_pins[] = { PIN(CARD_3, 0) }; |
491 | static const unsigned int sd_d3_b_pins[] = { PIN_CARD_4 }; | 353 | static const unsigned int sd_d3_b_pins[] = { PIN(CARD_4, 0) }; |
492 | static const unsigned int sd_d2_b_pins[] = { PIN_CARD_5 }; | 354 | static const unsigned int sd_d2_b_pins[] = { PIN(CARD_5, 0) }; |
493 | 355 | ||
494 | static const unsigned int sdxc_d13_b_pins[] = { PIN_CARD_0, PIN_CARD_4, | 356 | static const unsigned int sdxc_d13_b_pins[] = { PIN(CARD_0, 0), PIN(CARD_4, 0), |
495 | PIN_CARD_5 }; | 357 | PIN(CARD_5, 0) }; |
496 | static const unsigned int sdxc_d0_b_pins[] = { PIN_CARD_1 }; | 358 | static const unsigned int sdxc_d0_b_pins[] = { PIN(CARD_1, 0) }; |
497 | static const unsigned int sdxc_clk_b_pins[] = { PIN_CARD_2 }; | 359 | static const unsigned int sdxc_clk_b_pins[] = { PIN(CARD_2, 0) }; |
498 | static const unsigned int sdxc_cmd_b_pins[] = { PIN_CARD_3 }; | 360 | static const unsigned int sdxc_cmd_b_pins[] = { PIN(CARD_3, 0) }; |
499 | 361 | ||
500 | /* bank AO */ | 362 | /* bank AO */ |
501 | static const unsigned int uart_tx_ao_a_pins[] = { PIN_GPIOAO_0 }; | 363 | static const unsigned int uart_tx_ao_a_pins[] = { PIN(GPIOAO_0, AO_OFF) }; |
502 | static const unsigned int uart_rx_ao_a_pins[] = { PIN_GPIOAO_1 }; | 364 | static const unsigned int uart_rx_ao_a_pins[] = { PIN(GPIOAO_1, AO_OFF) }; |
503 | static const unsigned int uart_cts_ao_a_pins[] = { PIN_GPIOAO_2 }; | 365 | static const unsigned int uart_cts_ao_a_pins[] = { PIN(GPIOAO_2, AO_OFF) }; |
504 | static const unsigned int uart_rts_ao_a_pins[] = { PIN_GPIOAO_3 }; | 366 | static const unsigned int uart_rts_ao_a_pins[] = { PIN(GPIOAO_3, AO_OFF) }; |
505 | 367 | ||
506 | static const unsigned int remote_input_pins[] = { PIN_GPIOAO_7 }; | 368 | static const unsigned int remote_input_pins[] = { PIN(GPIOAO_7, AO_OFF) }; |
507 | 369 | ||
508 | static const unsigned int i2c_slave_sck_ao_pins[] = { PIN_GPIOAO_4 }; | 370 | static const unsigned int i2c_slave_sck_ao_pins[] = { PIN(GPIOAO_4, AO_OFF) }; |
509 | static const unsigned int i2c_slave_sda_ao_pins[] = { PIN_GPIOAO_5 }; | 371 | static const unsigned int i2c_slave_sda_ao_pins[] = { PIN(GPIOAO_5, AO_OFF) }; |
510 | 372 | ||
511 | static const unsigned int uart_tx_ao_b0_pins[] = { PIN_GPIOAO_0 }; | 373 | static const unsigned int uart_tx_ao_b0_pins[] = { PIN(GPIOAO_0, AO_OFF) }; |
512 | static const unsigned int uart_rx_ao_b0_pins[] = { PIN_GPIOAO_1 }; | 374 | static const unsigned int uart_rx_ao_b0_pins[] = { PIN(GPIOAO_1, AO_OFF) }; |
513 | 375 | ||
514 | static const unsigned int uart_tx_ao_b1_pins[] = { PIN_GPIOAO_4 }; | 376 | static const unsigned int uart_tx_ao_b1_pins[] = { PIN(GPIOAO_4, AO_OFF) }; |
515 | static const unsigned int uart_rx_ao_b1_pins[] = { PIN_GPIOAO_5 }; | 377 | static const unsigned int uart_rx_ao_b1_pins[] = { PIN(GPIOAO_5, AO_OFF) }; |
516 | 378 | ||
517 | static const unsigned int i2c_mst_sck_ao_pins[] = { PIN_GPIOAO_4 }; | 379 | static const unsigned int i2c_mst_sck_ao_pins[] = { PIN(GPIOAO_4, AO_OFF) }; |
518 | static const unsigned int i2c_mst_sda_ao_pins[] = { PIN_GPIOAO_5 }; | 380 | static const unsigned int i2c_mst_sda_ao_pins[] = { PIN(GPIOAO_5, AO_OFF) }; |
519 | 381 | ||
520 | static struct meson_pmx_group meson8_groups[] = { | 382 | static struct meson_pmx_group meson8_groups[] = { |
521 | GPIO_GROUP(GPIOX_0), | 383 | GPIO_GROUP(GPIOX_0, 0), |
522 | GPIO_GROUP(GPIOX_1), | 384 | GPIO_GROUP(GPIOX_1, 0), |
523 | GPIO_GROUP(GPIOX_2), | 385 | GPIO_GROUP(GPIOX_2, 0), |
524 | GPIO_GROUP(GPIOX_3), | 386 | GPIO_GROUP(GPIOX_3, 0), |
525 | GPIO_GROUP(GPIOX_4), | 387 | GPIO_GROUP(GPIOX_4, 0), |
526 | GPIO_GROUP(GPIOX_5), | 388 | GPIO_GROUP(GPIOX_5, 0), |
527 | GPIO_GROUP(GPIOX_6), | 389 | GPIO_GROUP(GPIOX_6, 0), |
528 | GPIO_GROUP(GPIOX_7), | 390 | GPIO_GROUP(GPIOX_7, 0), |
529 | GPIO_GROUP(GPIOX_8), | 391 | GPIO_GROUP(GPIOX_8, 0), |
530 | GPIO_GROUP(GPIOX_9), | 392 | GPIO_GROUP(GPIOX_9, 0), |
531 | GPIO_GROUP(GPIOX_10), | 393 | GPIO_GROUP(GPIOX_10, 0), |
532 | GPIO_GROUP(GPIOX_11), | 394 | GPIO_GROUP(GPIOX_11, 0), |
533 | GPIO_GROUP(GPIOX_12), | 395 | GPIO_GROUP(GPIOX_12, 0), |
534 | GPIO_GROUP(GPIOX_13), | 396 | GPIO_GROUP(GPIOX_13, 0), |
535 | GPIO_GROUP(GPIOX_14), | 397 | GPIO_GROUP(GPIOX_14, 0), |
536 | GPIO_GROUP(GPIOX_15), | 398 | GPIO_GROUP(GPIOX_15, 0), |
537 | GPIO_GROUP(GPIOX_16), | 399 | GPIO_GROUP(GPIOX_16, 0), |
538 | GPIO_GROUP(GPIOX_17), | 400 | GPIO_GROUP(GPIOX_17, 0), |
539 | GPIO_GROUP(GPIOX_18), | 401 | GPIO_GROUP(GPIOX_18, 0), |
540 | GPIO_GROUP(GPIOX_19), | 402 | GPIO_GROUP(GPIOX_19, 0), |
541 | GPIO_GROUP(GPIOX_20), | 403 | GPIO_GROUP(GPIOX_20, 0), |
542 | GPIO_GROUP(GPIOX_21), | 404 | GPIO_GROUP(GPIOX_21, 0), |
543 | GPIO_GROUP(GPIOY_0), | 405 | GPIO_GROUP(GPIOY_0, 0), |
544 | GPIO_GROUP(GPIOY_1), | 406 | GPIO_GROUP(GPIOY_1, 0), |
545 | GPIO_GROUP(GPIOY_2), | 407 | GPIO_GROUP(GPIOY_2, 0), |
546 | GPIO_GROUP(GPIOY_3), | 408 | GPIO_GROUP(GPIOY_3, 0), |
547 | GPIO_GROUP(GPIOY_4), | 409 | GPIO_GROUP(GPIOY_4, 0), |
548 | GPIO_GROUP(GPIOY_5), | 410 | GPIO_GROUP(GPIOY_5, 0), |
549 | GPIO_GROUP(GPIOY_6), | 411 | GPIO_GROUP(GPIOY_6, 0), |
550 | GPIO_GROUP(GPIOY_7), | 412 | GPIO_GROUP(GPIOY_7, 0), |
551 | GPIO_GROUP(GPIOY_8), | 413 | GPIO_GROUP(GPIOY_8, 0), |
552 | GPIO_GROUP(GPIOY_9), | 414 | GPIO_GROUP(GPIOY_9, 0), |
553 | GPIO_GROUP(GPIOY_10), | 415 | GPIO_GROUP(GPIOY_10, 0), |
554 | GPIO_GROUP(GPIOY_11), | 416 | GPIO_GROUP(GPIOY_11, 0), |
555 | GPIO_GROUP(GPIOY_12), | 417 | GPIO_GROUP(GPIOY_12, 0), |
556 | GPIO_GROUP(GPIOY_13), | 418 | GPIO_GROUP(GPIOY_13, 0), |
557 | GPIO_GROUP(GPIOY_14), | 419 | GPIO_GROUP(GPIOY_14, 0), |
558 | GPIO_GROUP(GPIOY_15), | 420 | GPIO_GROUP(GPIOY_15, 0), |
559 | GPIO_GROUP(GPIOY_16), | 421 | GPIO_GROUP(GPIOY_16, 0), |
560 | GPIO_GROUP(GPIODV_0), | 422 | GPIO_GROUP(GPIODV_0, 0), |
561 | GPIO_GROUP(GPIODV_1), | 423 | GPIO_GROUP(GPIODV_1, 0), |
562 | GPIO_GROUP(GPIODV_2), | 424 | GPIO_GROUP(GPIODV_2, 0), |
563 | GPIO_GROUP(GPIODV_3), | 425 | GPIO_GROUP(GPIODV_3, 0), |
564 | GPIO_GROUP(GPIODV_4), | 426 | GPIO_GROUP(GPIODV_4, 0), |
565 | GPIO_GROUP(GPIODV_5), | 427 | GPIO_GROUP(GPIODV_5, 0), |
566 | GPIO_GROUP(GPIODV_6), | 428 | GPIO_GROUP(GPIODV_6, 0), |
567 | GPIO_GROUP(GPIODV_7), | 429 | GPIO_GROUP(GPIODV_7, 0), |
568 | GPIO_GROUP(GPIODV_8), | 430 | GPIO_GROUP(GPIODV_8, 0), |
569 | GPIO_GROUP(GPIODV_9), | 431 | GPIO_GROUP(GPIODV_9, 0), |
570 | GPIO_GROUP(GPIODV_10), | 432 | GPIO_GROUP(GPIODV_10, 0), |
571 | GPIO_GROUP(GPIODV_11), | 433 | GPIO_GROUP(GPIODV_11, 0), |
572 | GPIO_GROUP(GPIODV_12), | 434 | GPIO_GROUP(GPIODV_12, 0), |
573 | GPIO_GROUP(GPIODV_13), | 435 | GPIO_GROUP(GPIODV_13, 0), |
574 | GPIO_GROUP(GPIODV_14), | 436 | GPIO_GROUP(GPIODV_14, 0), |
575 | GPIO_GROUP(GPIODV_15), | 437 | GPIO_GROUP(GPIODV_15, 0), |
576 | GPIO_GROUP(GPIODV_16), | 438 | GPIO_GROUP(GPIODV_16, 0), |
577 | GPIO_GROUP(GPIODV_17), | 439 | GPIO_GROUP(GPIODV_17, 0), |
578 | GPIO_GROUP(GPIODV_18), | 440 | GPIO_GROUP(GPIODV_18, 0), |
579 | GPIO_GROUP(GPIODV_19), | 441 | GPIO_GROUP(GPIODV_19, 0), |
580 | GPIO_GROUP(GPIODV_20), | 442 | GPIO_GROUP(GPIODV_20, 0), |
581 | GPIO_GROUP(GPIODV_21), | 443 | GPIO_GROUP(GPIODV_21, 0), |
582 | GPIO_GROUP(GPIODV_22), | 444 | GPIO_GROUP(GPIODV_22, 0), |
583 | GPIO_GROUP(GPIODV_23), | 445 | GPIO_GROUP(GPIODV_23, 0), |
584 | GPIO_GROUP(GPIODV_24), | 446 | GPIO_GROUP(GPIODV_24, 0), |
585 | GPIO_GROUP(GPIODV_25), | 447 | GPIO_GROUP(GPIODV_25, 0), |
586 | GPIO_GROUP(GPIODV_26), | 448 | GPIO_GROUP(GPIODV_26, 0), |
587 | GPIO_GROUP(GPIODV_27), | 449 | GPIO_GROUP(GPIODV_27, 0), |
588 | GPIO_GROUP(GPIODV_28), | 450 | GPIO_GROUP(GPIODV_28, 0), |
589 | GPIO_GROUP(GPIODV_29), | 451 | GPIO_GROUP(GPIODV_29, 0), |
590 | GPIO_GROUP(GPIOH_0), | 452 | GPIO_GROUP(GPIOH_0, 0), |
591 | GPIO_GROUP(GPIOH_1), | 453 | GPIO_GROUP(GPIOH_1, 0), |
592 | GPIO_GROUP(GPIOH_2), | 454 | GPIO_GROUP(GPIOH_2, 0), |
593 | GPIO_GROUP(GPIOH_3), | 455 | GPIO_GROUP(GPIOH_3, 0), |
594 | GPIO_GROUP(GPIOH_4), | 456 | GPIO_GROUP(GPIOH_4, 0), |
595 | GPIO_GROUP(GPIOH_5), | 457 | GPIO_GROUP(GPIOH_5, 0), |
596 | GPIO_GROUP(GPIOH_6), | 458 | GPIO_GROUP(GPIOH_6, 0), |
597 | GPIO_GROUP(GPIOH_7), | 459 | GPIO_GROUP(GPIOH_7, 0), |
598 | GPIO_GROUP(GPIOH_8), | 460 | GPIO_GROUP(GPIOH_8, 0), |
599 | GPIO_GROUP(GPIOH_9), | 461 | GPIO_GROUP(GPIOH_9, 0), |
600 | GPIO_GROUP(GPIOZ_0), | 462 | GPIO_GROUP(GPIOZ_0, 0), |
601 | GPIO_GROUP(GPIOZ_1), | 463 | GPIO_GROUP(GPIOZ_1, 0), |
602 | GPIO_GROUP(GPIOZ_2), | 464 | GPIO_GROUP(GPIOZ_2, 0), |
603 | GPIO_GROUP(GPIOZ_3), | 465 | GPIO_GROUP(GPIOZ_3, 0), |
604 | GPIO_GROUP(GPIOZ_4), | 466 | GPIO_GROUP(GPIOZ_4, 0), |
605 | GPIO_GROUP(GPIOZ_5), | 467 | GPIO_GROUP(GPIOZ_5, 0), |
606 | GPIO_GROUP(GPIOZ_6), | 468 | GPIO_GROUP(GPIOZ_6, 0), |
607 | GPIO_GROUP(GPIOZ_7), | 469 | GPIO_GROUP(GPIOZ_7, 0), |
608 | GPIO_GROUP(GPIOZ_8), | 470 | GPIO_GROUP(GPIOZ_8, 0), |
609 | GPIO_GROUP(GPIOZ_9), | 471 | GPIO_GROUP(GPIOZ_9, 0), |
610 | GPIO_GROUP(GPIOZ_10), | 472 | GPIO_GROUP(GPIOZ_10, 0), |
611 | GPIO_GROUP(GPIOZ_11), | 473 | GPIO_GROUP(GPIOZ_11, 0), |
612 | GPIO_GROUP(GPIOZ_12), | 474 | GPIO_GROUP(GPIOZ_12, 0), |
613 | GPIO_GROUP(GPIOZ_13), | 475 | GPIO_GROUP(GPIOZ_13, 0), |
614 | GPIO_GROUP(GPIOZ_14), | 476 | GPIO_GROUP(GPIOZ_14, 0), |
615 | GPIO_GROUP(GPIOAO_0), | 477 | GPIO_GROUP(GPIOAO_0, AO_OFF), |
616 | GPIO_GROUP(GPIOAO_1), | 478 | GPIO_GROUP(GPIOAO_1, AO_OFF), |
617 | GPIO_GROUP(GPIOAO_2), | 479 | GPIO_GROUP(GPIOAO_2, AO_OFF), |
618 | GPIO_GROUP(GPIOAO_3), | 480 | GPIO_GROUP(GPIOAO_3, AO_OFF), |
619 | GPIO_GROUP(GPIOAO_4), | 481 | GPIO_GROUP(GPIOAO_4, AO_OFF), |
620 | GPIO_GROUP(GPIOAO_5), | 482 | GPIO_GROUP(GPIOAO_5, AO_OFF), |
621 | GPIO_GROUP(GPIOAO_6), | 483 | GPIO_GROUP(GPIOAO_6, AO_OFF), |
622 | GPIO_GROUP(GPIOAO_7), | 484 | GPIO_GROUP(GPIOAO_7, AO_OFF), |
623 | GPIO_GROUP(GPIOAO_8), | 485 | GPIO_GROUP(GPIOAO_8, AO_OFF), |
624 | GPIO_GROUP(GPIOAO_9), | 486 | GPIO_GROUP(GPIOAO_9, AO_OFF), |
625 | GPIO_GROUP(GPIOAO_10), | 487 | GPIO_GROUP(GPIOAO_10, AO_OFF), |
626 | GPIO_GROUP(GPIOAO_11), | 488 | GPIO_GROUP(GPIOAO_11, AO_OFF), |
627 | GPIO_GROUP(GPIOAO_12), | 489 | GPIO_GROUP(GPIOAO_12, AO_OFF), |
628 | GPIO_GROUP(GPIOAO_13), | 490 | GPIO_GROUP(GPIOAO_13, AO_OFF), |
629 | GPIO_GROUP(GPIO_BSD_EN), | 491 | GPIO_GROUP(GPIO_BSD_EN, AO_OFF), |
630 | GPIO_GROUP(GPIO_TEST_N), | 492 | GPIO_GROUP(GPIO_TEST_N, AO_OFF), |
631 | 493 | ||
632 | /* bank X */ | 494 | /* bank X */ |
633 | GROUP(sd_d0_a, 8, 5), | 495 | GROUP(sd_d0_a, 8, 5), |
@@ -1045,19 +907,19 @@ static struct meson_pmx_func meson8_functions[] = { | |||
1045 | }; | 907 | }; |
1046 | 908 | ||
1047 | static struct meson_bank meson8_banks[] = { | 909 | static struct meson_bank meson8_banks[] = { |
1048 | /* name first last pullen pull dir out in */ | 910 | /* name first last pullen pull dir out in */ |
1049 | BANK("X", PIN_GPIOX_0, PIN_GPIOX_21, 4, 0, 4, 0, 0, 0, 1, 0, 2, 0), | 911 | BANK("X", PIN(GPIOX_0, 0), PIN(GPIOX_21, 0), 4, 0, 4, 0, 0, 0, 1, 0, 2, 0), |
1050 | BANK("Y", PIN_GPIOY_0, PIN_GPIOY_16, 3, 0, 3, 0, 3, 0, 4, 0, 5, 0), | 912 | BANK("Y", PIN(GPIOY_0, 0), PIN(GPIOY_16, 0), 3, 0, 3, 0, 3, 0, 4, 0, 5, 0), |
1051 | BANK("DV", PIN_GPIODV_0, PIN_GPIODV_29, 0, 0, 0, 0, 7, 0, 8, 0, 9, 0), | 913 | BANK("DV", PIN(GPIODV_0, 0), PIN(GPIODV_29, 0), 0, 0, 0, 0, 7, 0, 8, 0, 9, 0), |
1052 | BANK("H", PIN_GPIOH_0, PIN_GPIOH_9, 1, 16, 1, 16, 9, 19, 10, 19, 11, 19), | 914 | BANK("H", PIN(GPIOH_0, 0), PIN(GPIOH_9, 0), 1, 16, 1, 16, 9, 19, 10, 19, 11, 19), |
1053 | BANK("Z", PIN_GPIOZ_0, PIN_GPIOZ_14, 1, 0, 1, 0, 3, 17, 4, 17, 5, 17), | 915 | BANK("Z", PIN(GPIOZ_0, 0), PIN(GPIOZ_14, 0), 1, 0, 1, 0, 3, 17, 4, 17, 5, 17), |
1054 | BANK("CARD", PIN_CARD_0, PIN_CARD_6, 2, 20, 2, 20, 0, 22, 1, 22, 2, 22), | 916 | BANK("CARD", PIN(CARD_0, 0), PIN(CARD_6, 0), 2, 20, 2, 20, 0, 22, 1, 22, 2, 22), |
1055 | BANK("BOOT", PIN_BOOT_0, PIN_BOOT_18, 2, 0, 2, 0, 9, 0, 10, 0, 11, 0), | 917 | BANK("BOOT", PIN(BOOT_0, 0), PIN(BOOT_18, 0), 2, 0, 2, 0, 9, 0, 10, 0, 11, 0), |
1056 | }; | 918 | }; |
1057 | 919 | ||
1058 | static struct meson_bank meson8_ao_banks[] = { | 920 | static struct meson_bank meson8_ao_banks[] = { |
1059 | /* name first last pullen pull dir out in */ | 921 | /* name first last pullen pull dir out in */ |
1060 | BANK("AO", PIN_GPIOAO_0, PIN_GPIO_TEST_N, 0, 0, 0, 16, 0, 0, 0, 16, 1, 0), | 922 | BANK("AO", PIN(GPIOAO_0, AO_OFF), PIN(GPIO_TEST_N, AO_OFF), 0, 0, 0, 16, 0, 0, 0, 16, 1, 0), |
1061 | }; | 923 | }; |
1062 | 924 | ||
1063 | static struct meson_domain_data meson8_domain_data[] = { | 925 | static struct meson_domain_data meson8_domain_data[] = { |