aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarlo Caione <carlo@endlessm.com>2015-03-19 17:34:10 -0400
committerLinus Walleij <linus.walleij@linaro.org>2015-04-07 05:40:42 -0400
commit0cf6f3c2b5ef0b5b3bb82f02edbeda4751b27763 (patch)
tree2255249d481a019a89680b23bcf308c477d1212e
parent25a853d037a40b7ac2c317adef6442ef92d8407e (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.h8
-rw-r--r--drivers/pinctrl/meson/pinctrl-meson8.c1050
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
209extern struct meson_pinctrl_data meson8_pinctrl_data; 211extern 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
157static const struct pinctrl_pin_desc meson8_pins[] = { 19static 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 */
297static const unsigned int sd_d0_a_pins[] = { PIN_GPIOX_0 }; 159static const unsigned int sd_d0_a_pins[] = { PIN(GPIOX_0, 0) };
298static const unsigned int sd_d1_a_pins[] = { PIN_GPIOX_1 }; 160static const unsigned int sd_d1_a_pins[] = { PIN(GPIOX_1, 0) };
299static const unsigned int sd_d2_a_pins[] = { PIN_GPIOX_2 }; 161static const unsigned int sd_d2_a_pins[] = { PIN(GPIOX_2, 0) };
300static const unsigned int sd_d3_a_pins[] = { PIN_GPIOX_3 }; 162static const unsigned int sd_d3_a_pins[] = { PIN(GPIOX_3, 0) };
301static const unsigned int sd_clk_a_pins[] = { PIN_GPIOX_8 }; 163static const unsigned int sd_clk_a_pins[] = { PIN(GPIOX_8, 0) };
302static const unsigned int sd_cmd_a_pins[] = { PIN_GPIOX_9 }; 164static const unsigned int sd_cmd_a_pins[] = { PIN(GPIOX_9, 0) };
303 165
304static const unsigned int sdxc_d0_a_pins[] = { PIN_GPIOX_0 }; 166static const unsigned int sdxc_d0_a_pins[] = { PIN(GPIOX_0, 0) };
305static const unsigned int sdxc_d13_a_pins[] = { PIN_GPIOX_1, PIN_GPIOX_2, 167static const unsigned int sdxc_d13_a_pins[] = { PIN(GPIOX_1, 0), PIN(GPIOX_2, 0),
306 PIN_GPIOX_3 }; 168 PIN(GPIOX_3, 0) };
307static const unsigned int sdxc_d47_a_pins[] = { PIN_GPIOX_4, PIN_GPIOX_5, 169static 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) };
309static const unsigned int sdxc_clk_a_pins[] = { PIN_GPIOX_8 }; 171static const unsigned int sdxc_clk_a_pins[] = { PIN(GPIOX_8, 0) };
310static const unsigned int sdxc_cmd_a_pins[] = { PIN_GPIOX_9 }; 172static const unsigned int sdxc_cmd_a_pins[] = { PIN(GPIOX_9, 0) };
311 173
312static const unsigned int pcm_out_a_pins[] = { PIN_GPIOX_4 }; 174static const unsigned int pcm_out_a_pins[] = { PIN(GPIOX_4, 0) };
313static const unsigned int pcm_in_a_pins[] = { PIN_GPIOX_5 }; 175static const unsigned int pcm_in_a_pins[] = { PIN(GPIOX_5, 0) };
314static const unsigned int pcm_fs_a_pins[] = { PIN_GPIOX_6 }; 176static const unsigned int pcm_fs_a_pins[] = { PIN(GPIOX_6, 0) };
315static const unsigned int pcm_clk_a_pins[] = { PIN_GPIOX_7 }; 177static const unsigned int pcm_clk_a_pins[] = { PIN(GPIOX_7, 0) };
316 178
317static const unsigned int uart_tx_a0_pins[] = { PIN_GPIOX_4 }; 179static const unsigned int uart_tx_a0_pins[] = { PIN(GPIOX_4, 0) };
318static const unsigned int uart_rx_a0_pins[] = { PIN_GPIOX_5 }; 180static const unsigned int uart_rx_a0_pins[] = { PIN(GPIOX_5, 0) };
319static const unsigned int uart_cts_a0_pins[] = { PIN_GPIOX_6 }; 181static const unsigned int uart_cts_a0_pins[] = { PIN(GPIOX_6, 0) };
320static const unsigned int uart_rts_a0_pins[] = { PIN_GPIOX_7 }; 182static const unsigned int uart_rts_a0_pins[] = { PIN(GPIOX_7, 0) };
321 183
322static const unsigned int uart_tx_a1_pins[] = { PIN_GPIOX_12 }; 184static const unsigned int uart_tx_a1_pins[] = { PIN(GPIOX_12, 0) };
323static const unsigned int uart_rx_a1_pins[] = { PIN_GPIOX_13 }; 185static const unsigned int uart_rx_a1_pins[] = { PIN(GPIOX_13, 0) };
324static const unsigned int uart_cts_a1_pins[] = { PIN_GPIOX_14 }; 186static const unsigned int uart_cts_a1_pins[] = { PIN(GPIOX_14, 0) };
325static const unsigned int uart_rts_a1_pins[] = { PIN_GPIOX_15 }; 187static const unsigned int uart_rts_a1_pins[] = { PIN(GPIOX_15, 0) };
326 188
327static const unsigned int uart_tx_b0_pins[] = { PIN_GPIOX_16 }; 189static const unsigned int uart_tx_b0_pins[] = { PIN(GPIOX_16, 0) };
328static const unsigned int uart_rx_b0_pins[] = { PIN_GPIOX_17 }; 190static const unsigned int uart_rx_b0_pins[] = { PIN(GPIOX_17, 0) };
329static const unsigned int uart_cts_b0_pins[] = { PIN_GPIOX_18 }; 191static const unsigned int uart_cts_b0_pins[] = { PIN(GPIOX_18, 0) };
330static const unsigned int uart_rts_b0_pins[] = { PIN_GPIOX_19 }; 192static const unsigned int uart_rts_b0_pins[] = { PIN(GPIOX_19, 0) };
331 193
332static const unsigned int iso7816_det_pins[] = { PIN_GPIOX_16 }; 194static const unsigned int iso7816_det_pins[] = { PIN(GPIOX_16, 0) };
333static const unsigned int iso7816_reset_pins[] = { PIN_GPIOX_17 }; 195static const unsigned int iso7816_reset_pins[] = { PIN(GPIOX_17, 0) };
334static const unsigned int iso7816_clk_pins[] = { PIN_GPIOX_18 }; 196static const unsigned int iso7816_clk_pins[] = { PIN(GPIOX_18, 0) };
335static const unsigned int iso7816_data_pins[] = { PIN_GPIOX_19 }; 197static const unsigned int iso7816_data_pins[] = { PIN(GPIOX_19, 0) };
336 198
337static const unsigned int i2c_sda_d0_pins[] = { PIN_GPIOX_16 }; 199static const unsigned int i2c_sda_d0_pins[] = { PIN(GPIOX_16, 0) };
338static const unsigned int i2c_sck_d0_pins[] = { PIN_GPIOX_17 }; 200static const unsigned int i2c_sck_d0_pins[] = { PIN(GPIOX_17, 0) };
339 201
340static const unsigned int xtal_32k_out_pins[] = { PIN_GPIOX_10 }; 202static const unsigned int xtal_32k_out_pins[] = { PIN(GPIOX_10, 0) };
341static const unsigned int xtal_24m_out_pins[] = { PIN_GPIOX_11 }; 203static const unsigned int xtal_24m_out_pins[] = { PIN(GPIOX_11, 0) };
342 204
343/* bank Y */ 205/* bank Y */
344static const unsigned int uart_tx_c_pins[] = { PIN_GPIOY_0 }; 206static const unsigned int uart_tx_c_pins[] = { PIN(GPIOY_0, 0) };
345static const unsigned int uart_rx_c_pins[] = { PIN_GPIOY_1 }; 207static const unsigned int uart_rx_c_pins[] = { PIN(GPIOY_1, 0) };
346static const unsigned int uart_cts_c_pins[] = { PIN_GPIOY_2 }; 208static const unsigned int uart_cts_c_pins[] = { PIN(GPIOY_2, 0) };
347static const unsigned int uart_rts_c_pins[] = { PIN_GPIOY_3 }; 209static const unsigned int uart_rts_c_pins[] = { PIN(GPIOY_3, 0) };
348 210
349static const unsigned int pcm_out_b_pins[] = { PIN_GPIOY_4 }; 211static const unsigned int pcm_out_b_pins[] = { PIN(GPIOY_4, 0) };
350static const unsigned int pcm_in_b_pins[] = { PIN_GPIOY_5 }; 212static const unsigned int pcm_in_b_pins[] = { PIN(GPIOY_5, 0) };
351static const unsigned int pcm_fs_b_pins[] = { PIN_GPIOY_6 }; 213static const unsigned int pcm_fs_b_pins[] = { PIN(GPIOY_6, 0) };
352static const unsigned int pcm_clk_b_pins[] = { PIN_GPIOY_7 }; 214static const unsigned int pcm_clk_b_pins[] = { PIN(GPIOY_7, 0) };
353 215
354static const unsigned int i2c_sda_c0_pins[] = { PIN_GPIOY_0 }; 216static const unsigned int i2c_sda_c0_pins[] = { PIN(GPIOY_0, 0) };
355static const unsigned int i2c_sck_c0_pins[] = { PIN_GPIOY_1 }; 217static const unsigned int i2c_sck_c0_pins[] = { PIN(GPIOY_1, 0) };
356 218
357/* bank DV */ 219/* bank DV */
358static const unsigned int dvin_rgb_pins[] = { PIN_GPIODV_0, PIN_GPIODV_1, 220static 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) };
370static const unsigned int dvin_vs_pins[] = { PIN_GPIODV_24 }; 232static const unsigned int dvin_vs_pins[] = { PIN(GPIODV_24, 0) };
371static const unsigned int dvin_hs_pins[] = { PIN_GPIODV_25 }; 233static const unsigned int dvin_hs_pins[] = { PIN(GPIODV_25, 0) };
372static const unsigned int dvin_clk_pins[] = { PIN_GPIODV_26 }; 234static const unsigned int dvin_clk_pins[] = { PIN(GPIODV_26, 0) };
373static const unsigned int dvin_de_pins[] = { PIN_GPIODV_27 }; 235static const unsigned int dvin_de_pins[] = { PIN(GPIODV_27, 0) };
374 236
375static const unsigned int enc_0_pins[] = { PIN_GPIODV_0 }; 237static const unsigned int enc_0_pins[] = { PIN(GPIODV_0, 0) };
376static const unsigned int enc_1_pins[] = { PIN_GPIODV_1 }; 238static const unsigned int enc_1_pins[] = { PIN(GPIODV_1, 0) };
377static const unsigned int enc_2_pins[] = { PIN_GPIODV_2 }; 239static const unsigned int enc_2_pins[] = { PIN(GPIODV_2, 0) };
378static const unsigned int enc_3_pins[] = { PIN_GPIODV_3 }; 240static const unsigned int enc_3_pins[] = { PIN(GPIODV_3, 0) };
379static const unsigned int enc_4_pins[] = { PIN_GPIODV_4 }; 241static const unsigned int enc_4_pins[] = { PIN(GPIODV_4, 0) };
380static const unsigned int enc_5_pins[] = { PIN_GPIODV_5 }; 242static const unsigned int enc_5_pins[] = { PIN(GPIODV_5, 0) };
381static const unsigned int enc_6_pins[] = { PIN_GPIODV_6 }; 243static const unsigned int enc_6_pins[] = { PIN(GPIODV_6, 0) };
382static const unsigned int enc_7_pins[] = { PIN_GPIODV_7 }; 244static const unsigned int enc_7_pins[] = { PIN(GPIODV_7, 0) };
383static const unsigned int enc_8_pins[] = { PIN_GPIODV_8 }; 245static const unsigned int enc_8_pins[] = { PIN(GPIODV_8, 0) };
384static const unsigned int enc_9_pins[] = { PIN_GPIODV_9 }; 246static const unsigned int enc_9_pins[] = { PIN(GPIODV_9, 0) };
385static const unsigned int enc_10_pins[] = { PIN_GPIODV_10 }; 247static const unsigned int enc_10_pins[] = { PIN(GPIODV_10, 0) };
386static const unsigned int enc_11_pins[] = { PIN_GPIODV_11 }; 248static const unsigned int enc_11_pins[] = { PIN(GPIODV_11, 0) };
387static const unsigned int enc_12_pins[] = { PIN_GPIODV_12 }; 249static const unsigned int enc_12_pins[] = { PIN(GPIODV_12, 0) };
388static const unsigned int enc_13_pins[] = { PIN_GPIODV_13 }; 250static const unsigned int enc_13_pins[] = { PIN(GPIODV_13, 0) };
389static const unsigned int enc_14_pins[] = { PIN_GPIODV_14 }; 251static const unsigned int enc_14_pins[] = { PIN(GPIODV_14, 0) };
390static const unsigned int enc_15_pins[] = { PIN_GPIODV_15 }; 252static const unsigned int enc_15_pins[] = { PIN(GPIODV_15, 0) };
391static const unsigned int enc_16_pins[] = { PIN_GPIODV_16 }; 253static const unsigned int enc_16_pins[] = { PIN(GPIODV_16, 0) };
392static const unsigned int enc_17_pins[] = { PIN_GPIODV_17 }; 254static const unsigned int enc_17_pins[] = { PIN(GPIODV_17, 0) };
393 255
394static const unsigned int uart_tx_b1_pins[] = { PIN_GPIODV_24 }; 256static const unsigned int uart_tx_b1_pins[] = { PIN(GPIODV_24, 0) };
395static const unsigned int uart_rx_b1_pins[] = { PIN_GPIODV_25 }; 257static const unsigned int uart_rx_b1_pins[] = { PIN(GPIODV_25, 0) };
396static const unsigned int uart_cts_b1_pins[] = { PIN_GPIODV_26 }; 258static const unsigned int uart_cts_b1_pins[] = { PIN(GPIODV_26, 0) };
397static const unsigned int uart_rts_b1_pins[] = { PIN_GPIODV_27 }; 259static const unsigned int uart_rts_b1_pins[] = { PIN(GPIODV_27, 0) };
398 260
399static const unsigned int vga_vs_pins[] = { PIN_GPIODV_24 }; 261static const unsigned int vga_vs_pins[] = { PIN(GPIODV_24, 0) };
400static const unsigned int vga_hs_pins[] = { PIN_GPIODV_25 }; 262static const unsigned int vga_hs_pins[] = { PIN(GPIODV_25, 0) };
401 263
402/* bank H */ 264/* bank H */
403static const unsigned int hdmi_hpd_pins[] = { PIN_GPIOH_0 }; 265static const unsigned int hdmi_hpd_pins[] = { PIN(GPIOH_0, 0) };
404static const unsigned int hdmi_sda_pins[] = { PIN_GPIOH_1 }; 266static const unsigned int hdmi_sda_pins[] = { PIN(GPIOH_1, 0) };
405static const unsigned int hdmi_scl_pins[] = { PIN_GPIOH_2 }; 267static const unsigned int hdmi_scl_pins[] = { PIN(GPIOH_2, 0) };
406static const unsigned int hdmi_cec_pins[] = { PIN_GPIOH_3 }; 268static const unsigned int hdmi_cec_pins[] = { PIN(GPIOH_3, 0) };
407 269
408static const unsigned int spi_ss0_0_pins[] = { PIN_GPIOH_3 }; 270static const unsigned int spi_ss0_0_pins[] = { PIN(GPIOH_3, 0) };
409static const unsigned int spi_miso_0_pins[] = { PIN_GPIOH_4 }; 271static const unsigned int spi_miso_0_pins[] = { PIN(GPIOH_4, 0) };
410static const unsigned int spi_mosi_0_pins[] = { PIN_GPIOH_5 }; 272static const unsigned int spi_mosi_0_pins[] = { PIN(GPIOH_5, 0) };
411static const unsigned int spi_sclk_0_pins[] = { PIN_GPIOH_6 }; 273static const unsigned int spi_sclk_0_pins[] = { PIN(GPIOH_6, 0) };
412 274
413static const unsigned int i2c_sda_d1_pins[] = { PIN_GPIOH_7 }; 275static const unsigned int i2c_sda_d1_pins[] = { PIN(GPIOH_7, 0) };
414static const unsigned int i2c_sck_d1_pins[] = { PIN_GPIOH_8 }; 276static const unsigned int i2c_sck_d1_pins[] = { PIN(GPIOH_8, 0) };
415 277
416/* bank Z */ 278/* bank Z */
417static const unsigned int spi_ss0_1_pins[] = { PIN_GPIOZ_9 }; 279static const unsigned int spi_ss0_1_pins[] = { PIN(GPIOZ_9, 0) };
418static const unsigned int spi_ss1_1_pins[] = { PIN_GPIOZ_10 }; 280static const unsigned int spi_ss1_1_pins[] = { PIN(GPIOZ_10, 0) };
419static const unsigned int spi_sclk_1_pins[] = { PIN_GPIOZ_11 }; 281static const unsigned int spi_sclk_1_pins[] = { PIN(GPIOZ_11, 0) };
420static const unsigned int spi_mosi_1_pins[] = { PIN_GPIOZ_12 }; 282static const unsigned int spi_mosi_1_pins[] = { PIN(GPIOZ_12, 0) };
421static const unsigned int spi_miso_1_pins[] = { PIN_GPIOZ_13 }; 283static const unsigned int spi_miso_1_pins[] = { PIN(GPIOZ_13, 0) };
422static const unsigned int spi_ss2_1_pins[] = { PIN_GPIOZ_14 }; 284static const unsigned int spi_ss2_1_pins[] = { PIN(GPIOZ_14, 0) };
423 285
424static const unsigned int eth_tx_clk_50m_pins[] = { PIN_GPIOZ_4 }; 286static const unsigned int eth_tx_clk_50m_pins[] = { PIN(GPIOZ_4, 0) };
425static const unsigned int eth_tx_en_pins[] = { PIN_GPIOZ_5 }; 287static const unsigned int eth_tx_en_pins[] = { PIN(GPIOZ_5, 0) };
426static const unsigned int eth_txd1_pins[] = { PIN_GPIOZ_6 }; 288static const unsigned int eth_txd1_pins[] = { PIN(GPIOZ_6, 0) };
427static const unsigned int eth_txd0_pins[] = { PIN_GPIOZ_7 }; 289static const unsigned int eth_txd0_pins[] = { PIN(GPIOZ_7, 0) };
428static const unsigned int eth_rx_clk_in_pins[] = { PIN_GPIOZ_8 }; 290static const unsigned int eth_rx_clk_in_pins[] = { PIN(GPIOZ_8, 0) };
429static const unsigned int eth_rx_dv_pins[] = { PIN_GPIOZ_9 }; 291static const unsigned int eth_rx_dv_pins[] = { PIN(GPIOZ_9, 0) };
430static const unsigned int eth_rxd1_pins[] = { PIN_GPIOZ_10 }; 292static const unsigned int eth_rxd1_pins[] = { PIN(GPIOZ_10, 0) };
431static const unsigned int eth_rxd0_pins[] = { PIN_GPIOZ_11 }; 293static const unsigned int eth_rxd0_pins[] = { PIN(GPIOZ_11, 0) };
432static const unsigned int eth_mdio_pins[] = { PIN_GPIOZ_12 }; 294static const unsigned int eth_mdio_pins[] = { PIN(GPIOZ_12, 0) };
433static const unsigned int eth_mdc_pins[] = { PIN_GPIOZ_13 }; 295static const unsigned int eth_mdc_pins[] = { PIN(GPIOZ_13, 0) };
434 296
435static const unsigned int i2c_sda_a0_pins[] = { PIN_GPIOZ_0 }; 297static const unsigned int i2c_sda_a0_pins[] = { PIN(GPIOZ_0, 0) };
436static const unsigned int i2c_sck_a0_pins[] = { PIN_GPIOZ_1 }; 298static const unsigned int i2c_sck_a0_pins[] = { PIN(GPIOZ_1, 0) };
437 299
438static const unsigned int i2c_sda_b_pins[] = { PIN_GPIOZ_2 }; 300static const unsigned int i2c_sda_b_pins[] = { PIN(GPIOZ_2, 0) };
439static const unsigned int i2c_sck_b_pins[] = { PIN_GPIOZ_3 }; 301static const unsigned int i2c_sck_b_pins[] = { PIN(GPIOZ_3, 0) };
440 302
441static const unsigned int i2c_sda_c1_pins[] = { PIN_GPIOZ_4 }; 303static const unsigned int i2c_sda_c1_pins[] = { PIN(GPIOZ_4, 0) };
442static const unsigned int i2c_sck_c1_pins[] = { PIN_GPIOZ_5 }; 304static const unsigned int i2c_sck_c1_pins[] = { PIN(GPIOZ_5, 0) };
443 305
444static const unsigned int i2c_sda_a1_pins[] = { PIN_GPIOZ_0 }; 306static const unsigned int i2c_sda_a1_pins[] = { PIN(GPIOZ_0, 0) };
445static const unsigned int i2c_sck_a1_pins[] = { PIN_GPIOZ_1 }; 307static const unsigned int i2c_sck_a1_pins[] = { PIN(GPIOZ_1, 0) };
446 308
447static const unsigned int i2c_sda_a2_pins[] = { PIN_GPIOZ_0 }; 309static const unsigned int i2c_sda_a2_pins[] = { PIN(GPIOZ_0, 0) };
448static const unsigned int i2c_sck_a2_pins[] = { PIN_GPIOZ_1 }; 310static const unsigned int i2c_sck_a2_pins[] = { PIN(GPIOZ_1, 0) };
449 311
450/* bank BOOT */ 312/* bank BOOT */
451static const unsigned int sd_d0_c_pins[] = { PIN_BOOT_0 }; 313static const unsigned int sd_d0_c_pins[] = { PIN(BOOT_0, 0) };
452static const unsigned int sd_d1_c_pins[] = { PIN_BOOT_1 }; 314static const unsigned int sd_d1_c_pins[] = { PIN(BOOT_1, 0) };
453static const unsigned int sd_d2_c_pins[] = { PIN_BOOT_2 }; 315static const unsigned int sd_d2_c_pins[] = { PIN(BOOT_2, 0) };
454static const unsigned int sd_d3_c_pins[] = { PIN_BOOT_3 }; 316static const unsigned int sd_d3_c_pins[] = { PIN(BOOT_3, 0) };
455static const unsigned int sd_cmd_c_pins[] = { PIN_BOOT_16 }; 317static const unsigned int sd_cmd_c_pins[] = { PIN(BOOT_16, 0) };
456static const unsigned int sd_clk_c_pins[] = { PIN_BOOT_17 }; 318static const unsigned int sd_clk_c_pins[] = { PIN(BOOT_17, 0) };
457 319
458static const unsigned int sdxc_d0_c_pins[] = { PIN_BOOT_0}; 320static const unsigned int sdxc_d0_c_pins[] = { PIN(BOOT_0, 0)};
459static const unsigned int sdxc_d13_c_pins[] = { PIN_BOOT_1, PIN_BOOT_2, 321static const unsigned int sdxc_d13_c_pins[] = { PIN(BOOT_1, 0), PIN(BOOT_2, 0),
460 PIN_BOOT_3 }; 322 PIN(BOOT_3, 0) };
461static const unsigned int sdxc_d47_c_pins[] = { PIN_BOOT_4, PIN_BOOT_5, 323static 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) };
463static const unsigned int sdxc_cmd_c_pins[] = { PIN_BOOT_16 }; 325static const unsigned int sdxc_cmd_c_pins[] = { PIN(BOOT_16, 0) };
464static const unsigned int sdxc_clk_c_pins[] = { PIN_BOOT_17 }; 326static const unsigned int sdxc_clk_c_pins[] = { PIN(BOOT_17, 0) };
465 327
466static const unsigned int nand_io_pins[] = { PIN_BOOT_0, PIN_BOOT_1, 328static 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) };
470static const unsigned int nand_io_ce0_pins[] = { PIN_BOOT_8 }; 332static const unsigned int nand_io_ce0_pins[] = { PIN(BOOT_8, 0) };
471static const unsigned int nand_io_ce1_pins[] = { PIN_BOOT_9 }; 333static const unsigned int nand_io_ce1_pins[] = { PIN(BOOT_9, 0) };
472static const unsigned int nand_io_rb0_pins[] = { PIN_BOOT_10 }; 334static const unsigned int nand_io_rb0_pins[] = { PIN(BOOT_10, 0) };
473static const unsigned int nand_ale_pins[] = { PIN_BOOT_11 }; 335static const unsigned int nand_ale_pins[] = { PIN(BOOT_11, 0) };
474static const unsigned int nand_cle_pins[] = { PIN_BOOT_12 }; 336static const unsigned int nand_cle_pins[] = { PIN(BOOT_12, 0) };
475static const unsigned int nand_wen_clk_pins[] = { PIN_BOOT_13 }; 337static const unsigned int nand_wen_clk_pins[] = { PIN(BOOT_13, 0) };
476static const unsigned int nand_ren_clk_pins[] = { PIN_BOOT_14 }; 338static const unsigned int nand_ren_clk_pins[] = { PIN(BOOT_14, 0) };
477static const unsigned int nand_dqs_pins[] = { PIN_BOOT_15 }; 339static const unsigned int nand_dqs_pins[] = { PIN(BOOT_15, 0) };
478static const unsigned int nand_ce2_pins[] = { PIN_BOOT_16 }; 340static const unsigned int nand_ce2_pins[] = { PIN(BOOT_16, 0) };
479static const unsigned int nand_ce3_pins[] = { PIN_BOOT_17 }; 341static const unsigned int nand_ce3_pins[] = { PIN(BOOT_17, 0) };
480 342
481static const unsigned int nor_d_pins[] = { PIN_BOOT_11 }; 343static const unsigned int nor_d_pins[] = { PIN(BOOT_11, 0) };
482static const unsigned int nor_q_pins[] = { PIN_BOOT_12 }; 344static const unsigned int nor_q_pins[] = { PIN(BOOT_12, 0) };
483static const unsigned int nor_c_pins[] = { PIN_BOOT_13 }; 345static const unsigned int nor_c_pins[] = { PIN(BOOT_13, 0) };
484static const unsigned int nor_cs_pins[] = { PIN_BOOT_18 }; 346static const unsigned int nor_cs_pins[] = { PIN(BOOT_18, 0) };
485 347
486/* bank CARD */ 348/* bank CARD */
487static const unsigned int sd_d1_b_pins[] = { PIN_CARD_0 }; 349static const unsigned int sd_d1_b_pins[] = { PIN(CARD_0, 0) };
488static const unsigned int sd_d0_b_pins[] = { PIN_CARD_1 }; 350static const unsigned int sd_d0_b_pins[] = { PIN(CARD_1, 0) };
489static const unsigned int sd_clk_b_pins[] = { PIN_CARD_2 }; 351static const unsigned int sd_clk_b_pins[] = { PIN(CARD_2, 0) };
490static const unsigned int sd_cmd_b_pins[] = { PIN_CARD_3 }; 352static const unsigned int sd_cmd_b_pins[] = { PIN(CARD_3, 0) };
491static const unsigned int sd_d3_b_pins[] = { PIN_CARD_4 }; 353static const unsigned int sd_d3_b_pins[] = { PIN(CARD_4, 0) };
492static const unsigned int sd_d2_b_pins[] = { PIN_CARD_5 }; 354static const unsigned int sd_d2_b_pins[] = { PIN(CARD_5, 0) };
493 355
494static const unsigned int sdxc_d13_b_pins[] = { PIN_CARD_0, PIN_CARD_4, 356static const unsigned int sdxc_d13_b_pins[] = { PIN(CARD_0, 0), PIN(CARD_4, 0),
495 PIN_CARD_5 }; 357 PIN(CARD_5, 0) };
496static const unsigned int sdxc_d0_b_pins[] = { PIN_CARD_1 }; 358static const unsigned int sdxc_d0_b_pins[] = { PIN(CARD_1, 0) };
497static const unsigned int sdxc_clk_b_pins[] = { PIN_CARD_2 }; 359static const unsigned int sdxc_clk_b_pins[] = { PIN(CARD_2, 0) };
498static const unsigned int sdxc_cmd_b_pins[] = { PIN_CARD_3 }; 360static const unsigned int sdxc_cmd_b_pins[] = { PIN(CARD_3, 0) };
499 361
500/* bank AO */ 362/* bank AO */
501static const unsigned int uart_tx_ao_a_pins[] = { PIN_GPIOAO_0 }; 363static const unsigned int uart_tx_ao_a_pins[] = { PIN(GPIOAO_0, AO_OFF) };
502static const unsigned int uart_rx_ao_a_pins[] = { PIN_GPIOAO_1 }; 364static const unsigned int uart_rx_ao_a_pins[] = { PIN(GPIOAO_1, AO_OFF) };
503static const unsigned int uart_cts_ao_a_pins[] = { PIN_GPIOAO_2 }; 365static const unsigned int uart_cts_ao_a_pins[] = { PIN(GPIOAO_2, AO_OFF) };
504static const unsigned int uart_rts_ao_a_pins[] = { PIN_GPIOAO_3 }; 366static const unsigned int uart_rts_ao_a_pins[] = { PIN(GPIOAO_3, AO_OFF) };
505 367
506static const unsigned int remote_input_pins[] = { PIN_GPIOAO_7 }; 368static const unsigned int remote_input_pins[] = { PIN(GPIOAO_7, AO_OFF) };
507 369
508static const unsigned int i2c_slave_sck_ao_pins[] = { PIN_GPIOAO_4 }; 370static const unsigned int i2c_slave_sck_ao_pins[] = { PIN(GPIOAO_4, AO_OFF) };
509static const unsigned int i2c_slave_sda_ao_pins[] = { PIN_GPIOAO_5 }; 371static const unsigned int i2c_slave_sda_ao_pins[] = { PIN(GPIOAO_5, AO_OFF) };
510 372
511static const unsigned int uart_tx_ao_b0_pins[] = { PIN_GPIOAO_0 }; 373static const unsigned int uart_tx_ao_b0_pins[] = { PIN(GPIOAO_0, AO_OFF) };
512static const unsigned int uart_rx_ao_b0_pins[] = { PIN_GPIOAO_1 }; 374static const unsigned int uart_rx_ao_b0_pins[] = { PIN(GPIOAO_1, AO_OFF) };
513 375
514static const unsigned int uart_tx_ao_b1_pins[] = { PIN_GPIOAO_4 }; 376static const unsigned int uart_tx_ao_b1_pins[] = { PIN(GPIOAO_4, AO_OFF) };
515static const unsigned int uart_rx_ao_b1_pins[] = { PIN_GPIOAO_5 }; 377static const unsigned int uart_rx_ao_b1_pins[] = { PIN(GPIOAO_5, AO_OFF) };
516 378
517static const unsigned int i2c_mst_sck_ao_pins[] = { PIN_GPIOAO_4 }; 379static const unsigned int i2c_mst_sck_ao_pins[] = { PIN(GPIOAO_4, AO_OFF) };
518static const unsigned int i2c_mst_sda_ao_pins[] = { PIN_GPIOAO_5 }; 380static const unsigned int i2c_mst_sda_ao_pins[] = { PIN(GPIOAO_5, AO_OFF) };
519 381
520static struct meson_pmx_group meson8_groups[] = { 382static 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
1047static struct meson_bank meson8_banks[] = { 909static 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
1058static struct meson_bank meson8_ao_banks[] = { 920static 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
1063static struct meson_domain_data meson8_domain_data[] = { 925static struct meson_domain_data meson8_domain_data[] = {