2 * arch/arm/mach-tegra/include/mach/gpio-names.h
4 * Copyright (c) 2010 Google, Inc
5 * Copyright (C) 2011-2012 NVIDIA Corporation.
8 * Erik Gilling <konkers@google.com>
10 * This software is licensed under the terms of the GNU General Public
11 * License version 2, as published by the Free Software Foundation, and
12 * may be copied, distributed, and modified under those terms.
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
20 #ifndef __MACH_TEGRA_GPIO_NAMES_H
21 #define __MACH_TEGRA_GPIO_NAMES_H
23 #include <mach/gpio-tegra.h>
25 #define TEGRA_GPIO_INVALID -1
26 #define TEGRA_GPIO_PA0 0
27 #define TEGRA_GPIO_PA1 1
28 #define TEGRA_GPIO_PA2 2
29 #define TEGRA_GPIO_PA3 3
30 #define TEGRA_GPIO_PA4 4
31 #define TEGRA_GPIO_PA5 5
32 #define TEGRA_GPIO_PA6 6
33 #define TEGRA_GPIO_PA7 7
34 #define TEGRA_GPIO_PB0 8
35 #define TEGRA_GPIO_PB1 9
36 #define TEGRA_GPIO_PB2 10
37 #define TEGRA_GPIO_PB3 11
38 #define TEGRA_GPIO_PB4 12
39 #define TEGRA_GPIO_PB5 13
40 #define TEGRA_GPIO_PB6 14
41 #define TEGRA_GPIO_PB7 15
42 #define TEGRA_GPIO_PC0 16
43 #define TEGRA_GPIO_PC1 17
44 #define TEGRA_GPIO_PC2 18
45 #define TEGRA_GPIO_PC3 19
46 #define TEGRA_GPIO_PC4 20
47 #define TEGRA_GPIO_PC5 21
48 #define TEGRA_GPIO_PC6 22
49 #define TEGRA_GPIO_PC7 23
50 #define TEGRA_GPIO_PD0 24
51 #define TEGRA_GPIO_PD1 25
52 #define TEGRA_GPIO_PD2 26
53 #define TEGRA_GPIO_PD3 27
54 #define TEGRA_GPIO_PD4 28
55 #define TEGRA_GPIO_PD5 29
56 #define TEGRA_GPIO_PD6 30
57 #define TEGRA_GPIO_PD7 31
58 #define TEGRA_GPIO_PE0 32
59 #define TEGRA_GPIO_PE1 33
60 #define TEGRA_GPIO_PE2 34
61 #define TEGRA_GPIO_PE3 35
62 #define TEGRA_GPIO_PE4 36
63 #define TEGRA_GPIO_PE5 37
64 #define TEGRA_GPIO_PE6 38
65 #define TEGRA_GPIO_PE7 39
66 #define TEGRA_GPIO_PF0 40
67 #define TEGRA_GPIO_PF1 41
68 #define TEGRA_GPIO_PF2 42
69 #define TEGRA_GPIO_PF3 43
70 #define TEGRA_GPIO_PF4 44
71 #define TEGRA_GPIO_PF5 45
72 #define TEGRA_GPIO_PF6 46
73 #define TEGRA_GPIO_PF7 47
74 #define TEGRA_GPIO_PG0 48
75 #define TEGRA_GPIO_PG1 49
76 #define TEGRA_GPIO_PG2 50
77 #define TEGRA_GPIO_PG3 51
78 #define TEGRA_GPIO_PG4 52
79 #define TEGRA_GPIO_PG5 53
80 #define TEGRA_GPIO_PG6 54
81 #define TEGRA_GPIO_PG7 55
82 #define TEGRA_GPIO_PH0 56
83 #define TEGRA_GPIO_PH1 57
84 #define TEGRA_GPIO_PH2 58
85 #define TEGRA_GPIO_PH3 59
86 #define TEGRA_GPIO_PH4 60
87 #define TEGRA_GPIO_PH5 61
88 #define TEGRA_GPIO_PH6 62
89 #define TEGRA_GPIO_PH7 63
90 #define TEGRA_GPIO_PI0 64
91 #define TEGRA_GPIO_PI1 65
92 #define TEGRA_GPIO_PI2 66
93 #define TEGRA_GPIO_PI3 67
94 #define TEGRA_GPIO_PI4 68
95 #define TEGRA_GPIO_PI5 69
96 #define TEGRA_GPIO_PI6 70
97 #define TEGRA_GPIO_PI7 71
98 #define TEGRA_GPIO_PJ0 72
99 #define TEGRA_GPIO_PJ1 73
100 #define TEGRA_GPIO_PJ2 74
101 #define TEGRA_GPIO_PJ3 75
102 #define TEGRA_GPIO_PJ4 76
103 #define TEGRA_GPIO_PJ5 77
104 #define TEGRA_GPIO_PJ6 78
105 #define TEGRA_GPIO_PJ7 79
106 #define TEGRA_GPIO_PK0 80
107 #define TEGRA_GPIO_PK1 81
108 #define TEGRA_GPIO_PK2 82
109 #define TEGRA_GPIO_PK3 83
110 #define TEGRA_GPIO_PK4 84
111 #define TEGRA_GPIO_PK5 85
112 #define TEGRA_GPIO_PK6 86
113 #define TEGRA_GPIO_PK7 87
114 #define TEGRA_GPIO_PL0 88
115 #define TEGRA_GPIO_PL1 89
116 #define TEGRA_GPIO_PL2 90
117 #define TEGRA_GPIO_PL3 91
118 #define TEGRA_GPIO_PL4 92
119 #define TEGRA_GPIO_PL5 93
120 #define TEGRA_GPIO_PL6 94
121 #define TEGRA_GPIO_PL7 95
122 #define TEGRA_GPIO_PM0 96
123 #define TEGRA_GPIO_PM1 97
124 #define TEGRA_GPIO_PM2 98
125 #define TEGRA_GPIO_PM3 99
126 #define TEGRA_GPIO_PM4 100
127 #define TEGRA_GPIO_PM5 101
128 #define TEGRA_GPIO_PM6 102
129 #define TEGRA_GPIO_PM7 103
130 #define TEGRA_GPIO_PN0 104
131 #define TEGRA_GPIO_PN1 105
132 #define TEGRA_GPIO_PN2 106
133 #define TEGRA_GPIO_PN3 107
134 #define TEGRA_GPIO_PN4 108
135 #define TEGRA_GPIO_PN5 109
136 #define TEGRA_GPIO_PN6 110
137 #define TEGRA_GPIO_PN7 111
138 #define TEGRA_GPIO_PO0 112
139 #define TEGRA_GPIO_PO1 113
140 #define TEGRA_GPIO_PO2 114
141 #define TEGRA_GPIO_PO3 115
142 #define TEGRA_GPIO_PO4 116
143 #define TEGRA_GPIO_PO5 117
144 #define TEGRA_GPIO_PO6 118
145 #define TEGRA_GPIO_PO7 119
146 #define TEGRA_GPIO_PP0 120
147 #define TEGRA_GPIO_PP1 121
148 #define TEGRA_GPIO_PP2 122
149 #define TEGRA_GPIO_PP3 123
150 #define TEGRA_GPIO_PP4 124
151 #define TEGRA_GPIO_PP5 125
152 #define TEGRA_GPIO_PP6 126
153 #define TEGRA_GPIO_PP7 127
154 #define TEGRA_GPIO_PQ0 128
155 #define TEGRA_GPIO_PQ1 129
156 #define TEGRA_GPIO_PQ2 130
157 #define TEGRA_GPIO_PQ3 131
158 #define TEGRA_GPIO_PQ4 132
159 #define TEGRA_GPIO_PQ5 133
160 #define TEGRA_GPIO_PQ6 134
161 #define TEGRA_GPIO_PQ7 135
162 #define TEGRA_GPIO_PR0 136
163 #define TEGRA_GPIO_PR1 137
164 #define TEGRA_GPIO_PR2 138
165 #define TEGRA_GPIO_PR3 139
166 #define TEGRA_GPIO_PR4 140
167 #define TEGRA_GPIO_PR5 141
168 #define TEGRA_GPIO_PR6 142
169 #define TEGRA_GPIO_PR7 143
170 #define TEGRA_GPIO_PS0 144
171 #define TEGRA_GPIO_PS1 145
172 #define TEGRA_GPIO_PS2 146
173 #define TEGRA_GPIO_PS3 147
174 #define TEGRA_GPIO_PS4 148
175 #define TEGRA_GPIO_PS5 149
176 #define TEGRA_GPIO_PS6 150
177 #define TEGRA_GPIO_PS7 151
178 #define TEGRA_GPIO_PT0 152
179 #define TEGRA_GPIO_PT1 153
180 #define TEGRA_GPIO_PT2 154
181 #define TEGRA_GPIO_PT3 155
182 #define TEGRA_GPIO_PT4 156
183 #define TEGRA_GPIO_PT5 157
184 #define TEGRA_GPIO_PT6 158
185 #define TEGRA_GPIO_PT7 159
186 #define TEGRA_GPIO_PU0 160
187 #define TEGRA_GPIO_PU1 161
188 #define TEGRA_GPIO_PU2 162
189 #define TEGRA_GPIO_PU3 163
190 #define TEGRA_GPIO_PU4 164
191 #define TEGRA_GPIO_PU5 165
192 #define TEGRA_GPIO_PU6 166
193 #define TEGRA_GPIO_PU7 167
194 #define TEGRA_GPIO_PV0 168
195 #define TEGRA_GPIO_PV1 169
196 #define TEGRA_GPIO_PV2 170
197 #define TEGRA_GPIO_PV3 171
198 #define TEGRA_GPIO_PV4 172
199 #define TEGRA_GPIO_PV5 173
200 #define TEGRA_GPIO_PV6 174
201 #define TEGRA_GPIO_PV7 175
202 #define TEGRA_GPIO_PW0 176
203 #define TEGRA_GPIO_PW1 177
204 #define TEGRA_GPIO_PW2 178
205 #define TEGRA_GPIO_PW3 179
206 #define TEGRA_GPIO_PW4 180
207 #define TEGRA_GPIO_PW5 181
208 #define TEGRA_GPIO_PW6 182
209 #define TEGRA_GPIO_PW7 183
210 #define TEGRA_GPIO_PX0 184
211 #define TEGRA_GPIO_PX1 185
212 #define TEGRA_GPIO_PX2 186
213 #define TEGRA_GPIO_PX3 187
214 #define TEGRA_GPIO_PX4 188
215 #define TEGRA_GPIO_PX5 189
216 #define TEGRA_GPIO_PX6 190
217 #define TEGRA_GPIO_PX7 191
218 #define TEGRA_GPIO_PY0 192
219 #define TEGRA_GPIO_PY1 193
220 #define TEGRA_GPIO_PY2 194
221 #define TEGRA_GPIO_PY3 195
222 #define TEGRA_GPIO_PY4 196
223 #define TEGRA_GPIO_PY5 197
224 #define TEGRA_GPIO_PY6 198
225 #define TEGRA_GPIO_PY7 199
226 #define TEGRA_GPIO_PZ0 200
227 #define TEGRA_GPIO_PZ1 201
228 #define TEGRA_GPIO_PZ2 202
229 #define TEGRA_GPIO_PZ3 203
230 #define TEGRA_GPIO_PZ4 204
231 #define TEGRA_GPIO_PZ5 205
232 #define TEGRA_GPIO_PZ6 206
233 #define TEGRA_GPIO_PZ7 207
234 #define TEGRA_GPIO_PAA0 208
235 #define TEGRA_GPIO_PAA1 209
236 #define TEGRA_GPIO_PAA2 210
237 #define TEGRA_GPIO_PAA3 211
238 #define TEGRA_GPIO_PAA4 212
239 #define TEGRA_GPIO_PAA5 213
240 #define TEGRA_GPIO_PAA6 214
241 #define TEGRA_GPIO_PAA7 215
242 #define TEGRA_GPIO_PBB0 216
243 #define TEGRA_GPIO_PBB1 217
244 #define TEGRA_GPIO_PBB2 218
245 #define TEGRA_GPIO_PBB3 219
246 #define TEGRA_GPIO_PBB4 220
247 #define TEGRA_GPIO_PBB5 221
248 #define TEGRA_GPIO_PBB6 222
249 #define TEGRA_GPIO_PBB7 223
250 #define TEGRA_GPIO_PCC0 224
251 #define TEGRA_GPIO_PCC1 225
252 #define TEGRA_GPIO_PCC2 226
253 #define TEGRA_GPIO_PCC3 227
254 #define TEGRA_GPIO_PCC4 228
255 #define TEGRA_GPIO_PCC5 229
256 #define TEGRA_GPIO_PCC6 230
257 #define TEGRA_GPIO_PCC7 231
258 #define TEGRA_GPIO_PDD0 232
259 #define TEGRA_GPIO_PDD1 233
260 #define TEGRA_GPIO_PDD2 234
261 #define TEGRA_GPIO_PDD3 235
262 #define TEGRA_GPIO_PDD4 236
263 #define TEGRA_GPIO_PDD5 237
264 #define TEGRA_GPIO_PDD6 238
265 #define TEGRA_GPIO_PDD7 239
266 #define TEGRA_GPIO_PEE0 240
267 #define TEGRA_GPIO_PEE1 241
268 #define TEGRA_GPIO_PEE2 242
269 #define TEGRA_GPIO_PEE3 243
270 #define TEGRA_GPIO_PEE4 244
271 #define TEGRA_GPIO_PEE5 245
272 #define TEGRA_MAX_GPIO TEGRA_NR_GPIOS