2 * Machine structure definition macro.
3 * Copyright (c) 2004 Andrew Zabolotny
5 * This file is included multiple times, once for every supported
6 * machine type. It defines a special table with platform-specific
7 * constants, routine addresses and other data.
10 @ The first word is the length of this arch-specific table (without the first word)
11 .long CONCAT(End_, ARCH) - CONCAT(Arch_, ARCH)
13 @ Architecture-specific structure (see the ARCH_XXX offsets into this struct)
15 .long CONCAT(Check_, ARCH) - bootldr_start
16 .long CONCAT(Init_, ARCH) - bootldr_start
17 .long CONCAT(GPIO_Table_, ARCH) - bootldr_start
18 .long CONCAT(MACH_TYPE_, ARCH)
22 .long (MDREFR_K1RUN | MDREFR_K2RUN | \
23 MDREFR_E1PIN | MDREFR_K0RUN | MDREFR_E0PIN | 0x18)
24 @ os guide pg 13 part 0 running and enabled at full speed
30 .long (MDCNFG_DE0 | MDCNFG_DE1 | MDCNFG_DE2 | MDCNFG_DE3 | \
31 MDCNFG_DCAC0 | (2*MDCNFG_DRAC0) | \
32 MDCNFG_DNB0 | MDCNFG_DTC0 | MDCNFG_DLATCH0 | \
33 MDCNFG_DCAC2 | (2*MDCNFG_DRAC2) | \
34 MDCNFG_DNB2 | MDCNFG_DTC2 | MDCNFG_DLATCH2)
43 @ GPIO and MSC initial state
44 CONCAT(GPIO_Table_, ARCH):
48 #ifdef GPCRx_InitValue
58 .long GAFR0x_InitValue
59 .long GAFR1x_InitValue
60 .long GAFR0y_InitValue
61 .long GAFR1y_InitValue
62 .long GAFR0z_InitValue
63 .long GAFR1z_InitValue
68 @ Now undefine everything that's defined in the mach-init.h file because
69 @ the compiler will barf if we'll try to include more than one such file
165 #undef GPIO00_AltFunc
166 #undef GPIO01_AltFunc
167 #undef GPIO02_AltFunc
168 #undef GPIO03_AltFunc
169 #undef GPIO04_AltFunc
170 #undef GPIO05_AltFunc
171 #undef GPIO06_AltFunc
172 #undef GPIO07_AltFunc
173 #undef GPIO08_AltFunc
174 #undef GPIO09_AltFunc
175 #undef GPIO10_AltFunc
176 #undef GPIO11_AltFunc
177 #undef GPIO12_AltFunc
178 #undef GPIO13_AltFunc
179 #undef GPIO14_AltFunc
180 #undef GPIO15_AltFunc
181 #undef GPIO16_AltFunc
182 #undef GPIO17_AltFunc
183 #undef GPIO18_AltFunc
184 #undef GPIO19_AltFunc
185 #undef GPIO20_AltFunc
186 #undef GPIO21_AltFunc
187 #undef GPIO22_AltFunc
188 #undef GPIO23_AltFunc
189 #undef GPIO24_AltFunc
190 #undef GPIO25_AltFunc
191 #undef GPIO26_AltFunc
192 #undef GPIO27_AltFunc
193 #undef GPIO28_AltFunc
194 #undef GPIO29_AltFunc
195 #undef GPIO30_AltFunc
196 #undef GPIO31_AltFunc
197 #undef GPIO32_AltFunc
198 #undef GPIO33_AltFunc
199 #undef GPIO34_AltFunc
200 #undef GPIO35_AltFunc
201 #undef GPIO36_AltFunc
202 #undef GPIO37_AltFunc
203 #undef GPIO38_AltFunc
204 #undef GPIO39_AltFunc
205 #undef GPIO40_AltFunc
206 #undef GPIO41_AltFunc
207 #undef GPIO42_AltFunc
208 #undef GPIO43_AltFunc
209 #undef GPIO44_AltFunc
210 #undef GPIO45_AltFunc
211 #undef GPIO46_AltFunc
212 #undef GPIO47_AltFunc
213 #undef GPIO48_AltFunc
214 #undef GPIO49_AltFunc
215 #undef GPIO50_AltFunc
216 #undef GPIO51_AltFunc
217 #undef GPIO52_AltFunc
218 #undef GPIO53_AltFunc
219 #undef GPIO54_AltFunc
220 #undef GPIO55_AltFunc
221 #undef GPIO56_AltFunc
222 #undef GPIO57_AltFunc
223 #undef GPIO58_AltFunc
224 #undef GPIO59_AltFunc
225 #undef GPIO60_AltFunc
226 #undef GPIO61_AltFunc
227 #undef GPIO62_AltFunc
228 #undef GPIO63_AltFunc
229 #undef GPIO64_AltFunc
230 #undef GPIO65_AltFunc
231 #undef GPIO66_AltFunc
232 #undef GPIO67_AltFunc
233 #undef GPIO68_AltFunc
234 #undef GPIO69_AltFunc
235 #undef GPIO70_AltFunc
236 #undef GPIO71_AltFunc
237 #undef GPIO72_AltFunc
238 #undef GPIO73_AltFunc
239 #undef GPIO74_AltFunc
240 #undef GPIO75_AltFunc
241 #undef GPIO76_AltFunc
242 #undef GPIO77_AltFunc
243 #undef GPIO78_AltFunc
244 #undef GPIO79_AltFunc
245 #undef GPIO80_AltFunc
329 #undef GPIO00_Sleep_Level
330 #undef GPIO01_Sleep_Level
331 #undef GPIO02_Sleep_Level
332 #undef GPIO03_Sleep_Level
333 #undef GPIO04_Sleep_Level
334 #undef GPIO05_Sleep_Level
335 #undef GPIO06_Sleep_Level
336 #undef GPIO07_Sleep_Level
337 #undef GPIO08_Sleep_Level
338 #undef GPIO09_Sleep_Level
339 #undef GPIO10_Sleep_Level
340 #undef GPIO11_Sleep_Level
341 #undef GPIO12_Sleep_Level
342 #undef GPIO13_Sleep_Level
343 #undef GPIO14_Sleep_Level
344 #undef GPIO15_Sleep_Level
345 #undef GPIO16_Sleep_Level
346 #undef GPIO17_Sleep_Level
347 #undef GPIO18_Sleep_Level
348 #undef GPIO19_Sleep_Level
349 #undef GPIO20_Sleep_Level
350 #undef GPIO21_Sleep_Level
351 #undef GPIO22_Sleep_Level
352 #undef GPIO23_Sleep_Level
353 #undef GPIO24_Sleep_Level
354 #undef GPIO25_Sleep_Level
355 #undef GPIO26_Sleep_Level
356 #undef GPIO27_Sleep_Level
357 #undef GPIO28_Sleep_Level
358 #undef GPIO29_Sleep_Level
359 #undef GPIO30_Sleep_Level
360 #undef GPIO31_Sleep_Level
361 #undef GPIO32_Sleep_Level
362 #undef GPIO33_Sleep_Level
363 #undef GPIO34_Sleep_Level
364 #undef GPIO35_Sleep_Level
365 #undef GPIO36_Sleep_Level
366 #undef GPIO37_Sleep_Level
367 #undef GPIO38_Sleep_Level
368 #undef GPIO39_Sleep_Level
369 #undef GPIO40_Sleep_Level
370 #undef GPIO41_Sleep_Level
371 #undef GPIO42_Sleep_Level
372 #undef GPIO43_Sleep_Level
373 #undef GPIO44_Sleep_Level
374 #undef GPIO45_Sleep_Level
375 #undef GPIO46_Sleep_Level
376 #undef GPIO47_Sleep_Level
377 #undef GPIO48_Sleep_Level
378 #undef GPIO49_Sleep_Level
379 #undef GPIO50_Sleep_Level
380 #undef GPIO51_Sleep_Level
381 #undef GPIO52_Sleep_Level
382 #undef GPIO53_Sleep_Level
383 #undef GPIO54_Sleep_Level
384 #undef GPIO55_Sleep_Level
385 #undef GPIO56_Sleep_Level
386 #undef GPIO57_Sleep_Level
387 #undef GPIO58_Sleep_Level
388 #undef GPIO59_Sleep_Level
389 #undef GPIO60_Sleep_Level
390 #undef GPIO61_Sleep_Level
391 #undef GPIO62_Sleep_Level
392 #undef GPIO63_Sleep_Level
393 #undef GPIO64_Sleep_Level
394 #undef GPIO65_Sleep_Level
395 #undef GPIO66_Sleep_Level
396 #undef GPIO67_Sleep_Level
397 #undef GPIO68_Sleep_Level
398 #undef GPIO69_Sleep_Level
399 #undef GPIO70_Sleep_Level
400 #undef GPIO71_Sleep_Level
401 #undef GPIO72_Sleep_Level
402 #undef GPIO73_Sleep_Level
403 #undef GPIO74_Sleep_Level
404 #undef GPIO75_Sleep_Level
405 #undef GPIO76_Sleep_Level
406 #undef GPIO77_Sleep_Level
407 #undef GPIO78_Sleep_Level
408 #undef GPIO79_Sleep_Level
409 #undef GPIO80_Sleep_Level
419 #undef GPDRx_InitValue
429 #undef GPDRy_InitValue
436 #undef GPDRz_InitValue
442 #undef GAFR0x_InitValue
448 #undef GAFR1x_InitValue
454 #undef GAFR0y_InitValue
460 #undef GAFR1y_InitValue
466 #undef GAFR0z_InitValue
468 #undef GAFR1z_InitValue
478 #undef GPSRx_InitValue
488 #undef GPSRy_InitValue
495 #undef GPSRz_InitValue
505 #undef GPSRx_SleepValue
515 #undef GPSRy_SleepValue
522 #undef GPSRz_SleepValue
524 #undef GPCRx_InitValue
525 #undef GPCRy_InitValue
526 #undef GPCRz_InitValue