Go to the documentation of this file.
17 #define PLL_CTL 0xFFC00000
18 #define PLL_DIV 0xFFC00004
19 #define VR_CTL 0xFFC00008
20 #define PLL_STAT 0xFFC0000C
21 #define PLL_LOCKCNT 0xFFC00010
22 #define CHIPID 0xFFC00014
26 #define SWRST 0xFFC00100
27 #define SYSCR 0xFFC00104
28 #define SIC_RVECT 0xFFC00108
30 #define SIC_IMASK0 0xFFC0010C
31 #define SIC_IAR0 0xFFC00110
32 #define SIC_IAR1 0xFFC00114
33 #define SIC_IAR2 0xFFC00118
34 #define SIC_IAR3 0xFFC0011C
35 #define SIC_ISR0 0xFFC00120
36 #define SIC_IWR0 0xFFC00124
39 #define SIC_IMASK1 0xFFC0014C
40 #define SIC_IAR4 0xFFC00150
41 #define SIC_IAR5 0xFFC00154
42 #define SIC_IAR6 0xFFC00158
43 #define SIC_IAR7 0xFFC0015C
44 #define SIC_ISR1 0xFFC00160
45 #define SIC_IWR1 0xFFC00164
49 #define WDOG_CTL 0xFFC00200
50 #define WDOG_CNT 0xFFC00204
51 #define WDOG_STAT 0xFFC00208
55 #define RTC_STAT 0xFFC00300
56 #define RTC_ICTL 0xFFC00304
57 #define RTC_ISTAT 0xFFC00308
58 #define RTC_SWCNT 0xFFC0030C
59 #define RTC_ALARM 0xFFC00310
60 #define RTC_FAST 0xFFC00314
61 #define RTC_PREN 0xFFC00314
65 #define UART0_THR 0xFFC00400
66 #define UART0_RBR 0xFFC00400
67 #define UART0_DLL 0xFFC00400
68 #define UART0_IER 0xFFC00404
69 #define UART0_DLH 0xFFC00404
70 #define UART0_IIR 0xFFC00408
71 #define UART0_LCR 0xFFC0040C
72 #define UART0_MCR 0xFFC00410
73 #define UART0_LSR 0xFFC00414
74 #define UART0_MSR 0xFFC00418
75 #define UART0_SCR 0xFFC0041C
76 #define UART0_GCTL 0xFFC00424
80 #define SPI0_REGBASE 0xFFC00500
81 #define SPI_CTL 0xFFC00500
82 #define SPI_FLG 0xFFC00504
83 #define SPI_STAT 0xFFC00508
84 #define SPI_TDBR 0xFFC0050C
85 #define SPI_RDBR 0xFFC00510
86 #define SPI_BAUD 0xFFC00514
87 #define SPI_SHADOW 0xFFC00518
91 #define TIMER0_CONFIG 0xFFC00600
92 #define TIMER0_COUNTER 0xFFC00604
93 #define TIMER0_PERIOD 0xFFC00608
94 #define TIMER0_WIDTH 0xFFC0060C
96 #define TIMER1_CONFIG 0xFFC00610
97 #define TIMER1_COUNTER 0xFFC00614
98 #define TIMER1_PERIOD 0xFFC00618
99 #define TIMER1_WIDTH 0xFFC0061C
101 #define TIMER2_CONFIG 0xFFC00620
102 #define TIMER2_COUNTER 0xFFC00624
103 #define TIMER2_PERIOD 0xFFC00628
104 #define TIMER2_WIDTH 0xFFC0062C
106 #define TIMER3_CONFIG 0xFFC00630
107 #define TIMER3_COUNTER 0xFFC00634
108 #define TIMER3_PERIOD 0xFFC00638
109 #define TIMER3_WIDTH 0xFFC0063C
111 #define TIMER4_CONFIG 0xFFC00640
112 #define TIMER4_COUNTER 0xFFC00644
113 #define TIMER4_PERIOD 0xFFC00648
114 #define TIMER4_WIDTH 0xFFC0064C
116 #define TIMER5_CONFIG 0xFFC00650
117 #define TIMER5_COUNTER 0xFFC00654
118 #define TIMER5_PERIOD 0xFFC00658
119 #define TIMER5_WIDTH 0xFFC0065C
121 #define TIMER6_CONFIG 0xFFC00660
122 #define TIMER6_COUNTER 0xFFC00664
123 #define TIMER6_PERIOD 0xFFC00668
124 #define TIMER6_WIDTH 0xFFC0066C
126 #define TIMER7_CONFIG 0xFFC00670
127 #define TIMER7_COUNTER 0xFFC00674
128 #define TIMER7_PERIOD 0xFFC00678
129 #define TIMER7_WIDTH 0xFFC0067C
131 #define TIMER_ENABLE 0xFFC00680
132 #define TIMER_DISABLE 0xFFC00684
133 #define TIMER_STATUS 0xFFC00688
137 #define PORTFIO 0xFFC00700
138 #define PORTFIO_CLEAR 0xFFC00704
139 #define PORTFIO_SET 0xFFC00708
140 #define PORTFIO_TOGGLE 0xFFC0070C
141 #define PORTFIO_MASKA 0xFFC00710
142 #define PORTFIO_MASKA_CLEAR 0xFFC00714
143 #define PORTFIO_MASKA_SET 0xFFC00718
144 #define PORTFIO_MASKA_TOGGLE 0xFFC0071C
145 #define PORTFIO_MASKB 0xFFC00720
146 #define PORTFIO_MASKB_CLEAR 0xFFC00724
147 #define PORTFIO_MASKB_SET 0xFFC00728
148 #define PORTFIO_MASKB_TOGGLE 0xFFC0072C
149 #define PORTFIO_DIR 0xFFC00730
150 #define PORTFIO_POLAR 0xFFC00734
151 #define PORTFIO_EDGE 0xFFC00738
152 #define PORTFIO_BOTH 0xFFC0073C
153 #define PORTFIO_INEN 0xFFC00740
157 #define SPORT0_TCR1 0xFFC00800
158 #define SPORT0_TCR2 0xFFC00804
159 #define SPORT0_TCLKDIV 0xFFC00808
160 #define SPORT0_TFSDIV 0xFFC0080C
161 #define SPORT0_TX 0xFFC00810
162 #define SPORT0_RX 0xFFC00818
163 #define SPORT0_RCR1 0xFFC00820
164 #define SPORT0_RCR2 0xFFC00824
165 #define SPORT0_RCLKDIV 0xFFC00828
166 #define SPORT0_RFSDIV 0xFFC0082C
167 #define SPORT0_STAT 0xFFC00830
168 #define SPORT0_CHNL 0xFFC00834
169 #define SPORT0_MCMC1 0xFFC00838
170 #define SPORT0_MCMC2 0xFFC0083C
171 #define SPORT0_MTCS0 0xFFC00840
172 #define SPORT0_MTCS1 0xFFC00844
173 #define SPORT0_MTCS2 0xFFC00848
174 #define SPORT0_MTCS3 0xFFC0084C
175 #define SPORT0_MRCS0 0xFFC00850
176 #define SPORT0_MRCS1 0xFFC00854
177 #define SPORT0_MRCS2 0xFFC00858
178 #define SPORT0_MRCS3 0xFFC0085C
182 #define SPORT1_TCR1 0xFFC00900
183 #define SPORT1_TCR2 0xFFC00904
184 #define SPORT1_TCLKDIV 0xFFC00908
185 #define SPORT1_TFSDIV 0xFFC0090C
186 #define SPORT1_TX 0xFFC00910
187 #define SPORT1_RX 0xFFC00918
188 #define SPORT1_RCR1 0xFFC00920
189 #define SPORT1_RCR2 0xFFC00924
190 #define SPORT1_RCLKDIV 0xFFC00928
191 #define SPORT1_RFSDIV 0xFFC0092C
192 #define SPORT1_STAT 0xFFC00930
193 #define SPORT1_CHNL 0xFFC00934
194 #define SPORT1_MCMC1 0xFFC00938
195 #define SPORT1_MCMC2 0xFFC0093C
196 #define SPORT1_MTCS0 0xFFC00940
197 #define SPORT1_MTCS1 0xFFC00944
198 #define SPORT1_MTCS2 0xFFC00948
199 #define SPORT1_MTCS3 0xFFC0094C
200 #define SPORT1_MRCS0 0xFFC00950
201 #define SPORT1_MRCS1 0xFFC00954
202 #define SPORT1_MRCS2 0xFFC00958
203 #define SPORT1_MRCS3 0xFFC0095C
207 #define EBIU_AMGCTL 0xFFC00A00
208 #define EBIU_AMBCTL0 0xFFC00A04
209 #define EBIU_AMBCTL1 0xFFC00A08
210 #define EBIU_SDGCTL 0xFFC00A10
211 #define EBIU_SDBCTL 0xFFC00A14
212 #define EBIU_SDRRC 0xFFC00A18
213 #define EBIU_SDSTAT 0xFFC00A1C
217 #define DMAC_TC_PER 0xFFC00B0C
218 #define DMAC_TC_CNT 0xFFC00B10
221 #define DMA0_NEXT_DESC_PTR 0xFFC00C00
222 #define DMA0_START_ADDR 0xFFC00C04
223 #define DMA0_CONFIG 0xFFC00C08
224 #define DMA0_X_COUNT 0xFFC00C10
225 #define DMA0_X_MODIFY 0xFFC00C14
226 #define DMA0_Y_COUNT 0xFFC00C18
227 #define DMA0_Y_MODIFY 0xFFC00C1C
228 #define DMA0_CURR_DESC_PTR 0xFFC00C20
229 #define DMA0_CURR_ADDR 0xFFC00C24
230 #define DMA0_IRQ_STATUS 0xFFC00C28
231 #define DMA0_PERIPHERAL_MAP 0xFFC00C2C
232 #define DMA0_CURR_X_COUNT 0xFFC00C30
233 #define DMA0_CURR_Y_COUNT 0xFFC00C38
235 #define DMA1_NEXT_DESC_PTR 0xFFC00C40
236 #define DMA1_START_ADDR 0xFFC00C44
237 #define DMA1_CONFIG 0xFFC00C48
238 #define DMA1_X_COUNT 0xFFC00C50
239 #define DMA1_X_MODIFY 0xFFC00C54
240 #define DMA1_Y_COUNT 0xFFC00C58
241 #define DMA1_Y_MODIFY 0xFFC00C5C
242 #define DMA1_CURR_DESC_PTR 0xFFC00C60
243 #define DMA1_CURR_ADDR 0xFFC00C64
244 #define DMA1_IRQ_STATUS 0xFFC00C68
245 #define DMA1_PERIPHERAL_MAP 0xFFC00C6C
246 #define DMA1_CURR_X_COUNT 0xFFC00C70
247 #define DMA1_CURR_Y_COUNT 0xFFC00C78
249 #define DMA2_NEXT_DESC_PTR 0xFFC00C80
250 #define DMA2_START_ADDR 0xFFC00C84
251 #define DMA2_CONFIG 0xFFC00C88
252 #define DMA2_X_COUNT 0xFFC00C90
253 #define DMA2_X_MODIFY 0xFFC00C94
254 #define DMA2_Y_COUNT 0xFFC00C98
255 #define DMA2_Y_MODIFY 0xFFC00C9C
256 #define DMA2_CURR_DESC_PTR 0xFFC00CA0
257 #define DMA2_CURR_ADDR 0xFFC00CA4
258 #define DMA2_IRQ_STATUS 0xFFC00CA8
259 #define DMA2_PERIPHERAL_MAP 0xFFC00CAC
260 #define DMA2_CURR_X_COUNT 0xFFC00CB0
261 #define DMA2_CURR_Y_COUNT 0xFFC00CB8
263 #define DMA3_NEXT_DESC_PTR 0xFFC00CC0
264 #define DMA3_START_ADDR 0xFFC00CC4
265 #define DMA3_CONFIG 0xFFC00CC8
266 #define DMA3_X_COUNT 0xFFC00CD0
267 #define DMA3_X_MODIFY 0xFFC00CD4
268 #define DMA3_Y_COUNT 0xFFC00CD8
269 #define DMA3_Y_MODIFY 0xFFC00CDC
270 #define DMA3_CURR_DESC_PTR 0xFFC00CE0
271 #define DMA3_CURR_ADDR 0xFFC00CE4
272 #define DMA3_IRQ_STATUS 0xFFC00CE8
273 #define DMA3_PERIPHERAL_MAP 0xFFC00CEC
274 #define DMA3_CURR_X_COUNT 0xFFC00CF0
275 #define DMA3_CURR_Y_COUNT 0xFFC00CF8
277 #define DMA4_NEXT_DESC_PTR 0xFFC00D00
278 #define DMA4_START_ADDR 0xFFC00D04
279 #define DMA4_CONFIG 0xFFC00D08
280 #define DMA4_X_COUNT 0xFFC00D10
281 #define DMA4_X_MODIFY 0xFFC00D14
282 #define DMA4_Y_COUNT 0xFFC00D18
283 #define DMA4_Y_MODIFY 0xFFC00D1C
284 #define DMA4_CURR_DESC_PTR 0xFFC00D20
285 #define DMA4_CURR_ADDR 0xFFC00D24
286 #define DMA4_IRQ_STATUS 0xFFC00D28
287 #define DMA4_PERIPHERAL_MAP 0xFFC00D2C
288 #define DMA4_CURR_X_COUNT 0xFFC00D30
289 #define DMA4_CURR_Y_COUNT 0xFFC00D38
291 #define DMA5_NEXT_DESC_PTR 0xFFC00D40
292 #define DMA5_START_ADDR 0xFFC00D44
293 #define DMA5_CONFIG 0xFFC00D48
294 #define DMA5_X_COUNT 0xFFC00D50
295 #define DMA5_X_MODIFY 0xFFC00D54
296 #define DMA5_Y_COUNT 0xFFC00D58
297 #define DMA5_Y_MODIFY 0xFFC00D5C
298 #define DMA5_CURR_DESC_PTR 0xFFC00D60
299 #define DMA5_CURR_ADDR 0xFFC00D64
300 #define DMA5_IRQ_STATUS 0xFFC00D68
301 #define DMA5_PERIPHERAL_MAP 0xFFC00D6C
302 #define DMA5_CURR_X_COUNT 0xFFC00D70
303 #define DMA5_CURR_Y_COUNT 0xFFC00D78
305 #define DMA6_NEXT_DESC_PTR 0xFFC00D80
306 #define DMA6_START_ADDR 0xFFC00D84
307 #define DMA6_CONFIG 0xFFC00D88
308 #define DMA6_X_COUNT 0xFFC00D90
309 #define DMA6_X_MODIFY 0xFFC00D94
310 #define DMA6_Y_COUNT 0xFFC00D98
311 #define DMA6_Y_MODIFY 0xFFC00D9C
312 #define DMA6_CURR_DESC_PTR 0xFFC00DA0
313 #define DMA6_CURR_ADDR 0xFFC00DA4
314 #define DMA6_IRQ_STATUS 0xFFC00DA8
315 #define DMA6_PERIPHERAL_MAP 0xFFC00DAC
316 #define DMA6_CURR_X_COUNT 0xFFC00DB0
317 #define DMA6_CURR_Y_COUNT 0xFFC00DB8
319 #define DMA7_NEXT_DESC_PTR 0xFFC00DC0
320 #define DMA7_START_ADDR 0xFFC00DC4
321 #define DMA7_CONFIG 0xFFC00DC8
322 #define DMA7_X_COUNT 0xFFC00DD0
323 #define DMA7_X_MODIFY 0xFFC00DD4
324 #define DMA7_Y_COUNT 0xFFC00DD8
325 #define DMA7_Y_MODIFY 0xFFC00DDC
326 #define DMA7_CURR_DESC_PTR 0xFFC00DE0
327 #define DMA7_CURR_ADDR 0xFFC00DE4
328 #define DMA7_IRQ_STATUS 0xFFC00DE8
329 #define DMA7_PERIPHERAL_MAP 0xFFC00DEC
330 #define DMA7_CURR_X_COUNT 0xFFC00DF0
331 #define DMA7_CURR_Y_COUNT 0xFFC00DF8
333 #define DMA8_NEXT_DESC_PTR 0xFFC00E00
334 #define DMA8_START_ADDR 0xFFC00E04
335 #define DMA8_CONFIG 0xFFC00E08
336 #define DMA8_X_COUNT 0xFFC00E10
337 #define DMA8_X_MODIFY 0xFFC00E14
338 #define DMA8_Y_COUNT 0xFFC00E18
339 #define DMA8_Y_MODIFY 0xFFC00E1C
340 #define DMA8_CURR_DESC_PTR 0xFFC00E20
341 #define DMA8_CURR_ADDR 0xFFC00E24
342 #define DMA8_IRQ_STATUS 0xFFC00E28
343 #define DMA8_PERIPHERAL_MAP 0xFFC00E2C
344 #define DMA8_CURR_X_COUNT 0xFFC00E30
345 #define DMA8_CURR_Y_COUNT 0xFFC00E38
347 #define DMA9_NEXT_DESC_PTR 0xFFC00E40
348 #define DMA9_START_ADDR 0xFFC00E44
349 #define DMA9_CONFIG 0xFFC00E48
350 #define DMA9_X_COUNT 0xFFC00E50
351 #define DMA9_X_MODIFY 0xFFC00E54
352 #define DMA9_Y_COUNT 0xFFC00E58
353 #define DMA9_Y_MODIFY 0xFFC00E5C
354 #define DMA9_CURR_DESC_PTR 0xFFC00E60
355 #define DMA9_CURR_ADDR 0xFFC00E64
356 #define DMA9_IRQ_STATUS 0xFFC00E68
357 #define DMA9_PERIPHERAL_MAP 0xFFC00E6C
358 #define DMA9_CURR_X_COUNT 0xFFC00E70
359 #define DMA9_CURR_Y_COUNT 0xFFC00E78
361 #define DMA10_NEXT_DESC_PTR 0xFFC00E80
362 #define DMA10_START_ADDR 0xFFC00E84
363 #define DMA10_CONFIG 0xFFC00E88
364 #define DMA10_X_COUNT 0xFFC00E90
365 #define DMA10_X_MODIFY 0xFFC00E94
366 #define DMA10_Y_COUNT 0xFFC00E98
367 #define DMA10_Y_MODIFY 0xFFC00E9C
368 #define DMA10_CURR_DESC_PTR 0xFFC00EA0
369 #define DMA10_CURR_ADDR 0xFFC00EA4
370 #define DMA10_IRQ_STATUS 0xFFC00EA8
371 #define DMA10_PERIPHERAL_MAP 0xFFC00EAC
372 #define DMA10_CURR_X_COUNT 0xFFC00EB0
373 #define DMA10_CURR_Y_COUNT 0xFFC00EB8
375 #define DMA11_NEXT_DESC_PTR 0xFFC00EC0
376 #define DMA11_START_ADDR 0xFFC00EC4
377 #define DMA11_CONFIG 0xFFC00EC8
378 #define DMA11_X_COUNT 0xFFC00ED0
379 #define DMA11_X_MODIFY 0xFFC00ED4
380 #define DMA11_Y_COUNT 0xFFC00ED8
381 #define DMA11_Y_MODIFY 0xFFC00EDC
382 #define DMA11_CURR_DESC_PTR 0xFFC00EE0
383 #define DMA11_CURR_ADDR 0xFFC00EE4
384 #define DMA11_IRQ_STATUS 0xFFC00EE8
385 #define DMA11_PERIPHERAL_MAP 0xFFC00EEC
386 #define DMA11_CURR_X_COUNT 0xFFC00EF0
387 #define DMA11_CURR_Y_COUNT 0xFFC00EF8
389 #define MDMA_D0_NEXT_DESC_PTR 0xFFC00F00
390 #define MDMA_D0_START_ADDR 0xFFC00F04
391 #define MDMA_D0_CONFIG 0xFFC00F08
392 #define MDMA_D0_X_COUNT 0xFFC00F10
393 #define MDMA_D0_X_MODIFY 0xFFC00F14
394 #define MDMA_D0_Y_COUNT 0xFFC00F18
395 #define MDMA_D0_Y_MODIFY 0xFFC00F1C
396 #define MDMA_D0_CURR_DESC_PTR 0xFFC00F20
397 #define MDMA_D0_CURR_ADDR 0xFFC00F24
398 #define MDMA_D0_IRQ_STATUS 0xFFC00F28
399 #define MDMA_D0_PERIPHERAL_MAP 0xFFC00F2C
400 #define MDMA_D0_CURR_X_COUNT 0xFFC00F30
401 #define MDMA_D0_CURR_Y_COUNT 0xFFC00F38
403 #define MDMA_S0_NEXT_DESC_PTR 0xFFC00F40
404 #define MDMA_S0_START_ADDR 0xFFC00F44
405 #define MDMA_S0_CONFIG 0xFFC00F48
406 #define MDMA_S0_X_COUNT 0xFFC00F50
407 #define MDMA_S0_X_MODIFY 0xFFC00F54
408 #define MDMA_S0_Y_COUNT 0xFFC00F58
409 #define MDMA_S0_Y_MODIFY 0xFFC00F5C
410 #define MDMA_S0_CURR_DESC_PTR 0xFFC00F60
411 #define MDMA_S0_CURR_ADDR 0xFFC00F64
412 #define MDMA_S0_IRQ_STATUS 0xFFC00F68
413 #define MDMA_S0_PERIPHERAL_MAP 0xFFC00F6C
414 #define MDMA_S0_CURR_X_COUNT 0xFFC00F70
415 #define MDMA_S0_CURR_Y_COUNT 0xFFC00F78
417 #define MDMA_D1_NEXT_DESC_PTR 0xFFC00F80
418 #define MDMA_D1_START_ADDR 0xFFC00F84
419 #define MDMA_D1_CONFIG 0xFFC00F88
420 #define MDMA_D1_X_COUNT 0xFFC00F90
421 #define MDMA_D1_X_MODIFY 0xFFC00F94
422 #define MDMA_D1_Y_COUNT 0xFFC00F98
423 #define MDMA_D1_Y_MODIFY 0xFFC00F9C
424 #define MDMA_D1_CURR_DESC_PTR 0xFFC00FA0
425 #define MDMA_D1_CURR_ADDR 0xFFC00FA4
426 #define MDMA_D1_IRQ_STATUS 0xFFC00FA8
427 #define MDMA_D1_PERIPHERAL_MAP 0xFFC00FAC
428 #define MDMA_D1_CURR_X_COUNT 0xFFC00FB0
429 #define MDMA_D1_CURR_Y_COUNT 0xFFC00FB8
431 #define MDMA_S1_NEXT_DESC_PTR 0xFFC00FC0
432 #define MDMA_S1_START_ADDR 0xFFC00FC4
433 #define MDMA_S1_CONFIG 0xFFC00FC8
434 #define MDMA_S1_X_COUNT 0xFFC00FD0
435 #define MDMA_S1_X_MODIFY 0xFFC00FD4
436 #define MDMA_S1_Y_COUNT 0xFFC00FD8
437 #define MDMA_S1_Y_MODIFY 0xFFC00FDC
438 #define MDMA_S1_CURR_DESC_PTR 0xFFC00FE0
439 #define MDMA_S1_CURR_ADDR 0xFFC00FE4
440 #define MDMA_S1_IRQ_STATUS 0xFFC00FE8
441 #define MDMA_S1_PERIPHERAL_MAP 0xFFC00FEC
442 #define MDMA_S1_CURR_X_COUNT 0xFFC00FF0
443 #define MDMA_S1_CURR_Y_COUNT 0xFFC00FF8
447 #define PPI_CONTROL 0xFFC01000
448 #define PPI_STATUS 0xFFC01004
449 #define PPI_COUNT 0xFFC01008
450 #define PPI_DELAY 0xFFC0100C
451 #define PPI_FRAME 0xFFC01010
455 #define TWI0_REGBASE 0xFFC01400
456 #define TWI0_CLKDIV 0xFFC01400
457 #define TWI0_CONTROL 0xFFC01404
458 #define TWI0_SLAVE_CTL 0xFFC01408
459 #define TWI0_SLAVE_STAT 0xFFC0140C
460 #define TWI0_SLAVE_ADDR 0xFFC01410
461 #define TWI0_MASTER_CTL 0xFFC01414
462 #define TWI0_MASTER_STAT 0xFFC01418
463 #define TWI0_MASTER_ADDR 0xFFC0141C
464 #define TWI0_INT_STAT 0xFFC01420
465 #define TWI0_INT_MASK 0xFFC01424
466 #define TWI0_FIFO_CTL 0xFFC01428
467 #define TWI0_FIFO_STAT 0xFFC0142C
468 #define TWI0_XMT_DATA8 0xFFC01480
469 #define TWI0_XMT_DATA16 0xFFC01484
470 #define TWI0_RCV_DATA8 0xFFC01488
471 #define TWI0_RCV_DATA16 0xFFC0148C
475 #define PORTGIO 0xFFC01500
476 #define PORTGIO_CLEAR 0xFFC01504
477 #define PORTGIO_SET 0xFFC01508
478 #define PORTGIO_TOGGLE 0xFFC0150C
479 #define PORTGIO_MASKA 0xFFC01510
480 #define PORTGIO_MASKA_CLEAR 0xFFC01514
481 #define PORTGIO_MASKA_SET 0xFFC01518
482 #define PORTGIO_MASKA_TOGGLE 0xFFC0151C
483 #define PORTGIO_MASKB 0xFFC01520
484 #define PORTGIO_MASKB_CLEAR 0xFFC01524
485 #define PORTGIO_MASKB_SET 0xFFC01528
486 #define PORTGIO_MASKB_TOGGLE 0xFFC0152C
487 #define PORTGIO_DIR 0xFFC01530
488 #define PORTGIO_POLAR 0xFFC01534
489 #define PORTGIO_EDGE 0xFFC01538
490 #define PORTGIO_BOTH 0xFFC0153C
491 #define PORTGIO_INEN 0xFFC01540
495 #define PORTHIO 0xFFC01700
496 #define PORTHIO_CLEAR 0xFFC01704
497 #define PORTHIO_SET 0xFFC01708
498 #define PORTHIO_TOGGLE 0xFFC0170C
499 #define PORTHIO_MASKA 0xFFC01710
500 #define PORTHIO_MASKA_CLEAR 0xFFC01714
501 #define PORTHIO_MASKA_SET 0xFFC01718
502 #define PORTHIO_MASKA_TOGGLE 0xFFC0171C
503 #define PORTHIO_MASKB 0xFFC01720
504 #define PORTHIO_MASKB_CLEAR 0xFFC01724
505 #define PORTHIO_MASKB_SET 0xFFC01728
506 #define PORTHIO_MASKB_TOGGLE 0xFFC0172C
507 #define PORTHIO_DIR 0xFFC01730
508 #define PORTHIO_POLAR 0xFFC01734
509 #define PORTHIO_EDGE 0xFFC01738
510 #define PORTHIO_BOTH 0xFFC0173C
511 #define PORTHIO_INEN 0xFFC01740
515 #define UART1_THR 0xFFC02000
516 #define UART1_RBR 0xFFC02000
517 #define UART1_DLL 0xFFC02000
518 #define UART1_IER 0xFFC02004
519 #define UART1_DLH 0xFFC02004
520 #define UART1_IIR 0xFFC02008
521 #define UART1_LCR 0xFFC0200C
522 #define UART1_MCR 0xFFC02010
523 #define UART1_LSR 0xFFC02014
524 #define UART1_MSR 0xFFC02018
525 #define UART1_SCR 0xFFC0201C
526 #define UART1_GCTL 0xFFC02024
532 #define PORTF_FER 0xFFC03200
533 #define PORTG_FER 0xFFC03204
534 #define PORTH_FER 0xFFC03208
535 #define BFIN_PORT_MUX 0xFFC0320C
539 #define HMDMA0_CONTROL 0xFFC03300
540 #define HMDMA0_ECINIT 0xFFC03304
541 #define HMDMA0_BCINIT 0xFFC03308
542 #define HMDMA0_ECURGENT 0xFFC0330C
543 #define HMDMA0_ECOVERFLOW 0xFFC03310
544 #define HMDMA0_ECOUNT 0xFFC03314
545 #define HMDMA0_BCOUNT 0xFFC03318
547 #define HMDMA1_CONTROL 0xFFC03340
548 #define HMDMA1_ECINIT 0xFFC03344
549 #define HMDMA1_BCINIT 0xFFC03348
550 #define HMDMA1_ECURGENT 0xFFC0334C
551 #define HMDMA1_ECOVERFLOW 0xFFC03350
552 #define HMDMA1_ECOUNT 0xFFC03354
553 #define HMDMA1_BCOUNT 0xFFC03358
556 #define PORTF_MUX 0xFFC03210
557 #define PORTG_MUX 0xFFC03214
558 #define PORTH_MUX 0xFFC03218
559 #define PORTF_DRIVE 0xFFC03220
560 #define PORTG_DRIVE 0xFFC03224
561 #define PORTH_DRIVE 0xFFC03228
562 #define PORTF_SLEW 0xFFC03230
563 #define PORTG_SLEW 0xFFC03234
564 #define PORTH_SLEW 0xFFC03238
565 #define PORTF_HYSTERESIS 0xFFC03240
566 #define PORTG_HYSTERESIS 0xFFC03244
567 #define PORTH_HYSTERESIS 0xFFC03248
568 #define MISCPORT_DRIVE 0xFFC03280
569 #define MISCPORT_SLEW 0xFFC03284
570 #define MISCPORT_HYSTERESIS 0xFFC03288
586 #define CHIPID_VERSION 0xF0000000
587 #define CHIPID_FAMILY 0x0FFFF000
588 #define CHIPID_MANUFACTURE 0x00000FFE
591 #define SYSTEM_RESET 0x0007
592 #define DOUBLE_FAULT 0x0008
593 #define RESET_DOUBLE 0x2000
594 #define RESET_WDOG 0x4000
595 #define RESET_SOFTWARE 0x8000
599 #define NOBOOT 0x0010
606 #define IRQ_PLL_WAKEUP 0x00000001
608 #define IRQ_ERROR1 0x00000002
609 #define IRQ_ERROR2 0x00000004
610 #define IRQ_RTC 0x00000008
611 #define IRQ_DMA0 0x00000010
612 #define IRQ_DMA3 0x00000020
613 #define IRQ_DMA4 0x00000040
614 #define IRQ_DMA5 0x00000080
616 #define IRQ_DMA6 0x00000100
617 #define IRQ_TWI 0x00000200
618 #define IRQ_DMA7 0x00000400
619 #define IRQ_DMA8 0x00000800
620 #define IRQ_DMA9 0x00001000
621 #define IRQ_DMA10 0x00002000
622 #define IRQ_DMA11 0x00004000
623 #define IRQ_CAN_RX 0x00008000
625 #define IRQ_CAN_TX 0x00010000
626 #define IRQ_DMA1 0x00020000
627 #define IRQ_PFA_PORTH 0x00020000
628 #define IRQ_DMA2 0x00040000
629 #define IRQ_PFB_PORTH 0x00040000
630 #define IRQ_TIMER0 0x00080000
631 #define IRQ_TIMER1 0x00100000
632 #define IRQ_TIMER2 0x00200000
633 #define IRQ_TIMER3 0x00400000
634 #define IRQ_TIMER4 0x00800000
636 #define IRQ_TIMER5 0x01000000
637 #define IRQ_TIMER6 0x02000000
638 #define IRQ_TIMER7 0x04000000
639 #define IRQ_PFA_PORTFG 0x08000000
640 #define IRQ_PFB_PORTF 0x80000000
641 #define IRQ_DMA12 0x20000000
642 #define IRQ_DMA13 0x20000000
643 #define IRQ_DMA14 0x40000000
644 #define IRQ_DMA15 0x40000000
645 #define IRQ_WDOG 0x80000000
646 #define IRQ_PFB_PORTG 0x10000000
650 #define P0_IVG(x) (((x)&0xF)-7)
651 #define P1_IVG(x) (((x)&0xF)-7) << 0x4
652 #define P2_IVG(x) (((x)&0xF)-7) << 0x8
653 #define P3_IVG(x) (((x)&0xF)-7) << 0xC
654 #define P4_IVG(x) (((x)&0xF)-7) << 0x10
655 #define P5_IVG(x) (((x)&0xF)-7) << 0x14
656 #define P6_IVG(x) (((x)&0xF)-7) << 0x18
657 #define P7_IVG(x) (((x)&0xF)-7) << 0x1C
660 #define P8_IVG(x) (((x)&0xF)-7)
661 #define P9_IVG(x) (((x)&0xF)-7) << 0x4
662 #define P10_IVG(x) (((x)&0xF)-7) << 0x8
663 #define P11_IVG(x) (((x)&0xF)-7) << 0xC
664 #define P12_IVG(x) (((x)&0xF)-7) << 0x10
665 #define P13_IVG(x) (((x)&0xF)-7) << 0x14
666 #define P14_IVG(x) (((x)&0xF)-7) << 0x18
667 #define P15_IVG(x) (((x)&0xF)-7) << 0x1C
670 #define P16_IVG(x) (((x)&0xF)-7)
671 #define P17_IVG(x) (((x)&0xF)-7) << 0x4
672 #define P18_IVG(x) (((x)&0xF)-7) << 0x8
673 #define P19_IVG(x) (((x)&0xF)-7) << 0xC
674 #define P20_IVG(x) (((x)&0xF)-7) << 0x10
675 #define P21_IVG(x) (((x)&0xF)-7) << 0x14
676 #define P22_IVG(x) (((x)&0xF)-7) << 0x18
677 #define P23_IVG(x) (((x)&0xF)-7) << 0x1C
680 #define P24_IVG(x) (((x)&0xF)-7)
681 #define P25_IVG(x) (((x)&0xF)-7) << 0x4
682 #define P26_IVG(x) (((x)&0xF)-7) << 0x8
683 #define P27_IVG(x) (((x)&0xF)-7) << 0xC
684 #define P28_IVG(x) (((x)&0xF)-7) << 0x10
685 #define P29_IVG(x) (((x)&0xF)-7) << 0x14
686 #define P30_IVG(x) (((x)&0xF)-7) << 0x18
687 #define P31_IVG(x) (((x)&0xF)-7) << 0x1C
691 #define SIC_UNMASK_ALL 0x00000000
692 #define SIC_MASK_ALL 0xFFFFFFFF
693 #define SIC_MASK(x) (1 << ((x)&0x1F))
694 #define SIC_UNMASK(x) (0xFFFFFFFF ^ (1 << ((x)&0x1F)))
697 #define IWR_DISABLE_ALL 0x00000000
698 #define IWR_ENABLE_ALL 0xFFFFFFFF
699 #define IWR_ENABLE(x) (1 << ((x)&0x1F))
700 #define IWR_DISABLE(x) (0xFFFFFFFF ^ (1 << ((x)&0x1F)))
704 #define TIMEN0 0x0001
705 #define TIMEN1 0x0002
706 #define TIMEN2 0x0004
707 #define TIMEN3 0x0008
708 #define TIMEN4 0x0010
709 #define TIMEN5 0x0020
710 #define TIMEN6 0x0040
711 #define TIMEN7 0x0080
714 #define TIMDIS0 TIMEN0
715 #define TIMDIS1 TIMEN1
716 #define TIMDIS2 TIMEN2
717 #define TIMDIS3 TIMEN3
718 #define TIMDIS4 TIMEN4
719 #define TIMDIS5 TIMEN5
720 #define TIMDIS6 TIMEN6
721 #define TIMDIS7 TIMEN7
724 #define TIMIL0 0x00000001
725 #define TIMIL1 0x00000002
726 #define TIMIL2 0x00000004
727 #define TIMIL3 0x00000008
728 #define TOVF_ERR0 0x00000010
729 #define TOVF_ERR1 0x00000020
730 #define TOVF_ERR2 0x00000040
731 #define TOVF_ERR3 0x00000080
732 #define TRUN0 0x00001000
733 #define TRUN1 0x00002000
734 #define TRUN2 0x00004000
735 #define TRUN3 0x00008000
736 #define TIMIL4 0x00010000
737 #define TIMIL5 0x00020000
738 #define TIMIL6 0x00040000
739 #define TIMIL7 0x00080000
740 #define TOVF_ERR4 0x00100000
741 #define TOVF_ERR5 0x00200000
742 #define TOVF_ERR6 0x00400000
743 #define TOVF_ERR7 0x00800000
744 #define TRUN4 0x10000000
745 #define TRUN5 0x20000000
746 #define TRUN6 0x40000000
747 #define TRUN7 0x80000000
750 #define TOVL_ERR0 TOVF_ERR0
751 #define TOVL_ERR1 TOVF_ERR1
752 #define TOVL_ERR2 TOVF_ERR2
753 #define TOVL_ERR3 TOVF_ERR3
754 #define TOVL_ERR4 TOVF_ERR4
755 #define TOVL_ERR5 TOVF_ERR5
756 #define TOVL_ERR6 TOVF_ERR6
757 #define TOVL_ERR7 TOVF_ERR7
760 #define PWM_OUT 0x0001
761 #define WDTH_CAP 0x0002
762 #define EXT_CLK 0x0003
763 #define PULSE_HI 0x0004
764 #define PERIOD_CNT 0x0008
765 #define IRQ_ENA 0x0010
766 #define TIN_SEL 0x0020
767 #define OUT_DIS 0x0040
768 #define CLK_SEL 0x0080
769 #define TOGGLE_HI 0x0100
770 #define EMU_RUN 0x0200
771 #define ERR_TYP 0xC000
775 #define AMCKEN 0x0001
776 #define AMBEN_NONE 0x0000
777 #define AMBEN_B0 0x0002
778 #define AMBEN_B0_B1 0x0004
779 #define AMBEN_B0_B1_B2 0x0006
780 #define AMBEN_ALL 0x0008
783 #define B0RDYEN 0x00000001
784 #define B0RDYPOL 0x00000002
785 #define B0TT_1 0x00000004
786 #define B0TT_2 0x00000008
787 #define B0TT_3 0x0000000C
788 #define B0TT_4 0x00000000
789 #define B0ST_1 0x00000010
790 #define B0ST_2 0x00000020
791 #define B0ST_3 0x00000030
792 #define B0ST_4 0x00000000
793 #define B0HT_1 0x00000040
794 #define B0HT_2 0x00000080
795 #define B0HT_3 0x000000C0
796 #define B0HT_0 0x00000000
797 #define B0RAT_1 0x00000100
798 #define B0RAT_2 0x00000200
799 #define B0RAT_3 0x00000300
800 #define B0RAT_4 0x00000400
801 #define B0RAT_5 0x00000500
802 #define B0RAT_6 0x00000600
803 #define B0RAT_7 0x00000700
804 #define B0RAT_8 0x00000800
805 #define B0RAT_9 0x00000900
806 #define B0RAT_10 0x00000A00
807 #define B0RAT_11 0x00000B00
808 #define B0RAT_12 0x00000C00
809 #define B0RAT_13 0x00000D00
810 #define B0RAT_14 0x00000E00
811 #define B0RAT_15 0x00000F00
812 #define B0WAT_1 0x00001000
813 #define B0WAT_2 0x00002000
814 #define B0WAT_3 0x00003000
815 #define B0WAT_4 0x00004000
816 #define B0WAT_5 0x00005000
817 #define B0WAT_6 0x00006000
818 #define B0WAT_7 0x00007000
819 #define B0WAT_8 0x00008000
820 #define B0WAT_9 0x00009000
821 #define B0WAT_10 0x0000A000
822 #define B0WAT_11 0x0000B000
823 #define B0WAT_12 0x0000C000
824 #define B0WAT_13 0x0000D000
825 #define B0WAT_14 0x0000E000
826 #define B0WAT_15 0x0000F000
828 #define B1RDYEN 0x00010000
829 #define B1RDYPOL 0x00020000
830 #define B1TT_1 0x00040000
831 #define B1TT_2 0x00080000
832 #define B1TT_3 0x000C0000
833 #define B1TT_4 0x00000000
834 #define B1ST_1 0x00100000
835 #define B1ST_2 0x00200000
836 #define B1ST_3 0x00300000
837 #define B1ST_4 0x00000000
838 #define B1HT_1 0x00400000
839 #define B1HT_2 0x00800000
840 #define B1HT_3 0x00C00000
841 #define B1HT_0 0x00000000
842 #define B1RAT_1 0x01000000
843 #define B1RAT_2 0x02000000
844 #define B1RAT_3 0x03000000
845 #define B1RAT_4 0x04000000
846 #define B1RAT_5 0x05000000
847 #define B1RAT_6 0x06000000
848 #define B1RAT_7 0x07000000
849 #define B1RAT_8 0x08000000
850 #define B1RAT_9 0x09000000
851 #define B1RAT_10 0x0A000000
852 #define B1RAT_11 0x0B000000
853 #define B1RAT_12 0x0C000000
854 #define B1RAT_13 0x0D000000
855 #define B1RAT_14 0x0E000000
856 #define B1RAT_15 0x0F000000
857 #define B1WAT_1 0x10000000
858 #define B1WAT_2 0x20000000
859 #define B1WAT_3 0x30000000
860 #define B1WAT_4 0x40000000
861 #define B1WAT_5 0x50000000
862 #define B1WAT_6 0x60000000
863 #define B1WAT_7 0x70000000
864 #define B1WAT_8 0x80000000
865 #define B1WAT_9 0x90000000
866 #define B1WAT_10 0xA0000000
867 #define B1WAT_11 0xB0000000
868 #define B1WAT_12 0xC0000000
869 #define B1WAT_13 0xD0000000
870 #define B1WAT_14 0xE0000000
871 #define B1WAT_15 0xF0000000
874 #define B2RDYEN 0x00000001
875 #define B2RDYPOL 0x00000002
876 #define B2TT_1 0x00000004
877 #define B2TT_2 0x00000008
878 #define B2TT_3 0x0000000C
879 #define B2TT_4 0x00000000
880 #define B2ST_1 0x00000010
881 #define B2ST_2 0x00000020
882 #define B2ST_3 0x00000030
883 #define B2ST_4 0x00000000
884 #define B2HT_1 0x00000040
885 #define B2HT_2 0x00000080
886 #define B2HT_3 0x000000C0
887 #define B2HT_0 0x00000000
888 #define B2RAT_1 0x00000100
889 #define B2RAT_2 0x00000200
890 #define B2RAT_3 0x00000300
891 #define B2RAT_4 0x00000400
892 #define B2RAT_5 0x00000500
893 #define B2RAT_6 0x00000600
894 #define B2RAT_7 0x00000700
895 #define B2RAT_8 0x00000800
896 #define B2RAT_9 0x00000900
897 #define B2RAT_10 0x00000A00
898 #define B2RAT_11 0x00000B00
899 #define B2RAT_12 0x00000C00
900 #define B2RAT_13 0x00000D00
901 #define B2RAT_14 0x00000E00
902 #define B2RAT_15 0x00000F00
903 #define B2WAT_1 0x00001000
904 #define B2WAT_2 0x00002000
905 #define B2WAT_3 0x00003000
906 #define B2WAT_4 0x00004000
907 #define B2WAT_5 0x00005000
908 #define B2WAT_6 0x00006000
909 #define B2WAT_7 0x00007000
910 #define B2WAT_8 0x00008000
911 #define B2WAT_9 0x00009000
912 #define B2WAT_10 0x0000A000
913 #define B2WAT_11 0x0000B000
914 #define B2WAT_12 0x0000C000
915 #define B2WAT_13 0x0000D000
916 #define B2WAT_14 0x0000E000
917 #define B2WAT_15 0x0000F000
919 #define B3RDYEN 0x00010000
920 #define B3RDYPOL 0x00020000
921 #define B3TT_1 0x00040000
922 #define B3TT_2 0x00080000
923 #define B3TT_3 0x000C0000
924 #define B3TT_4 0x00000000
925 #define B3ST_1 0x00100000
926 #define B3ST_2 0x00200000
927 #define B3ST_3 0x00300000
928 #define B3ST_4 0x00000000
929 #define B3HT_1 0x00400000
930 #define B3HT_2 0x00800000
931 #define B3HT_3 0x00C00000
932 #define B3HT_0 0x00000000
933 #define B3RAT_1 0x01000000
934 #define B3RAT_2 0x02000000
935 #define B3RAT_3 0x03000000
936 #define B3RAT_4 0x04000000
937 #define B3RAT_5 0x05000000
938 #define B3RAT_6 0x06000000
939 #define B3RAT_7 0x07000000
940 #define B3RAT_8 0x08000000
941 #define B3RAT_9 0x09000000
942 #define B3RAT_10 0x0A000000
943 #define B3RAT_11 0x0B000000
944 #define B3RAT_12 0x0C000000
945 #define B3RAT_13 0x0D000000
946 #define B3RAT_14 0x0E000000
947 #define B3RAT_15 0x0F000000
948 #define B3WAT_1 0x10000000
949 #define B3WAT_2 0x20000000
950 #define B3WAT_3 0x30000000
951 #define B3WAT_4 0x40000000
952 #define B3WAT_5 0x50000000
953 #define B3WAT_6 0x60000000
954 #define B3WAT_7 0x70000000
955 #define B3WAT_8 0x80000000
956 #define B3WAT_9 0x90000000
957 #define B3WAT_10 0xA0000000
958 #define B3WAT_11 0xB0000000
959 #define B3WAT_12 0xC0000000
960 #define B3WAT_13 0xD0000000
961 #define B3WAT_14 0xE0000000
962 #define B3WAT_15 0xF0000000
967 #define SCTLE 0x00000001
968 #define CL_2 0x00000008
969 #define CL_3 0x0000000C
970 #define PASR_ALL 0x00000000
971 #define PASR_B0_B1 0x00000010
972 #define PASR_B0 0x00000020
973 #define TRAS_1 0x00000040
974 #define TRAS_2 0x00000080
975 #define TRAS_3 0x000000C0
976 #define TRAS_4 0x00000100
977 #define TRAS_5 0x00000140
978 #define TRAS_6 0x00000180
979 #define TRAS_7 0x000001C0
980 #define TRAS_8 0x00000200
981 #define TRAS_9 0x00000240
982 #define TRAS_10 0x00000280
983 #define TRAS_11 0x000002C0
984 #define TRAS_12 0x00000300
985 #define TRAS_13 0x00000340
986 #define TRAS_14 0x00000380
987 #define TRAS_15 0x000003C0
988 #define TRP_1 0x00000800
989 #define TRP_2 0x00001000
990 #define TRP_3 0x00001800
991 #define TRP_4 0x00002000
992 #define TRP_5 0x00002800
993 #define TRP_6 0x00003000
994 #define TRP_7 0x00003800
995 #define TRCD_1 0x00008000
996 #define TRCD_2 0x00010000
997 #define TRCD_3 0x00018000
998 #define TRCD_4 0x00020000
999 #define TRCD_5 0x00028000
1000 #define TRCD_6 0x00030000
1001 #define TRCD_7 0x00038000
1002 #define TWR_1 0x00080000
1003 #define TWR_2 0x00100000
1004 #define TWR_3 0x00180000
1005 #define PUPSD 0x00200000
1006 #define PSM 0x00400000
1007 #define PSS 0x00800000
1008 #define SRFS 0x01000000
1009 #define EBUFE 0x02000000
1010 #define FBBRW 0x04000000
1011 #define EMREN 0x10000000
1012 #define TCSR 0x20000000
1013 #define CDDBG 0x40000000
1017 #define EBSZ_16 0x0000
1018 #define EBSZ_32 0x0002
1019 #define EBSZ_64 0x0004
1020 #define EBSZ_128 0x0006
1021 #define EBSZ_256 0x0008
1022 #define EBSZ_512 0x000A
1023 #define EBCAW_8 0x0000
1024 #define EBCAW_9 0x0010
1025 #define EBCAW_10 0x0020
1026 #define EBCAW_11 0x0030
1030 #define SDSRA 0x0002
1031 #define SDPUA 0x0004
1033 #define SDEASE 0x0010
1034 #define BGSTAT 0x0020
1040 #define CTYPE 0x0040
1042 #define PMAP_PPI 0x0000
1043 #define PMAP_EMACRX 0x1000
1044 #define PMAP_EMACTX 0x2000
1045 #define PMAP_SPORT0RX 0x3000
1046 #define PMAP_SPORT0TX 0x4000
1047 #define PMAP_SPORT1RX 0x5000
1048 #define PMAP_SPORT1TX 0x6000
1049 #define PMAP_SPI 0x7000
1050 #define PMAP_UART0RX 0x8000
1051 #define PMAP_UART0TX 0x9000
1052 #define PMAP_UART1RX 0xA000
1053 #define PMAP_UART1TX 0xB000
1057 #define PORT_EN 0x0001
1058 #define PORT_DIR 0x0002
1059 #define XFR_TYPE 0x000C
1060 #define PORT_CFG 0x0030
1061 #define FLD_SEL 0x0040
1062 #define PACK_EN 0x0080
1063 #define DMA32 0x0100
1064 #define SKIP_EN 0x0200
1065 #define SKIP_EO 0x0400
1066 #define DLEN_8 0x0000
1067 #define DLEN_10 0x0800
1068 #define DLEN_11 0x1000
1069 #define DLEN_12 0x1800
1070 #define DLEN_13 0x2000
1071 #define DLEN_14 0x2800
1072 #define DLEN_15 0x3000
1073 #define DLEN_16 0x3800
1074 #define DLENGTH 0x3800
1080 #define FT_ERR 0x0800
1083 #define ERR_DET 0x4000
1084 #define ERR_NCOR 0x8000
1092 #define PJSE_SPORT 0x0000
1093 #define PJSE_SPI 0x0001
1095 #define PJCE(x) (((x)&0x3)<<1)
1096 #define PJCE_SPORT 0x0000
1097 #define PJCE_CAN 0x0002
1098 #define PJCE_SPI 0x0004
1101 #define PFDE_UART 0x0000
1102 #define PFDE_DMA 0x0008
1105 #define PFTE_UART 0x0000
1106 #define PFTE_TIMER 0x0010
1108 #define PFS6E 0x0020
1109 #define PFS6E_TIMER 0x0000
1110 #define PFS6E_SPI 0x0020
1112 #define PFS5E 0x0040
1113 #define PFS5E_TIMER 0x0000
1114 #define PFS5E_SPI 0x0040
1116 #define PFS4E 0x0080
1117 #define PFS4E_TIMER 0x0000
1118 #define PFS4E_SPI 0x0080
1121 #define PFFE_TIMER 0x0000
1122 #define PFFE_PPI 0x0100
1125 #define PGSE_PPI 0x0000
1126 #define PGSE_SPORT 0x0200
1129 #define PGRE_PPI 0x0000
1130 #define PGRE_SPORT 0x0400
1133 #define PGTE_PPI 0x0000
1134 #define PGTE_SPORT 0x0800
1138 #define _BOOTROM_RESET 0xEF000000
1139 #define _BOOTROM_FINAL_INIT 0xEF000002
1140 #define _BOOTROM_DO_MEMORY_DMA 0xEF000006
1141 #define _BOOTROM_BOOT_DXE_FLASH 0xEF000008
1142 #define _BOOTROM_BOOT_DXE_SPI 0xEF00000A
1143 #define _BOOTROM_BOOT_DXE_TWI 0xEF00000C
1144 #define _BOOTROM_GET_DXE_ADDRESS_FLASH 0xEF000010
1145 #define _BOOTROM_GET_DXE_ADDRESS_SPI 0xEF000012
1146 #define _BOOTROM_GET_DXE_ADDRESS_TWI 0xEF000014
1149 #define PGDE_UART PFDE_UART
1150 #define PGDE_DMA PFDE_DMA
1151 #define CKELOW SCKELOW
1157 #define HOST_CONTROL 0xffc03400
1158 #define HOST_STATUS 0xffc03404
1159 #define HOST_TIMEOUT 0xffc03408
1163 #define CNT_CONFIG 0xffc03500
1164 #define CNT_IMASK 0xffc03504
1165 #define CNT_STATUS 0xffc03508
1166 #define CNT_COMMAND 0xffc0350c
1167 #define CNT_DEBOUNCE 0xffc03510
1168 #define CNT_COUNTER 0xffc03514
1169 #define CNT_MAX 0xffc03518
1170 #define CNT_MIN 0xffc0351c
1174 #define OTP_CONTROL 0xffc03600
1175 #define OTP_BEN 0xffc03604
1176 #define OTP_STATUS 0xffc03608
1177 #define OTP_TIMING 0xffc0360c
1181 #define SECURE_SYSSWT 0xffc03620
1182 #define SECURE_CONTROL 0xffc03624
1183 #define SECURE_STATUS 0xffc03628
1187 #define OTP_DATA0 0xffc03680
1188 #define OTP_DATA1 0xffc03684
1189 #define OTP_DATA2 0xffc03688
1190 #define OTP_DATA3 0xffc0368c
1194 #define NFC_CTL 0xffc03700
1195 #define NFC_STAT 0xffc03704
1196 #define NFC_IRQSTAT 0xffc03708
1197 #define NFC_IRQMASK 0xffc0370c
1198 #define NFC_ECC0 0xffc03710
1199 #define NFC_ECC1 0xffc03714
1200 #define NFC_ECC2 0xffc03718
1201 #define NFC_ECC3 0xffc0371c
1202 #define NFC_COUNT 0xffc03720
1203 #define NFC_RST 0xffc03724
1204 #define NFC_PGCTL 0xffc03728
1205 #define NFC_READ 0xffc0372c
1206 #define NFC_ADDR 0xffc03740
1207 #define NFC_CMD 0xffc03744
1208 #define NFC_DATA_WR 0xffc03748
1209 #define NFC_DATA_RD 0xffc0374c
1218 #define HOST_CNTR_HOST_EN 0x1
1219 #define HOST_CNTR_nHOST_EN 0x0
1220 #define HOST_CNTR_HOST_END 0x2
1221 #define HOST_CNTR_nHOST_END 0x0
1222 #define HOST_CNTR_DATA_SIZE 0x4
1223 #define HOST_CNTR_nDATA_SIZE 0x0
1224 #define HOST_CNTR_HOST_RST 0x8
1225 #define HOST_CNTR_nHOST_RST 0x0
1226 #define HOST_CNTR_HRDY_OVR 0x20
1227 #define HOST_CNTR_nHRDY_OVR 0x0
1228 #define HOST_CNTR_INT_MODE 0x40
1229 #define HOST_CNTR_nINT_MODE 0x0
1230 #define HOST_CNTR_BT_EN 0x80
1231 #define HOST_CNTR_ nBT_EN 0x0
1232 #define HOST_CNTR_EHW 0x100
1233 #define HOST_CNTR_nEHW 0x0
1234 #define HOST_CNTR_EHR 0x200
1235 #define HOST_CNTR_nEHR 0x0
1236 #define HOST_CNTR_BDR 0x400
1237 #define HOST_CNTR_nBDR 0x0
1241 #define HOST_STAT_READY 0x1
1242 #define HOST_STAT_nREADY 0x0
1243 #define HOST_STAT_FIFOFULL 0x2
1244 #define HOST_STAT_nFIFOFULL 0x0
1245 #define HOST_STAT_FIFOEMPTY 0x4
1246 #define HOST_STAT_nFIFOEMPTY 0x0
1247 #define HOST_STAT_COMPLETE 0x8
1248 #define HOST_STAT_nCOMPLETE 0x0
1249 #define HOST_STAT_HSHK 0x10
1250 #define HOST_STAT_nHSHK 0x0
1251 #define HOST_STAT_TIMEOUT 0x20
1252 #define HOST_STAT_nTIMEOUT 0x0
1253 #define HOST_STAT_HIRQ 0x40
1254 #define HOST_STAT_nHIRQ 0x0
1255 #define HOST_STAT_ALLOW_CNFG 0x80
1256 #define HOST_STAT_nALLOW_CNFG 0x0
1257 #define HOST_STAT_DMA_DIR 0x100
1258 #define HOST_STAT_nDMA_DIR 0x0
1259 #define HOST_STAT_BTE 0x200
1260 #define HOST_STAT_nBTE 0x0
1261 #define HOST_STAT_HOSTRD_DONE 0x8000
1262 #define HOST_STAT_nHOSTRD_DONE 0x0
1266 #define HOST_COUNT_TIMEOUT 0x7ff
1271 #define nEMUDABL 0x0
1273 #define nRSTDABL 0x0
1274 #define L1IDABL 0x1c
1275 #define L1DADABL 0xe0
1276 #define L1DBDABL 0x700
1277 #define DMA0OVR 0x800
1278 #define nDMA0OVR 0x0
1279 #define DMA1OVR 0x1000
1280 #define nDMA1OVR 0x0
1281 #define EMUOVR 0x4000
1283 #define OTPSEN 0x8000
1285 #define L2DABL 0x70000
1290 #define nSECURE0 0x0
1292 #define nSECURE1 0x0
1294 #define nSECURE2 0x0
1296 #define nSECURE3 0x0
1304 #define nAFVALID 0x0
1307 #define SECSTAT 0xe0