Go to the documentation of this file.
16 #define PLL_CTL 0xFFC00000
17 #define PLL_DIV 0xFFC00004
18 #define VR_CTL 0xFFC00008
19 #define PLL_STAT 0xFFC0000C
20 #define PLL_LOCKCNT 0xFFC00010
21 #define CHIPID 0xFFC00014
24 #define DOUBLE_FAULT (DOUBLE_FAULT_B|DOUBLE_FAULT_A)
25 #define RESET_DOUBLE (SWRST_DBL_FAULT_B|SWRST_DBL_FAULT_A)
26 #define RESET_WDOG (SWRST_WDT_B|SWRST_WDT_A)
27 #define RESET_SOFTWARE (SWRST_OCCURRED)
30 #define SWRST 0xFFC00100
31 #define SYSCR 0xFFC00104
32 #define SIC_RVECT 0xFFC00108
33 #define SIC_IMASK0 0xFFC0010C
34 #define SIC_IMASK1 0xFFC00110
35 #define SIC_IAR0 0xFFC00124
36 #define SIC_IAR1 0xFFC00128
37 #define SIC_IAR2 0xFFC0012C
38 #define SIC_IAR3 0xFFC00130
39 #define SIC_IAR4 0xFFC00134
40 #define SIC_IAR5 0xFFC00138
41 #define SIC_IAR6 0xFFC0013C
42 #define SIC_IAR7 0xFFC00140
43 #define SIC_ISR0 0xFFC00114
44 #define SIC_ISR1 0xFFC00118
45 #define SIC_IWR0 0xFFC0011C
46 #define SIC_IWR1 0xFFC00120
49 #define SICB_SWRST 0xFFC01100
50 #define SICB_SYSCR 0xFFC01104
51 #define SICB_RVECT 0xFFC01108
52 #define SICB_IMASK0 0xFFC0110C
53 #define SICB_IMASK1 0xFFC01110
54 #define SICB_IAR0 0xFFC01124
55 #define SICB_IAR1 0xFFC01128
56 #define SICB_IAR2 0xFFC0112C
57 #define SICB_IAR3 0xFFC01130
58 #define SICB_IAR4 0xFFC01134
59 #define SICB_IAR5 0xFFC01138
60 #define SICB_IAR6 0xFFC0113C
61 #define SICB_IAR7 0xFFC01140
62 #define SICB_ISR0 0xFFC01114
63 #define SICB_ISR1 0xFFC01118
64 #define SICB_IWR0 0xFFC0111C
65 #define SICB_IWR1 0xFFC01120
68 #define WDOGA_CTL 0xFFC00200
69 #define WDOGA_CNT 0xFFC00204
70 #define WDOGA_STAT 0xFFC00208
73 #define WDOGB_CTL 0xFFC01200
74 #define WDOGB_CNT 0xFFC01204
75 #define WDOGB_STAT 0xFFC01208
83 #define BFIN_UART_THR 0xFFC00400
84 #define BFIN_UART_RBR 0xFFC00400
85 #define BFIN_UART_DLL 0xFFC00400
86 #define BFIN_UART_IER 0xFFC00404
87 #define BFIN_UART_DLH 0xFFC00404
88 #define BFIN_UART_IIR 0xFFC00408
89 #define BFIN_UART_LCR 0xFFC0040C
90 #define BFIN_UART_MCR 0xFFC00410
91 #define BFIN_UART_LSR 0xFFC00414
92 #define BFIN_UART_MSR 0xFFC00418
93 #define BFIN_UART_SCR 0xFFC0041C
94 #define BFIN_UART_GCTL 0xFFC00424
97 #define SPI0_REGBASE 0xFFC00500
98 #define SPI_CTL 0xFFC00500
99 #define SPI_FLG 0xFFC00504
100 #define SPI_STAT 0xFFC00508
101 #define SPI_TDBR 0xFFC0050C
102 #define SPI_RDBR 0xFFC00510
103 #define SPI_BAUD 0xFFC00514
104 #define SPI_SHADOW 0xFFC00518
107 #define TIMER0_CONFIG 0xFFC00600
108 #define TIMER0_COUNTER 0xFFC00604
109 #define TIMER0_PERIOD 0xFFC00608
110 #define TIMER0_WIDTH 0xFFC0060C
112 #define TIMER1_CONFIG 0xFFC00610
113 #define TIMER1_COUNTER 0xFFC00614
114 #define TIMER1_PERIOD 0xFFC00618
115 #define TIMER1_WIDTH 0xFFC0061C
117 #define TIMER2_CONFIG 0xFFC00620
118 #define TIMER2_COUNTER 0xFFC00624
119 #define TIMER2_PERIOD 0xFFC00628
120 #define TIMER2_WIDTH 0xFFC0062C
122 #define TIMER3_CONFIG 0xFFC00630
123 #define TIMER3_COUNTER 0xFFC00634
124 #define TIMER3_PERIOD 0xFFC00638
125 #define TIMER3_WIDTH 0xFFC0063C
127 #define TIMER4_CONFIG 0xFFC00640
128 #define TIMER4_COUNTER 0xFFC00644
129 #define TIMER4_PERIOD 0xFFC00648
130 #define TIMER4_WIDTH 0xFFC0064C
132 #define TIMER5_CONFIG 0xFFC00650
133 #define TIMER5_COUNTER 0xFFC00654
134 #define TIMER5_PERIOD 0xFFC00658
135 #define TIMER5_WIDTH 0xFFC0065C
137 #define TIMER6_CONFIG 0xFFC00660
138 #define TIMER6_COUNTER 0xFFC00664
139 #define TIMER6_PERIOD 0xFFC00668
140 #define TIMER6_WIDTH 0xFFC0066C
142 #define TIMER7_CONFIG 0xFFC00670
143 #define TIMER7_COUNTER 0xFFC00674
144 #define TIMER7_PERIOD 0xFFC00678
145 #define TIMER7_WIDTH 0xFFC0067C
147 #define TMRS8_ENABLE 0xFFC00680
148 #define TMRS8_DISABLE 0xFFC00684
149 #define TMRS8_STATUS 0xFFC00688
152 #define TIMER8_CONFIG 0xFFC01600
153 #define TIMER8_COUNTER 0xFFC01604
154 #define TIMER8_PERIOD 0xFFC01608
155 #define TIMER8_WIDTH 0xFFC0160C
157 #define TIMER9_CONFIG 0xFFC01610
158 #define TIMER9_COUNTER 0xFFC01614
159 #define TIMER9_PERIOD 0xFFC01618
160 #define TIMER9_WIDTH 0xFFC0161C
162 #define TIMER10_CONFIG 0xFFC01620
163 #define TIMER10_COUNTER 0xFFC01624
164 #define TIMER10_PERIOD 0xFFC01628
165 #define TIMER10_WIDTH 0xFFC0162C
167 #define TIMER11_CONFIG 0xFFC01630
168 #define TIMER11_COUNTER 0xFFC01634
169 #define TIMER11_PERIOD 0xFFC01638
170 #define TIMER11_WIDTH 0xFFC0163C
172 #define TMRS4_ENABLE 0xFFC01640
173 #define TMRS4_DISABLE 0xFFC01644
174 #define TMRS4_STATUS 0xFFC01648
177 #define FIO0_FLAG_D 0xFFC00700
178 #define FIO0_FLAG_C 0xFFC00704
179 #define FIO0_FLAG_S 0xFFC00708
180 #define FIO0_FLAG_T 0xFFC0070C
181 #define FIO0_MASKA_D 0xFFC00710
182 #define FIO0_MASKA_C 0xFFC00714
183 #define FIO0_MASKA_S 0xFFC00718
184 #define FIO0_MASKA_T 0xFFC0071C
185 #define FIO0_MASKB_D 0xFFC00720
186 #define FIO0_MASKB_C 0xFFC00724
187 #define FIO0_MASKB_S 0xFFC00728
188 #define FIO0_MASKB_T 0xFFC0072C
189 #define FIO0_DIR 0xFFC00730
190 #define FIO0_POLAR 0xFFC00734
191 #define FIO0_EDGE 0xFFC00738
192 #define FIO0_BOTH 0xFFC0073C
193 #define FIO0_INEN 0xFFC00740
196 #define FIO1_FLAG_D 0xFFC01500
197 #define FIO1_FLAG_C 0xFFC01504
198 #define FIO1_FLAG_S 0xFFC01508
199 #define FIO1_FLAG_T 0xFFC0150C
200 #define FIO1_MASKA_D 0xFFC01510
201 #define FIO1_MASKA_C 0xFFC01514
202 #define FIO1_MASKA_S 0xFFC01518
203 #define FIO1_MASKA_T 0xFFC0151C
204 #define FIO1_MASKB_D 0xFFC01520
205 #define FIO1_MASKB_C 0xFFC01524
206 #define FIO1_MASKB_S 0xFFC01528
207 #define FIO1_MASKB_T 0xFFC0152C
208 #define FIO1_DIR 0xFFC01530
209 #define FIO1_POLAR 0xFFC01534
210 #define FIO1_EDGE 0xFFC01538
211 #define FIO1_BOTH 0xFFC0153C
212 #define FIO1_INEN 0xFFC01540
215 #define FIO2_FLAG_D 0xFFC01700
216 #define FIO2_FLAG_C 0xFFC01704
217 #define FIO2_FLAG_S 0xFFC01708
218 #define FIO2_FLAG_T 0xFFC0170C
219 #define FIO2_MASKA_D 0xFFC01710
220 #define FIO2_MASKA_C 0xFFC01714
221 #define FIO2_MASKA_S 0xFFC01718
222 #define FIO2_MASKA_T 0xFFC0171C
223 #define FIO2_MASKB_D 0xFFC01720
224 #define FIO2_MASKB_C 0xFFC01724
225 #define FIO2_MASKB_S 0xFFC01728
226 #define FIO2_MASKB_T 0xFFC0172C
227 #define FIO2_DIR 0xFFC01730
228 #define FIO2_POLAR 0xFFC01734
229 #define FIO2_EDGE 0xFFC01738
230 #define FIO2_BOTH 0xFFC0173C
231 #define FIO2_INEN 0xFFC01740
234 #define SPORT0_TCR1 0xFFC00800
235 #define SPORT0_TCR2 0xFFC00804
236 #define SPORT0_TCLKDIV 0xFFC00808
237 #define SPORT0_TFSDIV 0xFFC0080C
238 #define SPORT0_TX 0xFFC00810
239 #define SPORT0_RX 0xFFC00818
240 #define SPORT0_RCR1 0xFFC00820
241 #define SPORT0_RCR2 0xFFC00824
242 #define SPORT0_RCLKDIV 0xFFC00828
243 #define SPORT0_RFSDIV 0xFFC0082C
244 #define SPORT0_STAT 0xFFC00830
245 #define SPORT0_CHNL 0xFFC00834
246 #define SPORT0_MCMC1 0xFFC00838
247 #define SPORT0_MCMC2 0xFFC0083C
248 #define SPORT0_MTCS0 0xFFC00840
249 #define SPORT0_MTCS1 0xFFC00844
250 #define SPORT0_MTCS2 0xFFC00848
251 #define SPORT0_MTCS3 0xFFC0084C
252 #define SPORT0_MRCS0 0xFFC00850
253 #define SPORT0_MRCS1 0xFFC00854
254 #define SPORT0_MRCS2 0xFFC00858
255 #define SPORT0_MRCS3 0xFFC0085C
258 #define SPORT1_TCR1 0xFFC00900
259 #define SPORT1_TCR2 0xFFC00904
260 #define SPORT1_TCLKDIV 0xFFC00908
261 #define SPORT1_TFSDIV 0xFFC0090C
262 #define SPORT1_TX 0xFFC00910
263 #define SPORT1_RX 0xFFC00918
264 #define SPORT1_RCR1 0xFFC00920
265 #define SPORT1_RCR2 0xFFC00924
266 #define SPORT1_RCLKDIV 0xFFC00928
267 #define SPORT1_RFSDIV 0xFFC0092C
268 #define SPORT1_STAT 0xFFC00930
269 #define SPORT1_CHNL 0xFFC00934
270 #define SPORT1_MCMC1 0xFFC00938
271 #define SPORT1_MCMC2 0xFFC0093C
272 #define SPORT1_MTCS0 0xFFC00940
273 #define SPORT1_MTCS1 0xFFC00944
274 #define SPORT1_MTCS2 0xFFC00948
275 #define SPORT1_MTCS3 0xFFC0094C
276 #define SPORT1_MRCS0 0xFFC00950
277 #define SPORT1_MRCS1 0xFFC00954
278 #define SPORT1_MRCS2 0xFFC00958
279 #define SPORT1_MRCS3 0xFFC0095C
282 #define EBIU_AMGCTL 0xFFC00A00
283 #define EBIU_AMBCTL0 0xFFC00A04
284 #define EBIU_AMBCTL1 0xFFC00A08
287 #define EBIU_SDGCTL 0xFFC00A10
288 #define EBIU_SDBCTL 0xFFC00A14
289 #define EBIU_SDRRC 0xFFC00A18
290 #define EBIU_SDSTAT 0xFFC00A1C
293 #define PPI0_CONTROL 0xFFC01000
294 #define PPI0_STATUS 0xFFC01004
295 #define PPI0_COUNT 0xFFC01008
296 #define PPI0_DELAY 0xFFC0100C
297 #define PPI0_FRAME 0xFFC01010
300 #define PPI1_CONTROL 0xFFC01300
301 #define PPI1_STATUS 0xFFC01304
302 #define PPI1_COUNT 0xFFC01308
303 #define PPI1_DELAY 0xFFC0130C
304 #define PPI1_FRAME 0xFFC01310
307 #define DMAC0_TC_PER 0xFFC00B0C
308 #define DMAC0_TC_CNT 0xFFC00B10
309 #define DMAC1_TC_PER 0xFFC01B0C
310 #define DMAC1_TC_CNT 0xFFC01B10
313 #define DMA1_0_CONFIG 0xFFC01C08
314 #define DMA1_0_NEXT_DESC_PTR 0xFFC01C00
315 #define DMA1_0_START_ADDR 0xFFC01C04
316 #define DMA1_0_X_COUNT 0xFFC01C10
317 #define DMA1_0_Y_COUNT 0xFFC01C18
318 #define DMA1_0_X_MODIFY 0xFFC01C14
319 #define DMA1_0_Y_MODIFY 0xFFC01C1C
320 #define DMA1_0_CURR_DESC_PTR 0xFFC01C20
321 #define DMA1_0_CURR_ADDR 0xFFC01C24
322 #define DMA1_0_CURR_X_COUNT 0xFFC01C30
323 #define DMA1_0_CURR_Y_COUNT 0xFFC01C38
324 #define DMA1_0_IRQ_STATUS 0xFFC01C28
325 #define DMA1_0_PERIPHERAL_MAP 0xFFC01C2C
327 #define DMA1_1_CONFIG 0xFFC01C48
328 #define DMA1_1_NEXT_DESC_PTR 0xFFC01C40
329 #define DMA1_1_START_ADDR 0xFFC01C44
330 #define DMA1_1_X_COUNT 0xFFC01C50
331 #define DMA1_1_Y_COUNT 0xFFC01C58
332 #define DMA1_1_X_MODIFY 0xFFC01C54
333 #define DMA1_1_Y_MODIFY 0xFFC01C5C
334 #define DMA1_1_CURR_DESC_PTR 0xFFC01C60
335 #define DMA1_1_CURR_ADDR 0xFFC01C64
336 #define DMA1_1_CURR_X_COUNT 0xFFC01C70
337 #define DMA1_1_CURR_Y_COUNT 0xFFC01C78
338 #define DMA1_1_IRQ_STATUS 0xFFC01C68
339 #define DMA1_1_PERIPHERAL_MAP 0xFFC01C6C
341 #define DMA1_2_CONFIG 0xFFC01C88
342 #define DMA1_2_NEXT_DESC_PTR 0xFFC01C80
343 #define DMA1_2_START_ADDR 0xFFC01C84
344 #define DMA1_2_X_COUNT 0xFFC01C90
345 #define DMA1_2_Y_COUNT 0xFFC01C98
346 #define DMA1_2_X_MODIFY 0xFFC01C94
347 #define DMA1_2_Y_MODIFY 0xFFC01C9C
348 #define DMA1_2_CURR_DESC_PTR 0xFFC01CA0
349 #define DMA1_2_CURR_ADDR 0xFFC01CA4
350 #define DMA1_2_CURR_X_COUNT 0xFFC01CB0
351 #define DMA1_2_CURR_Y_COUNT 0xFFC01CB8
352 #define DMA1_2_IRQ_STATUS 0xFFC01CA8
353 #define DMA1_2_PERIPHERAL_MAP 0xFFC01CAC
355 #define DMA1_3_CONFIG 0xFFC01CC8
356 #define DMA1_3_NEXT_DESC_PTR 0xFFC01CC0
357 #define DMA1_3_START_ADDR 0xFFC01CC4
358 #define DMA1_3_X_COUNT 0xFFC01CD0
359 #define DMA1_3_Y_COUNT 0xFFC01CD8
360 #define DMA1_3_X_MODIFY 0xFFC01CD4
361 #define DMA1_3_Y_MODIFY 0xFFC01CDC
362 #define DMA1_3_CURR_DESC_PTR 0xFFC01CE0
363 #define DMA1_3_CURR_ADDR 0xFFC01CE4
364 #define DMA1_3_CURR_X_COUNT 0xFFC01CF0
365 #define DMA1_3_CURR_Y_COUNT 0xFFC01CF8
366 #define DMA1_3_IRQ_STATUS 0xFFC01CE8
367 #define DMA1_3_PERIPHERAL_MAP 0xFFC01CEC
369 #define DMA1_4_CONFIG 0xFFC01D08
370 #define DMA1_4_NEXT_DESC_PTR 0xFFC01D00
371 #define DMA1_4_START_ADDR 0xFFC01D04
372 #define DMA1_4_X_COUNT 0xFFC01D10
373 #define DMA1_4_Y_COUNT 0xFFC01D18
374 #define DMA1_4_X_MODIFY 0xFFC01D14
375 #define DMA1_4_Y_MODIFY 0xFFC01D1C
376 #define DMA1_4_CURR_DESC_PTR 0xFFC01D20
377 #define DMA1_4_CURR_ADDR 0xFFC01D24
378 #define DMA1_4_CURR_X_COUNT 0xFFC01D30
379 #define DMA1_4_CURR_Y_COUNT 0xFFC01D38
380 #define DMA1_4_IRQ_STATUS 0xFFC01D28
381 #define DMA1_4_PERIPHERAL_MAP 0xFFC01D2C
383 #define DMA1_5_CONFIG 0xFFC01D48
384 #define DMA1_5_NEXT_DESC_PTR 0xFFC01D40
385 #define DMA1_5_START_ADDR 0xFFC01D44
386 #define DMA1_5_X_COUNT 0xFFC01D50
387 #define DMA1_5_Y_COUNT 0xFFC01D58
388 #define DMA1_5_X_MODIFY 0xFFC01D54
389 #define DMA1_5_Y_MODIFY 0xFFC01D5C
390 #define DMA1_5_CURR_DESC_PTR 0xFFC01D60
391 #define DMA1_5_CURR_ADDR 0xFFC01D64
392 #define DMA1_5_CURR_X_COUNT 0xFFC01D70
393 #define DMA1_5_CURR_Y_COUNT 0xFFC01D78
394 #define DMA1_5_IRQ_STATUS 0xFFC01D68
395 #define DMA1_5_PERIPHERAL_MAP 0xFFC01D6C
397 #define DMA1_6_CONFIG 0xFFC01D88
398 #define DMA1_6_NEXT_DESC_PTR 0xFFC01D80
399 #define DMA1_6_START_ADDR 0xFFC01D84
400 #define DMA1_6_X_COUNT 0xFFC01D90
401 #define DMA1_6_Y_COUNT 0xFFC01D98
402 #define DMA1_6_X_MODIFY 0xFFC01D94
403 #define DMA1_6_Y_MODIFY 0xFFC01D9C
404 #define DMA1_6_CURR_DESC_PTR 0xFFC01DA0
405 #define DMA1_6_CURR_ADDR 0xFFC01DA4
406 #define DMA1_6_CURR_X_COUNT 0xFFC01DB0
407 #define DMA1_6_CURR_Y_COUNT 0xFFC01DB8
408 #define DMA1_6_IRQ_STATUS 0xFFC01DA8
409 #define DMA1_6_PERIPHERAL_MAP 0xFFC01DAC
411 #define DMA1_7_CONFIG 0xFFC01DC8
412 #define DMA1_7_NEXT_DESC_PTR 0xFFC01DC0
413 #define DMA1_7_START_ADDR 0xFFC01DC4
414 #define DMA1_7_X_COUNT 0xFFC01DD0
415 #define DMA1_7_Y_COUNT 0xFFC01DD8
416 #define DMA1_7_X_MODIFY 0xFFC01DD4
417 #define DMA1_7_Y_MODIFY 0xFFC01DDC
418 #define DMA1_7_CURR_DESC_PTR 0xFFC01DE0
419 #define DMA1_7_CURR_ADDR 0xFFC01DE4
420 #define DMA1_7_CURR_X_COUNT 0xFFC01DF0
421 #define DMA1_7_CURR_Y_COUNT 0xFFC01DF8
422 #define DMA1_7_IRQ_STATUS 0xFFC01DE8
423 #define DMA1_7_PERIPHERAL_MAP 0xFFC01DEC
425 #define DMA1_8_CONFIG 0xFFC01E08
426 #define DMA1_8_NEXT_DESC_PTR 0xFFC01E00
427 #define DMA1_8_START_ADDR 0xFFC01E04
428 #define DMA1_8_X_COUNT 0xFFC01E10
429 #define DMA1_8_Y_COUNT 0xFFC01E18
430 #define DMA1_8_X_MODIFY 0xFFC01E14
431 #define DMA1_8_Y_MODIFY 0xFFC01E1C
432 #define DMA1_8_CURR_DESC_PTR 0xFFC01E20
433 #define DMA1_8_CURR_ADDR 0xFFC01E24
434 #define DMA1_8_CURR_X_COUNT 0xFFC01E30
435 #define DMA1_8_CURR_Y_COUNT 0xFFC01E38
436 #define DMA1_8_IRQ_STATUS 0xFFC01E28
437 #define DMA1_8_PERIPHERAL_MAP 0xFFC01E2C
439 #define DMA1_9_CONFIG 0xFFC01E48
440 #define DMA1_9_NEXT_DESC_PTR 0xFFC01E40
441 #define DMA1_9_START_ADDR 0xFFC01E44
442 #define DMA1_9_X_COUNT 0xFFC01E50
443 #define DMA1_9_Y_COUNT 0xFFC01E58
444 #define DMA1_9_X_MODIFY 0xFFC01E54
445 #define DMA1_9_Y_MODIFY 0xFFC01E5C
446 #define DMA1_9_CURR_DESC_PTR 0xFFC01E60
447 #define DMA1_9_CURR_ADDR 0xFFC01E64
448 #define DMA1_9_CURR_X_COUNT 0xFFC01E70
449 #define DMA1_9_CURR_Y_COUNT 0xFFC01E78
450 #define DMA1_9_IRQ_STATUS 0xFFC01E68
451 #define DMA1_9_PERIPHERAL_MAP 0xFFC01E6C
453 #define DMA1_10_CONFIG 0xFFC01E88
454 #define DMA1_10_NEXT_DESC_PTR 0xFFC01E80
455 #define DMA1_10_START_ADDR 0xFFC01E84
456 #define DMA1_10_X_COUNT 0xFFC01E90
457 #define DMA1_10_Y_COUNT 0xFFC01E98
458 #define DMA1_10_X_MODIFY 0xFFC01E94
459 #define DMA1_10_Y_MODIFY 0xFFC01E9C
460 #define DMA1_10_CURR_DESC_PTR 0xFFC01EA0
461 #define DMA1_10_CURR_ADDR 0xFFC01EA4
462 #define DMA1_10_CURR_X_COUNT 0xFFC01EB0
463 #define DMA1_10_CURR_Y_COUNT 0xFFC01EB8
464 #define DMA1_10_IRQ_STATUS 0xFFC01EA8
465 #define DMA1_10_PERIPHERAL_MAP 0xFFC01EAC
467 #define DMA1_11_CONFIG 0xFFC01EC8
468 #define DMA1_11_NEXT_DESC_PTR 0xFFC01EC0
469 #define DMA1_11_START_ADDR 0xFFC01EC4
470 #define DMA1_11_X_COUNT 0xFFC01ED0
471 #define DMA1_11_Y_COUNT 0xFFC01ED8
472 #define DMA1_11_X_MODIFY 0xFFC01ED4
473 #define DMA1_11_Y_MODIFY 0xFFC01EDC
474 #define DMA1_11_CURR_DESC_PTR 0xFFC01EE0
475 #define DMA1_11_CURR_ADDR 0xFFC01EE4
476 #define DMA1_11_CURR_X_COUNT 0xFFC01EF0
477 #define DMA1_11_CURR_Y_COUNT 0xFFC01EF8
478 #define DMA1_11_IRQ_STATUS 0xFFC01EE8
479 #define DMA1_11_PERIPHERAL_MAP 0xFFC01EEC
482 #define MDMA_D0_CONFIG 0xFFC01F08
483 #define MDMA_D0_NEXT_DESC_PTR 0xFFC01F00
484 #define MDMA_D0_START_ADDR 0xFFC01F04
485 #define MDMA_D0_X_COUNT 0xFFC01F10
486 #define MDMA_D0_Y_COUNT 0xFFC01F18
487 #define MDMA_D0_X_MODIFY 0xFFC01F14
488 #define MDMA_D0_Y_MODIFY 0xFFC01F1C
489 #define MDMA_D0_CURR_DESC_PTR 0xFFC01F20
490 #define MDMA_D0_CURR_ADDR 0xFFC01F24
491 #define MDMA_D0_CURR_X_COUNT 0xFFC01F30
492 #define MDMA_D0_CURR_Y_COUNT 0xFFC01F38
493 #define MDMA_D0_IRQ_STATUS 0xFFC01F28
494 #define MDMA_D0_PERIPHERAL_MAP 0xFFC01F2C
496 #define MDMA_S0_CONFIG 0xFFC01F48
497 #define MDMA_S0_NEXT_DESC_PTR 0xFFC01F40
498 #define MDMA_S0_START_ADDR 0xFFC01F44
499 #define MDMA_S0_X_COUNT 0xFFC01F50
500 #define MDMA_S0_Y_COUNT 0xFFC01F58
501 #define MDMA_S0_X_MODIFY 0xFFC01F54
502 #define MDMA_S0_Y_MODIFY 0xFFC01F5C
503 #define MDMA_S0_CURR_DESC_PTR 0xFFC01F60
504 #define MDMA_S0_CURR_ADDR 0xFFC01F64
505 #define MDMA_S0_CURR_X_COUNT 0xFFC01F70
506 #define MDMA_S0_CURR_Y_COUNT 0xFFC01F78
507 #define MDMA_S0_IRQ_STATUS 0xFFC01F68
508 #define MDMA_S0_PERIPHERAL_MAP 0xFFC01F6C
510 #define MDMA_D1_CONFIG 0xFFC01F88
511 #define MDMA_D1_NEXT_DESC_PTR 0xFFC01F80
512 #define MDMA_D1_START_ADDR 0xFFC01F84
513 #define MDMA_D1_X_COUNT 0xFFC01F90
514 #define MDMA_D1_Y_COUNT 0xFFC01F98
515 #define MDMA_D1_X_MODIFY 0xFFC01F94
516 #define MDMA_D1_Y_MODIFY 0xFFC01F9C
517 #define MDMA_D1_CURR_DESC_PTR 0xFFC01FA0
518 #define MDMA_D1_CURR_ADDR 0xFFC01FA4
519 #define MDMA_D1_CURR_X_COUNT 0xFFC01FB0
520 #define MDMA_D1_CURR_Y_COUNT 0xFFC01FB8
521 #define MDMA_D1_IRQ_STATUS 0xFFC01FA8
522 #define MDMA_D1_PERIPHERAL_MAP 0xFFC01FAC
524 #define MDMA_S1_CONFIG 0xFFC01FC8
525 #define MDMA_S1_NEXT_DESC_PTR 0xFFC01FC0
526 #define MDMA_S1_START_ADDR 0xFFC01FC4
527 #define MDMA_S1_X_COUNT 0xFFC01FD0
528 #define MDMA_S1_Y_COUNT 0xFFC01FD8
529 #define MDMA_S1_X_MODIFY 0xFFC01FD4
530 #define MDMA_S1_Y_MODIFY 0xFFC01FDC
531 #define MDMA_S1_CURR_DESC_PTR 0xFFC01FE0
532 #define MDMA_S1_CURR_ADDR 0xFFC01FE4
533 #define MDMA_S1_CURR_X_COUNT 0xFFC01FF0
534 #define MDMA_S1_CURR_Y_COUNT 0xFFC01FF8
535 #define MDMA_S1_IRQ_STATUS 0xFFC01FE8
536 #define MDMA_S1_PERIPHERAL_MAP 0xFFC01FEC
539 #define DMA2_0_CONFIG 0xFFC00C08
540 #define DMA2_0_NEXT_DESC_PTR 0xFFC00C00
541 #define DMA2_0_START_ADDR 0xFFC00C04
542 #define DMA2_0_X_COUNT 0xFFC00C10
543 #define DMA2_0_Y_COUNT 0xFFC00C18
544 #define DMA2_0_X_MODIFY 0xFFC00C14
545 #define DMA2_0_Y_MODIFY 0xFFC00C1C
546 #define DMA2_0_CURR_DESC_PTR 0xFFC00C20
547 #define DMA2_0_CURR_ADDR 0xFFC00C24
548 #define DMA2_0_CURR_X_COUNT 0xFFC00C30
549 #define DMA2_0_CURR_Y_COUNT 0xFFC00C38
550 #define DMA2_0_IRQ_STATUS 0xFFC00C28
551 #define DMA2_0_PERIPHERAL_MAP 0xFFC00C2C
553 #define DMA2_1_CONFIG 0xFFC00C48
554 #define DMA2_1_NEXT_DESC_PTR 0xFFC00C40
555 #define DMA2_1_START_ADDR 0xFFC00C44
556 #define DMA2_1_X_COUNT 0xFFC00C50
557 #define DMA2_1_Y_COUNT 0xFFC00C58
558 #define DMA2_1_X_MODIFY 0xFFC00C54
559 #define DMA2_1_Y_MODIFY 0xFFC00C5C
560 #define DMA2_1_CURR_DESC_PTR 0xFFC00C60
561 #define DMA2_1_CURR_ADDR 0xFFC00C64
562 #define DMA2_1_CURR_X_COUNT 0xFFC00C70
563 #define DMA2_1_CURR_Y_COUNT 0xFFC00C78
564 #define DMA2_1_IRQ_STATUS 0xFFC00C68
565 #define DMA2_1_PERIPHERAL_MAP 0xFFC00C6C
567 #define DMA2_2_CONFIG 0xFFC00C88
568 #define DMA2_2_NEXT_DESC_PTR 0xFFC00C80
569 #define DMA2_2_START_ADDR 0xFFC00C84
570 #define DMA2_2_X_COUNT 0xFFC00C90
571 #define DMA2_2_Y_COUNT 0xFFC00C98
572 #define DMA2_2_X_MODIFY 0xFFC00C94
573 #define DMA2_2_Y_MODIFY 0xFFC00C9C
574 #define DMA2_2_CURR_DESC_PTR 0xFFC00CA0
575 #define DMA2_2_CURR_ADDR 0xFFC00CA4
576 #define DMA2_2_CURR_X_COUNT 0xFFC00CB0
577 #define DMA2_2_CURR_Y_COUNT 0xFFC00CB8
578 #define DMA2_2_IRQ_STATUS 0xFFC00CA8
579 #define DMA2_2_PERIPHERAL_MAP 0xFFC00CAC
581 #define DMA2_3_CONFIG 0xFFC00CC8
582 #define DMA2_3_NEXT_DESC_PTR 0xFFC00CC0
583 #define DMA2_3_START_ADDR 0xFFC00CC4
584 #define DMA2_3_X_COUNT 0xFFC00CD0
585 #define DMA2_3_Y_COUNT 0xFFC00CD8
586 #define DMA2_3_X_MODIFY 0xFFC00CD4
587 #define DMA2_3_Y_MODIFY 0xFFC00CDC
588 #define DMA2_3_CURR_DESC_PTR 0xFFC00CE0
589 #define DMA2_3_CURR_ADDR 0xFFC00CE4
590 #define DMA2_3_CURR_X_COUNT 0xFFC00CF0
591 #define DMA2_3_CURR_Y_COUNT 0xFFC00CF8
592 #define DMA2_3_IRQ_STATUS 0xFFC00CE8
593 #define DMA2_3_PERIPHERAL_MAP 0xFFC00CEC
595 #define DMA2_4_CONFIG 0xFFC00D08
596 #define DMA2_4_NEXT_DESC_PTR 0xFFC00D00
597 #define DMA2_4_START_ADDR 0xFFC00D04
598 #define DMA2_4_X_COUNT 0xFFC00D10
599 #define DMA2_4_Y_COUNT 0xFFC00D18
600 #define DMA2_4_X_MODIFY 0xFFC00D14
601 #define DMA2_4_Y_MODIFY 0xFFC00D1C
602 #define DMA2_4_CURR_DESC_PTR 0xFFC00D20
603 #define DMA2_4_CURR_ADDR 0xFFC00D24
604 #define DMA2_4_CURR_X_COUNT 0xFFC00D30
605 #define DMA2_4_CURR_Y_COUNT 0xFFC00D38
606 #define DMA2_4_IRQ_STATUS 0xFFC00D28
607 #define DMA2_4_PERIPHERAL_MAP 0xFFC00D2C
609 #define DMA2_5_CONFIG 0xFFC00D48
610 #define DMA2_5_NEXT_DESC_PTR 0xFFC00D40
611 #define DMA2_5_START_ADDR 0xFFC00D44
612 #define DMA2_5_X_COUNT 0xFFC00D50
613 #define DMA2_5_Y_COUNT 0xFFC00D58
614 #define DMA2_5_X_MODIFY 0xFFC00D54
615 #define DMA2_5_Y_MODIFY 0xFFC00D5C
616 #define DMA2_5_CURR_DESC_PTR 0xFFC00D60
617 #define DMA2_5_CURR_ADDR 0xFFC00D64
618 #define DMA2_5_CURR_X_COUNT 0xFFC00D70
619 #define DMA2_5_CURR_Y_COUNT 0xFFC00D78
620 #define DMA2_5_IRQ_STATUS 0xFFC00D68
621 #define DMA2_5_PERIPHERAL_MAP 0xFFC00D6C
623 #define DMA2_6_CONFIG 0xFFC00D88
624 #define DMA2_6_NEXT_DESC_PTR 0xFFC00D80
625 #define DMA2_6_START_ADDR 0xFFC00D84
626 #define DMA2_6_X_COUNT 0xFFC00D90
627 #define DMA2_6_Y_COUNT 0xFFC00D98
628 #define DMA2_6_X_MODIFY 0xFFC00D94
629 #define DMA2_6_Y_MODIFY 0xFFC00D9C
630 #define DMA2_6_CURR_DESC_PTR 0xFFC00DA0
631 #define DMA2_6_CURR_ADDR 0xFFC00DA4
632 #define DMA2_6_CURR_X_COUNT 0xFFC00DB0
633 #define DMA2_6_CURR_Y_COUNT 0xFFC00DB8
634 #define DMA2_6_IRQ_STATUS 0xFFC00DA8
635 #define DMA2_6_PERIPHERAL_MAP 0xFFC00DAC
637 #define DMA2_7_CONFIG 0xFFC00DC8
638 #define DMA2_7_NEXT_DESC_PTR 0xFFC00DC0
639 #define DMA2_7_START_ADDR 0xFFC00DC4
640 #define DMA2_7_X_COUNT 0xFFC00DD0
641 #define DMA2_7_Y_COUNT 0xFFC00DD8
642 #define DMA2_7_X_MODIFY 0xFFC00DD4
643 #define DMA2_7_Y_MODIFY 0xFFC00DDC
644 #define DMA2_7_CURR_DESC_PTR 0xFFC00DE0
645 #define DMA2_7_CURR_ADDR 0xFFC00DE4
646 #define DMA2_7_CURR_X_COUNT 0xFFC00DF0
647 #define DMA2_7_CURR_Y_COUNT 0xFFC00DF8
648 #define DMA2_7_IRQ_STATUS 0xFFC00DE8
649 #define DMA2_7_PERIPHERAL_MAP 0xFFC00DEC
651 #define DMA2_8_CONFIG 0xFFC00E08
652 #define DMA2_8_NEXT_DESC_PTR 0xFFC00E00
653 #define DMA2_8_START_ADDR 0xFFC00E04
654 #define DMA2_8_X_COUNT 0xFFC00E10
655 #define DMA2_8_Y_COUNT 0xFFC00E18
656 #define DMA2_8_X_MODIFY 0xFFC00E14
657 #define DMA2_8_Y_MODIFY 0xFFC00E1C
658 #define DMA2_8_CURR_DESC_PTR 0xFFC00E20
659 #define DMA2_8_CURR_ADDR 0xFFC00E24
660 #define DMA2_8_CURR_X_COUNT 0xFFC00E30
661 #define DMA2_8_CURR_Y_COUNT 0xFFC00E38
662 #define DMA2_8_IRQ_STATUS 0xFFC00E28
663 #define DMA2_8_PERIPHERAL_MAP 0xFFC00E2C
665 #define DMA2_9_CONFIG 0xFFC00E48
666 #define DMA2_9_NEXT_DESC_PTR 0xFFC00E40
667 #define DMA2_9_START_ADDR 0xFFC00E44
668 #define DMA2_9_X_COUNT 0xFFC00E50
669 #define DMA2_9_Y_COUNT 0xFFC00E58
670 #define DMA2_9_X_MODIFY 0xFFC00E54
671 #define DMA2_9_Y_MODIFY 0xFFC00E5C
672 #define DMA2_9_CURR_DESC_PTR 0xFFC00E60
673 #define DMA2_9_CURR_ADDR 0xFFC00E64
674 #define DMA2_9_CURR_X_COUNT 0xFFC00E70
675 #define DMA2_9_CURR_Y_COUNT 0xFFC00E78
676 #define DMA2_9_IRQ_STATUS 0xFFC00E68
677 #define DMA2_9_PERIPHERAL_MAP 0xFFC00E6C
679 #define DMA2_10_CONFIG 0xFFC00E88
680 #define DMA2_10_NEXT_DESC_PTR 0xFFC00E80
681 #define DMA2_10_START_ADDR 0xFFC00E84
682 #define DMA2_10_X_COUNT 0xFFC00E90
683 #define DMA2_10_Y_COUNT 0xFFC00E98
684 #define DMA2_10_X_MODIFY 0xFFC00E94
685 #define DMA2_10_Y_MODIFY 0xFFC00E9C
686 #define DMA2_10_CURR_DESC_PTR 0xFFC00EA0
687 #define DMA2_10_CURR_ADDR 0xFFC00EA4
688 #define DMA2_10_CURR_X_COUNT 0xFFC00EB0
689 #define DMA2_10_CURR_Y_COUNT 0xFFC00EB8
690 #define DMA2_10_IRQ_STATUS 0xFFC00EA8
691 #define DMA2_10_PERIPHERAL_MAP 0xFFC00EAC
693 #define DMA2_11_CONFIG 0xFFC00EC8
694 #define DMA2_11_NEXT_DESC_PTR 0xFFC00EC0
695 #define DMA2_11_START_ADDR 0xFFC00EC4
696 #define DMA2_11_X_COUNT 0xFFC00ED0
697 #define DMA2_11_Y_COUNT 0xFFC00ED8
698 #define DMA2_11_X_MODIFY 0xFFC00ED4
699 #define DMA2_11_Y_MODIFY 0xFFC00EDC
700 #define DMA2_11_CURR_DESC_PTR 0xFFC00EE0
701 #define DMA2_11_CURR_ADDR 0xFFC00EE4
702 #define DMA2_11_CURR_X_COUNT 0xFFC00EF0
703 #define DMA2_11_CURR_Y_COUNT 0xFFC00EF8
704 #define DMA2_11_IRQ_STATUS 0xFFC00EE8
705 #define DMA2_11_PERIPHERAL_MAP 0xFFC00EEC
708 #define MDMA_D2_CONFIG 0xFFC00F08
709 #define MDMA_D2_NEXT_DESC_PTR 0xFFC00F00
710 #define MDMA_D2_START_ADDR 0xFFC00F04
711 #define MDMA_D2_X_COUNT 0xFFC00F10
712 #define MDMA_D2_Y_COUNT 0xFFC00F18
713 #define MDMA_D2_X_MODIFY 0xFFC00F14
714 #define MDMA_D2_Y_MODIFY 0xFFC00F1C
715 #define MDMA_D2_CURR_DESC_PTR 0xFFC00F20
716 #define MDMA_D2_CURR_ADDR 0xFFC00F24
717 #define MDMA_D2_CURR_X_COUNT 0xFFC00F30
718 #define MDMA_D2_CURR_Y_COUNT 0xFFC00F38
719 #define MDMA_D2_IRQ_STATUS 0xFFC00F28
720 #define MDMA_D2_PERIPHERAL_MAP 0xFFC00F2C
722 #define MDMA_S2_CONFIG 0xFFC00F48
723 #define MDMA_S2_NEXT_DESC_PTR 0xFFC00F40
724 #define MDMA_S2_START_ADDR 0xFFC00F44
725 #define MDMA_S2_X_COUNT 0xFFC00F50
726 #define MDMA_S2_Y_COUNT 0xFFC00F58
727 #define MDMA_S2_X_MODIFY 0xFFC00F54
728 #define MDMA_S2_Y_MODIFY 0xFFC00F5C
729 #define MDMA_S2_CURR_DESC_PTR 0xFFC00F60
730 #define MDMA_S2_CURR_ADDR 0xFFC00F64
731 #define MDMA_S2_CURR_X_COUNT 0xFFC00F70
732 #define MDMA_S2_CURR_Y_COUNT 0xFFC00F78
733 #define MDMA_S2_IRQ_STATUS 0xFFC00F68
734 #define MDMA_S2_PERIPHERAL_MAP 0xFFC00F6C
736 #define MDMA_D3_CONFIG 0xFFC00F88
737 #define MDMA_D3_NEXT_DESC_PTR 0xFFC00F80
738 #define MDMA_D3_START_ADDR 0xFFC00F84
739 #define MDMA_D3_X_COUNT 0xFFC00F90
740 #define MDMA_D3_Y_COUNT 0xFFC00F98
741 #define MDMA_D3_X_MODIFY 0xFFC00F94
742 #define MDMA_D3_Y_MODIFY 0xFFC00F9C
743 #define MDMA_D3_CURR_DESC_PTR 0xFFC00FA0
744 #define MDMA_D3_CURR_ADDR 0xFFC00FA4
745 #define MDMA_D3_CURR_X_COUNT 0xFFC00FB0
746 #define MDMA_D3_CURR_Y_COUNT 0xFFC00FB8
747 #define MDMA_D3_IRQ_STATUS 0xFFC00FA8
748 #define MDMA_D3_PERIPHERAL_MAP 0xFFC00FAC
750 #define MDMA_S3_CONFIG 0xFFC00FC8
751 #define MDMA_S3_NEXT_DESC_PTR 0xFFC00FC0
752 #define MDMA_S3_START_ADDR 0xFFC00FC4
753 #define MDMA_S3_X_COUNT 0xFFC00FD0
754 #define MDMA_S3_Y_COUNT 0xFFC00FD8
755 #define MDMA_S3_X_MODIFY 0xFFC00FD4
756 #define MDMA_S3_Y_MODIFY 0xFFC00FDC
757 #define MDMA_S3_CURR_DESC_PTR 0xFFC00FE0
758 #define MDMA_S3_CURR_ADDR 0xFFC00FE4
759 #define MDMA_S3_CURR_X_COUNT 0xFFC00FF0
760 #define MDMA_S3_CURR_Y_COUNT 0xFFC00FF8
761 #define MDMA_S3_IRQ_STATUS 0xFFC00FE8
762 #define MDMA_S3_PERIPHERAL_MAP 0xFFC00FEC
765 #define IMDMA_D0_CONFIG 0xFFC01808
766 #define IMDMA_D0_NEXT_DESC_PTR 0xFFC01800
767 #define IMDMA_D0_START_ADDR 0xFFC01804
768 #define IMDMA_D0_X_COUNT 0xFFC01810
769 #define IMDMA_D0_Y_COUNT 0xFFC01818
770 #define IMDMA_D0_X_MODIFY 0xFFC01814
771 #define IMDMA_D0_Y_MODIFY 0xFFC0181C
772 #define IMDMA_D0_CURR_DESC_PTR 0xFFC01820
773 #define IMDMA_D0_CURR_ADDR 0xFFC01824
774 #define IMDMA_D0_CURR_X_COUNT 0xFFC01830
775 #define IMDMA_D0_CURR_Y_COUNT 0xFFC01838
776 #define IMDMA_D0_IRQ_STATUS 0xFFC01828
778 #define IMDMA_S0_CONFIG 0xFFC01848
779 #define IMDMA_S0_NEXT_DESC_PTR 0xFFC01840
780 #define IMDMA_S0_START_ADDR 0xFFC01844
781 #define IMDMA_S0_X_COUNT 0xFFC01850
782 #define IMDMA_S0_Y_COUNT 0xFFC01858
783 #define IMDMA_S0_X_MODIFY 0xFFC01854
784 #define IMDMA_S0_Y_MODIFY 0xFFC0185C
785 #define IMDMA_S0_CURR_DESC_PTR 0xFFC01860
786 #define IMDMA_S0_CURR_ADDR 0xFFC01864
787 #define IMDMA_S0_CURR_X_COUNT 0xFFC01870
788 #define IMDMA_S0_CURR_Y_COUNT 0xFFC01878
789 #define IMDMA_S0_IRQ_STATUS 0xFFC01868
791 #define IMDMA_D1_CONFIG 0xFFC01888
792 #define IMDMA_D1_NEXT_DESC_PTR 0xFFC01880
793 #define IMDMA_D1_START_ADDR 0xFFC01884
794 #define IMDMA_D1_X_COUNT 0xFFC01890
795 #define IMDMA_D1_Y_COUNT 0xFFC01898
796 #define IMDMA_D1_X_MODIFY 0xFFC01894
797 #define IMDMA_D1_Y_MODIFY 0xFFC0189C
798 #define IMDMA_D1_CURR_DESC_PTR 0xFFC018A0
799 #define IMDMA_D1_CURR_ADDR 0xFFC018A4
800 #define IMDMA_D1_CURR_X_COUNT 0xFFC018B0
801 #define IMDMA_D1_CURR_Y_COUNT 0xFFC018B8
802 #define IMDMA_D1_IRQ_STATUS 0xFFC018A8
804 #define IMDMA_S1_CONFIG 0xFFC018C8
805 #define IMDMA_S1_NEXT_DESC_PTR 0xFFC018C0
806 #define IMDMA_S1_START_ADDR 0xFFC018C4
807 #define IMDMA_S1_X_COUNT 0xFFC018D0
808 #define IMDMA_S1_Y_COUNT 0xFFC018D8
809 #define IMDMA_S1_X_MODIFY 0xFFC018D4
810 #define IMDMA_S1_Y_MODIFY 0xFFC018DC
811 #define IMDMA_S1_CURR_DESC_PTR 0xFFC018E0
812 #define IMDMA_S1_CURR_ADDR 0xFFC018E4
813 #define IMDMA_S1_CURR_X_COUNT 0xFFC018F0
814 #define IMDMA_S1_CURR_Y_COUNT 0xFFC018F8
815 #define IMDMA_S1_IRQ_STATUS 0xFFC018E8
822 #define CHIPID_VERSION 0xF0000000
823 #define CHIPID_FAMILY 0x0FFFF000
824 #define CHIPID_MANUFACTURE 0x00000FFE
827 #define COREB_SRAM_INIT 0x0020
830 #define SYSTEM_RESET 0x0007
831 #define DOUBLE_FAULT_A 0x0008
832 #define DOUBLE_FAULT_B 0x0010
833 #define SWRST_DBL_FAULT_A 0x0800
834 #define SWRST_DBL_FAULT_B 0x1000
835 #define SWRST_WDT_B 0x2000
836 #define SWRST_WDT_A 0x4000
837 #define SWRST_OCCURRED 0x8000
848 #define Peripheral_IVG(Per_number, IVG_number) \
849 ((IVG_number) - 7) << (((Per_number) % 8) * 4)
855 #define SIC_UNMASK_ALL 0x00000000
856 #define SIC_MASK_ALL 0xFFFFFFFF
857 #define SIC_MASK(x) (1 << (x))
858 #define SIC_UNMASK(x) (0xFFFFFFFF ^ (1 << (x)))
861 #define IWR_DISABLE_ALL 0x00000000
862 #define IWR_ENABLE_ALL 0xFFFFFFFF
864 #define IWR_ENABLE(x) (1 << (x))
865 #define IWR_DISABLE(x) (0xFFFFFFFF ^ (1 << (x)))
870 #define PORT_EN 0x00000001
871 #define PORT_DIR 0x00000002
872 #define XFR_TYPE 0x0000000C
873 #define PORT_CFG 0x00000030
874 #define FLD_SEL 0x00000040
875 #define PACK_EN 0x00000080
876 #define DMA32 0x00000100
877 #define SKIP_EN 0x00000200
878 #define SKIP_EO 0x00000400
879 #define DLENGTH 0x00003800
881 #define DLEN(x) (((x-9) & 0x07) << 11)
882 #define DLEN_10 0x00000800
883 #define DLEN_11 0x00001000
884 #define DLEN_12 0x00001800
885 #define DLEN_13 0x00002000
886 #define DLEN_14 0x00002800
887 #define DLEN_15 0x00003000
888 #define DLEN_16 0x00003800
889 #define POL 0x0000C000
894 #define FLD 0x00000400
895 #define FT_ERR 0x00000800
896 #define OVR 0x00001000
897 #define UNDR 0x00002000
898 #define ERR_DET 0x00004000
899 #define ERR_NCOR 0x00008000
905 #define CTYPE 0x00000040
907 #define PCAP8 0x00000080
908 #define PCAP16 0x00000100
909 #define PCAP32 0x00000200
910 #define PCAPWR 0x00000400
911 #define PCAPRD 0x00000800
912 #define PMAP 0x00007000
919 #define TIMEN0 0x0001
920 #define TIMEN1 0x0002
921 #define TIMEN2 0x0004
922 #define TIMEN3 0x0008
923 #define TIMEN4 0x0010
924 #define TIMEN5 0x0020
925 #define TIMEN6 0x0040
926 #define TIMEN7 0x0080
927 #define TIMEN8 0x0001
928 #define TIMEN9 0x0002
929 #define TIMEN10 0x0004
930 #define TIMEN11 0x0008
932 #define TIMEN0_P 0x00
933 #define TIMEN1_P 0x01
934 #define TIMEN2_P 0x02
935 #define TIMEN3_P 0x03
936 #define TIMEN4_P 0x04
937 #define TIMEN5_P 0x05
938 #define TIMEN6_P 0x06
939 #define TIMEN7_P 0x07
940 #define TIMEN8_P 0x00
941 #define TIMEN9_P 0x01
942 #define TIMEN10_P 0x02
943 #define TIMEN11_P 0x03
946 #define TIMDIS0 0x0001
947 #define TIMDIS1 0x0002
948 #define TIMDIS2 0x0004
949 #define TIMDIS3 0x0008
950 #define TIMDIS4 0x0010
951 #define TIMDIS5 0x0020
952 #define TIMDIS6 0x0040
953 #define TIMDIS7 0x0080
954 #define TIMDIS8 0x0001
955 #define TIMDIS9 0x0002
956 #define TIMDIS10 0x0004
957 #define TIMDIS11 0x0008
959 #define TIMDIS0_P 0x00
960 #define TIMDIS1_P 0x01
961 #define TIMDIS2_P 0x02
962 #define TIMDIS3_P 0x03
963 #define TIMDIS4_P 0x04
964 #define TIMDIS5_P 0x05
965 #define TIMDIS6_P 0x06
966 #define TIMDIS7_P 0x07
967 #define TIMDIS8_P 0x00
968 #define TIMDIS9_P 0x01
969 #define TIMDIS10_P 0x02
970 #define TIMDIS11_P 0x03
973 #define TIMIL0 0x00000001
974 #define TIMIL1 0x00000002
975 #define TIMIL2 0x00000004
976 #define TIMIL3 0x00000008
977 #define TIMIL4 0x00010000
978 #define TIMIL5 0x00020000
979 #define TIMIL6 0x00040000
980 #define TIMIL7 0x00080000
981 #define TIMIL8 0x0001
982 #define TIMIL9 0x0002
983 #define TIMIL10 0x0004
984 #define TIMIL11 0x0008
985 #define TOVF_ERR0 0x00000010
986 #define TOVF_ERR1 0x00000020
987 #define TOVF_ERR2 0x00000040
988 #define TOVF_ERR3 0x00000080
989 #define TOVF_ERR4 0x00100000
990 #define TOVF_ERR5 0x00200000
991 #define TOVF_ERR6 0x00400000
992 #define TOVF_ERR7 0x00800000
993 #define TOVF_ERR8 0x0010
994 #define TOVF_ERR9 0x0020
995 #define TOVF_ERR10 0x0040
996 #define TOVF_ERR11 0x0080
997 #define TRUN0 0x00001000
998 #define TRUN1 0x00002000
999 #define TRUN2 0x00004000
1000 #define TRUN3 0x00008000
1001 #define TRUN4 0x10000000
1002 #define TRUN5 0x20000000
1003 #define TRUN6 0x40000000
1004 #define TRUN7 0x80000000
1005 #define TRUN8 0x1000
1006 #define TRUN9 0x2000
1007 #define TRUN10 0x4000
1008 #define TRUN11 0x8000
1010 #define TIMIL0_P 0x00
1011 #define TIMIL1_P 0x01
1012 #define TIMIL2_P 0x02
1013 #define TIMIL3_P 0x03
1014 #define TIMIL4_P 0x10
1015 #define TIMIL5_P 0x11
1016 #define TIMIL6_P 0x12
1017 #define TIMIL7_P 0x13
1018 #define TIMIL8_P 0x00
1019 #define TIMIL9_P 0x01
1020 #define TIMIL10_P 0x02
1021 #define TIMIL11_P 0x03
1022 #define TOVF_ERR0_P 0x04
1023 #define TOVF_ERR1_P 0x05
1024 #define TOVF_ERR2_P 0x06
1025 #define TOVF_ERR3_P 0x07
1026 #define TOVF_ERR4_P 0x14
1027 #define TOVF_ERR5_P 0x15
1028 #define TOVF_ERR6_P 0x16
1029 #define TOVF_ERR7_P 0x17
1030 #define TOVF_ERR8_P 0x04
1031 #define TOVF_ERR9_P 0x05
1032 #define TOVF_ERR10_P 0x06
1033 #define TOVF_ERR11_P 0x07
1034 #define TRUN0_P 0x0C
1035 #define TRUN1_P 0x0D
1036 #define TRUN2_P 0x0E
1037 #define TRUN3_P 0x0F
1038 #define TRUN4_P 0x1C
1039 #define TRUN5_P 0x1D
1040 #define TRUN6_P 0x1E
1041 #define TRUN7_P 0x1F
1042 #define TRUN8_P 0x0C
1043 #define TRUN9_P 0x0D
1044 #define TRUN10_P 0x0E
1045 #define TRUN11_P 0x0F
1048 #define TOVL_ERR0 TOVF_ERR0
1049 #define TOVL_ERR1 TOVF_ERR1
1050 #define TOVL_ERR2 TOVF_ERR2
1051 #define TOVL_ERR3 TOVF_ERR3
1052 #define TOVL_ERR4 TOVF_ERR4
1053 #define TOVL_ERR5 TOVF_ERR5
1054 #define TOVL_ERR6 TOVF_ERR6
1055 #define TOVL_ERR7 TOVF_ERR7
1056 #define TOVL_ERR8 TOVF_ERR8
1057 #define TOVL_ERR9 TOVF_ERR9
1058 #define TOVL_ERR10 TOVF_ERR10
1059 #define TOVL_ERR11 TOVF_ERR11
1060 #define TOVL_ERR0_P TOVF_ERR0_P
1061 #define TOVL_ERR1_P TOVF_ERR1_P
1062 #define TOVL_ERR2_P TOVF_ERR2_P
1063 #define TOVL_ERR3_P TOVF_ERR3_P
1064 #define TOVL_ERR4_P TOVF_ERR4_P
1065 #define TOVL_ERR5_P TOVF_ERR5_P
1066 #define TOVL_ERR6_P TOVF_ERR6_P
1067 #define TOVL_ERR7_P TOVF_ERR7_P
1068 #define TOVL_ERR8_P TOVF_ERR8_P
1069 #define TOVL_ERR9_P TOVF_ERR9_P
1070 #define TOVL_ERR10_P TOVF_ERR10_P
1071 #define TOVL_ERR11_P TOVF_ERR11_P
1074 #define PWM_OUT 0x0001
1075 #define WDTH_CAP 0x0002
1076 #define EXT_CLK 0x0003
1077 #define PULSE_HI 0x0004
1078 #define PERIOD_CNT 0x0008
1079 #define IRQ_ENA 0x0010
1080 #define TIN_SEL 0x0020
1081 #define OUT_DIS 0x0040
1082 #define CLK_SEL 0x0080
1083 #define TOGGLE_HI 0x0100
1084 #define EMU_RUN 0x0200
1085 #define ERR_TYP(x) ((x & 0x03) << 14)
1087 #define TMODE_P0 0x00
1088 #define TMODE_P1 0x01
1089 #define PULSE_HI_P 0x02
1090 #define PERIOD_CNT_P 0x03
1091 #define IRQ_ENA_P 0x04
1092 #define TIN_SEL_P 0x05
1093 #define OUT_DIS_P 0x06
1094 #define CLK_SEL_P 0x07
1095 #define TOGGLE_HI_P 0x08
1096 #define EMU_RUN_P 0x09
1097 #define ERR_TYP_P0 0x0E
1098 #define ERR_TYP_P1 0x0F
1103 #define AMCKEN 0x0001
1104 #define AMBEN_B0 0x0002
1105 #define AMBEN_B0_B1 0x0004
1106 #define AMBEN_B0_B1_B2 0x0006
1107 #define AMBEN_ALL 0x0008
1108 #define B0_PEN 0x0010
1109 #define B1_PEN 0x0020
1110 #define B2_PEN 0x0040
1111 #define B3_PEN 0x0080
1114 #define AMCKEN_P 0x00000000
1115 #define AMBEN_P0 0x00000001
1116 #define AMBEN_P1 0x00000002
1117 #define AMBEN_P2 0x00000003
1118 #define B0_PEN_P 0x004
1119 #define B1_PEN_P 0x005
1120 #define B2_PEN_P 0x006
1121 #define B3_PEN_P 0x007
1124 #define B0RDYEN 0x00000001
1125 #define B0RDYPOL 0x00000002
1126 #define B0TT_1 0x00000004
1127 #define B0TT_2 0x00000008
1128 #define B0TT_3 0x0000000C
1129 #define B0TT_4 0x00000000
1130 #define B0ST_1 0x00000010
1131 #define B0ST_2 0x00000020
1132 #define B0ST_3 0x00000030
1133 #define B0ST_4 0x00000000
1134 #define B0HT_1 0x00000040
1135 #define B0HT_2 0x00000080
1136 #define B0HT_3 0x000000C0
1137 #define B0HT_0 0x00000000
1138 #define B0RAT_1 0x00000100
1139 #define B0RAT_2 0x00000200
1140 #define B0RAT_3 0x00000300
1141 #define B0RAT_4 0x00000400
1142 #define B0RAT_5 0x00000500
1143 #define B0RAT_6 0x00000600
1144 #define B0RAT_7 0x00000700
1145 #define B0RAT_8 0x00000800
1146 #define B0RAT_9 0x00000900
1147 #define B0RAT_10 0x00000A00
1148 #define B0RAT_11 0x00000B00
1149 #define B0RAT_12 0x00000C00
1150 #define B0RAT_13 0x00000D00
1151 #define B0RAT_14 0x00000E00
1152 #define B0RAT_15 0x00000F00
1153 #define B0WAT_1 0x00001000
1154 #define B0WAT_2 0x00002000
1155 #define B0WAT_3 0x00003000
1156 #define B0WAT_4 0x00004000
1157 #define B0WAT_5 0x00005000
1158 #define B0WAT_6 0x00006000
1159 #define B0WAT_7 0x00007000
1160 #define B0WAT_8 0x00008000
1161 #define B0WAT_9 0x00009000
1162 #define B0WAT_10 0x0000A000
1163 #define B0WAT_11 0x0000B000
1164 #define B0WAT_12 0x0000C000
1165 #define B0WAT_13 0x0000D000
1166 #define B0WAT_14 0x0000E000
1167 #define B0WAT_15 0x0000F000
1168 #define B1RDYEN 0x00010000
1169 #define B1RDYPOL 0x00020000
1170 #define B1TT_1 0x00040000
1171 #define B1TT_2 0x00080000
1172 #define B1TT_3 0x000C0000
1173 #define B1TT_4 0x00000000
1174 #define B1ST_1 0x00100000
1175 #define B1ST_2 0x00200000
1176 #define B1ST_3 0x00300000
1177 #define B1ST_4 0x00000000
1178 #define B1HT_1 0x00400000
1179 #define B1HT_2 0x00800000
1180 #define B1HT_3 0x00C00000
1181 #define B1HT_0 0x00000000
1182 #define B1RAT_1 0x01000000
1183 #define B1RAT_2 0x02000000
1184 #define B1RAT_3 0x03000000
1185 #define B1RAT_4 0x04000000
1186 #define B1RAT_5 0x05000000
1187 #define B1RAT_6 0x06000000
1188 #define B1RAT_7 0x07000000
1189 #define B1RAT_8 0x08000000
1190 #define B1RAT_9 0x09000000
1191 #define B1RAT_10 0x0A000000
1192 #define B1RAT_11 0x0B000000
1193 #define B1RAT_12 0x0C000000
1194 #define B1RAT_13 0x0D000000
1195 #define B1RAT_14 0x0E000000
1196 #define B1RAT_15 0x0F000000
1197 #define B1WAT_1 0x10000000
1198 #define B1WAT_2 0x20000000
1199 #define B1WAT_3 0x30000000
1200 #define B1WAT_4 0x40000000
1201 #define B1WAT_5 0x50000000
1202 #define B1WAT_6 0x60000000
1203 #define B1WAT_7 0x70000000
1204 #define B1WAT_8 0x80000000
1205 #define B1WAT_9 0x90000000
1206 #define B1WAT_10 0xA0000000
1207 #define B1WAT_11 0xB0000000
1208 #define B1WAT_12 0xC0000000
1209 #define B1WAT_13 0xD0000000
1210 #define B1WAT_14 0xE0000000
1211 #define B1WAT_15 0xF0000000
1214 #define B2RDYEN 0x00000001
1215 #define B2RDYPOL 0x00000002
1216 #define B2TT_1 0x00000004
1217 #define B2TT_2 0x00000008
1218 #define B2TT_3 0x0000000C
1219 #define B2TT_4 0x00000000
1220 #define B2ST_1 0x00000010
1221 #define B2ST_2 0x00000020
1222 #define B2ST_3 0x00000030
1223 #define B2ST_4 0x00000000
1224 #define B2HT_1 0x00000040
1225 #define B2HT_2 0x00000080
1226 #define B2HT_3 0x000000C0
1227 #define B2HT_0 0x00000000
1228 #define B2RAT_1 0x00000100
1229 #define B2RAT_2 0x00000200
1230 #define B2RAT_3 0x00000300
1231 #define B2RAT_4 0x00000400
1232 #define B2RAT_5 0x00000500
1233 #define B2RAT_6 0x00000600
1234 #define B2RAT_7 0x00000700
1235 #define B2RAT_8 0x00000800
1236 #define B2RAT_9 0x00000900
1237 #define B2RAT_10 0x00000A00
1238 #define B2RAT_11 0x00000B00
1239 #define B2RAT_12 0x00000C00
1240 #define B2RAT_13 0x00000D00
1241 #define B2RAT_14 0x00000E00
1242 #define B2RAT_15 0x00000F00
1243 #define B2WAT_1 0x00001000
1244 #define B2WAT_2 0x00002000
1245 #define B2WAT_3 0x00003000
1246 #define B2WAT_4 0x00004000
1247 #define B2WAT_5 0x00005000
1248 #define B2WAT_6 0x00006000
1249 #define B2WAT_7 0x00007000
1250 #define B2WAT_8 0x00008000
1251 #define B2WAT_9 0x00009000
1252 #define B2WAT_10 0x0000A000
1253 #define B2WAT_11 0x0000B000
1254 #define B2WAT_12 0x0000C000
1255 #define B2WAT_13 0x0000D000
1256 #define B2WAT_14 0x0000E000
1257 #define B2WAT_15 0x0000F000
1258 #define B3RDYEN 0x00010000
1259 #define B3RDYPOL 0x00020000
1260 #define B3TT_1 0x00040000
1261 #define B3TT_2 0x00080000
1262 #define B3TT_3 0x000C0000
1263 #define B3TT_4 0x00000000
1264 #define B3ST_1 0x00100000
1265 #define B3ST_2 0x00200000
1266 #define B3ST_3 0x00300000
1267 #define B3ST_4 0x00000000
1268 #define B3HT_1 0x00400000
1269 #define B3HT_2 0x00800000
1270 #define B3HT_3 0x00C00000
1271 #define B3HT_0 0x00000000
1272 #define B3RAT_1 0x01000000
1273 #define B3RAT_2 0x02000000
1274 #define B3RAT_3 0x03000000
1275 #define B3RAT_4 0x04000000
1276 #define B3RAT_5 0x05000000
1277 #define B3RAT_6 0x06000000
1278 #define B3RAT_7 0x07000000
1279 #define B3RAT_8 0x08000000
1280 #define B3RAT_9 0x09000000
1281 #define B3RAT_10 0x0A000000
1282 #define B3RAT_11 0x0B000000
1283 #define B3RAT_12 0x0C000000
1284 #define B3RAT_13 0x0D000000
1285 #define B3RAT_14 0x0E000000
1286 #define B3RAT_15 0x0F000000
1287 #define B3WAT_1 0x10000000
1288 #define B3WAT_2 0x20000000
1289 #define B3WAT_3 0x30000000
1290 #define B3WAT_4 0x40000000
1291 #define B3WAT_5 0x50000000
1292 #define B3WAT_6 0x60000000
1293 #define B3WAT_7 0x70000000
1294 #define B3WAT_8 0x80000000
1295 #define B3WAT_9 0x90000000
1296 #define B3WAT_10 0xA0000000
1297 #define B3WAT_11 0xB0000000
1298 #define B3WAT_12 0xC0000000
1299 #define B3WAT_13 0xD0000000
1300 #define B3WAT_14 0xE0000000
1301 #define B3WAT_15 0xF0000000
1306 #define SCTLE 0x00000001
1307 #define CL_2 0x00000008
1308 #define CL_3 0x0000000C
1309 #define PFE 0x00000010
1310 #define PFP 0x00000020
1311 #define TRAS_1 0x00000040
1312 #define TRAS_2 0x00000080
1313 #define TRAS_3 0x000000C0
1314 #define TRAS_4 0x00000100
1315 #define TRAS_5 0x00000140
1316 #define TRAS_6 0x00000180
1317 #define TRAS_7 0x000001C0
1318 #define TRAS_8 0x00000200
1319 #define TRAS_9 0x00000240
1320 #define TRAS_10 0x00000280
1321 #define TRAS_11 0x000002C0
1322 #define TRAS_12 0x00000300
1323 #define TRAS_13 0x00000340
1324 #define TRAS_14 0x00000380
1325 #define TRAS_15 0x000003C0
1326 #define TRP_1 0x00000800
1327 #define TRP_2 0x00001000
1328 #define TRP_3 0x00001800
1329 #define TRP_4 0x00002000
1330 #define TRP_5 0x00002800
1331 #define TRP_6 0x00003000
1332 #define TRP_7 0x00003800
1333 #define TRCD_1 0x00008000
1334 #define TRCD_2 0x00010000
1335 #define TRCD_3 0x00018000
1336 #define TRCD_4 0x00020000
1337 #define TRCD_5 0x00028000
1338 #define TRCD_6 0x00030000
1339 #define TRCD_7 0x00038000
1340 #define TWR_1 0x00080000
1341 #define TWR_2 0x00100000
1342 #define TWR_3 0x00180000
1343 #define PUPSD 0x00200000
1344 #define PSM 0x00400000
1345 #define PSS 0x00800000
1346 #define SRFS 0x01000000
1347 #define EBUFE 0x02000000
1348 #define FBBRW 0x04000000
1349 #define EMREN 0x10000000
1350 #define TCSR 0x20000000
1351 #define CDDBG 0x40000000
1354 #define EB0_E 0x00000001
1355 #define EB0_SZ_16 0x00000000
1356 #define EB0_SZ_32 0x00000002
1357 #define EB0_SZ_64 0x00000004
1358 #define EB0_SZ_128 0x00000006
1359 #define EB0_CAW_8 0x00000000
1360 #define EB0_CAW_9 0x00000010
1361 #define EB0_CAW_10 0x00000020
1362 #define EB0_CAW_11 0x00000030
1364 #define EB1_E 0x00000100
1365 #define EB1__SZ_16 0x00000000
1366 #define EB1__SZ_32 0x00000200
1367 #define EB1__SZ_64 0x00000400
1368 #define EB1__SZ_128 0x00000600
1369 #define EB1__CAW_8 0x00000000
1370 #define EB1__CAW_9 0x00001000
1371 #define EB1__CAW_10 0x00002000
1372 #define EB1__CAW_11 0x00003000
1374 #define EB2__E 0x00010000
1375 #define EB2__SZ_16 0x00000000
1376 #define EB2__SZ_32 0x00020000
1377 #define EB2__SZ_64 0x00040000
1378 #define EB2__SZ_128 0x00060000
1379 #define EB2__CAW_8 0x00000000
1380 #define EB2__CAW_9 0x00100000
1381 #define EB2__CAW_10 0x00200000
1382 #define EB2__CAW_11 0x00300000
1384 #define EB3__E 0x01000000
1385 #define EB3__SZ_16 0x00000000
1386 #define EB3__SZ_32 0x02000000
1387 #define EB3__SZ_64 0x04000000
1388 #define EB3__SZ_128 0x06000000
1389 #define EB3__CAW_8 0x00000000
1390 #define EB3__CAW_9 0x10000000
1391 #define EB3__CAW_10 0x20000000
1392 #define EB3__CAW_11 0x30000000
1395 #define SDCI 0x00000001
1396 #define SDSRA 0x00000002
1397 #define SDPUA 0x00000004
1398 #define SDRS 0x00000008
1399 #define SDEASE 0x00000010
1400 #define BGSTAT 0x00000020