Go to the documentation of this file.
15 #define PLL_CTL 0xFFC00000
16 #define PLL_DIV 0xFFC00004
17 #define VR_CTL 0xFFC00008
18 #define PLL_STAT 0xFFC0000C
19 #define PLL_LOCKCNT 0xFFC00010
20 #define CHIPID 0xFFC00014
23 #define SWRST 0xFFC00100
24 #define SYSCR 0xFFC00104
25 #define SIC_RVECT 0xFFC00108
27 #define SIC_IMASK0 0xFFC0010C
28 #define SIC_IAR0 0xFFC00110
29 #define SIC_IAR1 0xFFC00114
30 #define SIC_IAR2 0xFFC00118
31 #define SIC_IAR3 0xFFC0011C
32 #define SIC_ISR0 0xFFC00120
33 #define SIC_IWR0 0xFFC00124
36 #define SIC_IMASK1 0xFFC0014C
37 #define SIC_IAR4 0xFFC00150
38 #define SIC_IAR5 0xFFC00154
39 #define SIC_IAR6 0xFFC00158
40 #define SIC_IAR7 0xFFC0015C
41 #define SIC_ISR1 0xFFC00160
42 #define SIC_IWR1 0xFFC00164
46 #define WDOG_CTL 0xFFC00200
47 #define WDOG_CNT 0xFFC00204
48 #define WDOG_STAT 0xFFC00208
52 #define RTC_STAT 0xFFC00300
53 #define RTC_ICTL 0xFFC00304
54 #define RTC_ISTAT 0xFFC00308
55 #define RTC_SWCNT 0xFFC0030C
56 #define RTC_ALARM 0xFFC00310
57 #define RTC_FAST 0xFFC00314
58 #define RTC_PREN 0xFFC00314
62 #define UART0_THR 0xFFC00400
63 #define UART0_RBR 0xFFC00400
64 #define UART0_DLL 0xFFC00400
65 #define UART0_IER 0xFFC00404
66 #define UART0_DLH 0xFFC00404
67 #define UART0_IIR 0xFFC00408
68 #define UART0_LCR 0xFFC0040C
69 #define UART0_MCR 0xFFC00410
70 #define UART0_LSR 0xFFC00414
71 #define UART0_MSR 0xFFC00418
72 #define UART0_SCR 0xFFC0041C
73 #define UART0_GCTL 0xFFC00424
76 #define SPI0_REGBASE 0xFFC00500
77 #define SPI0_CTL 0xFFC00500
78 #define SPI0_FLG 0xFFC00504
79 #define SPI0_STAT 0xFFC00508
80 #define SPI0_TDBR 0xFFC0050C
81 #define SPI0_RDBR 0xFFC00510
82 #define SPI0_BAUD 0xFFC00514
83 #define SPI0_SHADOW 0xFFC00518
86 #define SPI1_REGBASE 0xFFC03400
87 #define SPI1_CTL 0xFFC03400
88 #define SPI1_FLG 0xFFC03404
89 #define SPI1_STAT 0xFFC03408
90 #define SPI1_TDBR 0xFFC0340C
91 #define SPI1_RDBR 0xFFC03410
92 #define SPI1_BAUD 0xFFC03414
93 #define SPI1_SHADOW 0xFFC03418
96 #define TIMER0_CONFIG 0xFFC00600
97 #define TIMER0_COUNTER 0xFFC00604
98 #define TIMER0_PERIOD 0xFFC00608
99 #define TIMER0_WIDTH 0xFFC0060C
101 #define TIMER1_CONFIG 0xFFC00610
102 #define TIMER1_COUNTER 0xFFC00614
103 #define TIMER1_PERIOD 0xFFC00618
104 #define TIMER1_WIDTH 0xFFC0061C
106 #define TIMER2_CONFIG 0xFFC00620
107 #define TIMER2_COUNTER 0xFFC00624
108 #define TIMER2_PERIOD 0xFFC00628
109 #define TIMER2_WIDTH 0xFFC0062C
111 #define TIMER3_CONFIG 0xFFC00630
112 #define TIMER3_COUNTER 0xFFC00634
113 #define TIMER3_PERIOD 0xFFC00638
114 #define TIMER3_WIDTH 0xFFC0063C
116 #define TIMER4_CONFIG 0xFFC00640
117 #define TIMER4_COUNTER 0xFFC00644
118 #define TIMER4_PERIOD 0xFFC00648
119 #define TIMER4_WIDTH 0xFFC0064C
121 #define TIMER5_CONFIG 0xFFC00650
122 #define TIMER5_COUNTER 0xFFC00654
123 #define TIMER5_PERIOD 0xFFC00658
124 #define TIMER5_WIDTH 0xFFC0065C
126 #define TIMER6_CONFIG 0xFFC00660
127 #define TIMER6_COUNTER 0xFFC00664
128 #define TIMER6_PERIOD 0xFFC00668
129 #define TIMER6_WIDTH 0xFFC0066C
131 #define TIMER7_CONFIG 0xFFC00670
132 #define TIMER7_COUNTER 0xFFC00674
133 #define TIMER7_PERIOD 0xFFC00678
134 #define TIMER7_WIDTH 0xFFC0067C
136 #define TIMER_ENABLE 0xFFC00680
137 #define TIMER_DISABLE 0xFFC00684
138 #define TIMER_STATUS 0xFFC00688
141 #define PORTFIO 0xFFC00700
142 #define PORTFIO_CLEAR 0xFFC00704
143 #define PORTFIO_SET 0xFFC00708
144 #define PORTFIO_TOGGLE 0xFFC0070C
145 #define PORTFIO_MASKA 0xFFC00710
146 #define PORTFIO_MASKA_CLEAR 0xFFC00714
147 #define PORTFIO_MASKA_SET 0xFFC00718
148 #define PORTFIO_MASKA_TOGGLE 0xFFC0071C
149 #define PORTFIO_MASKB 0xFFC00720
150 #define PORTFIO_MASKB_CLEAR 0xFFC00724
151 #define PORTFIO_MASKB_SET 0xFFC00728
152 #define PORTFIO_MASKB_TOGGLE 0xFFC0072C
153 #define PORTFIO_DIR 0xFFC00730
154 #define PORTFIO_POLAR 0xFFC00734
155 #define PORTFIO_EDGE 0xFFC00738
156 #define PORTFIO_BOTH 0xFFC0073C
157 #define PORTFIO_INEN 0xFFC00740
160 #define SPORT0_TCR1 0xFFC00800
161 #define SPORT0_TCR2 0xFFC00804
162 #define SPORT0_TCLKDIV 0xFFC00808
163 #define SPORT0_TFSDIV 0xFFC0080C
164 #define SPORT0_TX 0xFFC00810
165 #define SPORT0_RX 0xFFC00818
166 #define SPORT0_RCR1 0xFFC00820
167 #define SPORT0_RCR2 0xFFC00824
168 #define SPORT0_RCLKDIV 0xFFC00828
169 #define SPORT0_RFSDIV 0xFFC0082C
170 #define SPORT0_STAT 0xFFC00830
171 #define SPORT0_CHNL 0xFFC00834
172 #define SPORT0_MCMC1 0xFFC00838
173 #define SPORT0_MCMC2 0xFFC0083C
174 #define SPORT0_MTCS0 0xFFC00840
175 #define SPORT0_MTCS1 0xFFC00844
176 #define SPORT0_MTCS2 0xFFC00848
177 #define SPORT0_MTCS3 0xFFC0084C
178 #define SPORT0_MRCS0 0xFFC00850
179 #define SPORT0_MRCS1 0xFFC00854
180 #define SPORT0_MRCS2 0xFFC00858
181 #define SPORT0_MRCS3 0xFFC0085C
184 #define SPORT1_TCR1 0xFFC00900
185 #define SPORT1_TCR2 0xFFC00904
186 #define SPORT1_TCLKDIV 0xFFC00908
187 #define SPORT1_TFSDIV 0xFFC0090C
188 #define SPORT1_TX 0xFFC00910
189 #define SPORT1_RX 0xFFC00918
190 #define SPORT1_RCR1 0xFFC00920
191 #define SPORT1_RCR2 0xFFC00924
192 #define SPORT1_RCLKDIV 0xFFC00928
193 #define SPORT1_RFSDIV 0xFFC0092C
194 #define SPORT1_STAT 0xFFC00930
195 #define SPORT1_CHNL 0xFFC00934
196 #define SPORT1_MCMC1 0xFFC00938
197 #define SPORT1_MCMC2 0xFFC0093C
198 #define SPORT1_MTCS0 0xFFC00940
199 #define SPORT1_MTCS1 0xFFC00944
200 #define SPORT1_MTCS2 0xFFC00948
201 #define SPORT1_MTCS3 0xFFC0094C
202 #define SPORT1_MRCS0 0xFFC00950
203 #define SPORT1_MRCS1 0xFFC00954
204 #define SPORT1_MRCS2 0xFFC00958
205 #define SPORT1_MRCS3 0xFFC0095C
208 #define EBIU_AMGCTL 0xFFC00A00
209 #define EBIU_AMBCTL0 0xFFC00A04
210 #define EBIU_AMBCTL1 0xFFC00A08
211 #define EBIU_SDGCTL 0xFFC00A10
212 #define EBIU_SDBCTL 0xFFC00A14
213 #define EBIU_SDRRC 0xFFC00A18
214 #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
530 #define PORTF_FER 0xFFC03200
531 #define PORTG_FER 0xFFC03204
532 #define PORTH_FER 0xFFC03208
533 #define BFIN_PORT_MUX 0xFFC0320C
537 #define HMDMA0_CONTROL 0xFFC03300
538 #define HMDMA0_ECINIT 0xFFC03304
539 #define HMDMA0_BCINIT 0xFFC03308
540 #define HMDMA0_ECURGENT 0xFFC0330C
541 #define HMDMA0_ECOVERFLOW 0xFFC03310
542 #define HMDMA0_ECOUNT 0xFFC03314
543 #define HMDMA0_BCOUNT 0xFFC03318
545 #define HMDMA1_CONTROL 0xFFC03340
546 #define HMDMA1_ECINIT 0xFFC03344
547 #define HMDMA1_BCINIT 0xFFC03348
548 #define HMDMA1_ECURGENT 0xFFC0334C
549 #define HMDMA1_ECOVERFLOW 0xFFC03350
550 #define HMDMA1_ECOUNT 0xFFC03354
551 #define HMDMA1_BCOUNT 0xFFC03358
555 #define PORTF_MUX 0xFFC03210
556 #define PORTG_MUX 0xFFC03214
557 #define PORTH_MUX 0xFFC03218
558 #define PORTF_DRIVE 0xFFC03220
559 #define PORTG_DRIVE 0xFFC03224
560 #define PORTH_DRIVE 0xFFC03228
561 #define PORTF_SLEW 0xFFC03230
562 #define PORTG_SLEW 0xFFC03234
563 #define PORTH_SLEW 0xFFC03238
564 #define PORTF_HYSTERESIS 0xFFC03240
565 #define PORTG_HYSTERESIS 0xFFC03244
566 #define PORTH_HYSTERESIS 0xFFC03248
567 #define MISCPORT_DRIVE 0xFFC03280
568 #define MISCPORT_SLEW 0xFFC03284
569 #define MISCPORT_HYSTERESIS 0xFFC03288
585 #define CHIPID_VERSION 0xF0000000
586 #define CHIPID_FAMILY 0x0FFFF000
587 #define CHIPID_MANUFACTURE 0x00000FFE
590 #define SYSTEM_RESET 0x0007
591 #define DOUBLE_FAULT 0x0008
592 #define RESET_DOUBLE 0x2000
593 #define RESET_WDOG 0x4000
594 #define RESET_SOFTWARE 0x8000
598 #define NOBOOT 0x0010
605 #define IRQ_PLL_WAKEUP 0x00000001
607 #define IRQ_ERROR1 0x00000002
608 #define IRQ_ERROR2 0x00000004
609 #define IRQ_RTC 0x00000008
610 #define IRQ_DMA0 0x00000010
611 #define IRQ_DMA3 0x00000020
612 #define IRQ_DMA4 0x00000040
613 #define IRQ_DMA5 0x00000080
615 #define IRQ_DMA6 0x00000100
616 #define IRQ_TWI 0x00000200
617 #define IRQ_DMA7 0x00000400
618 #define IRQ_DMA8 0x00000800
619 #define IRQ_DMA9 0x00001000
620 #define IRQ_DMA10 0x00002000
621 #define IRQ_DMA11 0x00004000
622 #define IRQ_CAN_RX 0x00008000
624 #define IRQ_CAN_TX 0x00010000
625 #define IRQ_DMA1 0x00020000
626 #define IRQ_PFA_PORTH 0x00020000
627 #define IRQ_DMA2 0x00040000
628 #define IRQ_PFB_PORTH 0x00040000
629 #define IRQ_TIMER0 0x00080000
630 #define IRQ_TIMER1 0x00100000
631 #define IRQ_TIMER2 0x00200000
632 #define IRQ_TIMER3 0x00400000
633 #define IRQ_TIMER4 0x00800000
635 #define IRQ_TIMER5 0x01000000
636 #define IRQ_TIMER6 0x02000000
637 #define IRQ_TIMER7 0x04000000
638 #define IRQ_PFA_PORTFG 0x08000000
639 #define IRQ_PFB_PORTF 0x80000000
640 #define IRQ_DMA12 0x20000000
641 #define IRQ_DMA13 0x20000000
642 #define IRQ_DMA14 0x40000000
643 #define IRQ_DMA15 0x40000000
644 #define IRQ_WDOG 0x80000000
645 #define IRQ_PFB_PORTG 0x10000000
649 #define P0_IVG(x) (((x)&0xF)-7)
650 #define P1_IVG(x) (((x)&0xF)-7) << 0x4
651 #define P2_IVG(x) (((x)&0xF)-7) << 0x8
652 #define P3_IVG(x) (((x)&0xF)-7) << 0xC
653 #define P4_IVG(x) (((x)&0xF)-7) << 0x10
654 #define P5_IVG(x) (((x)&0xF)-7) << 0x14
655 #define P6_IVG(x) (((x)&0xF)-7) << 0x18
656 #define P7_IVG(x) (((x)&0xF)-7) << 0x1C
659 #define P8_IVG(x) (((x)&0xF)-7)
660 #define P9_IVG(x) (((x)&0xF)-7) << 0x4
661 #define P10_IVG(x) (((x)&0xF)-7) << 0x8
662 #define P11_IVG(x) (((x)&0xF)-7) << 0xC
663 #define P12_IVG(x) (((x)&0xF)-7) << 0x10
664 #define P13_IVG(x) (((x)&0xF)-7) << 0x14
665 #define P14_IVG(x) (((x)&0xF)-7) << 0x18
666 #define P15_IVG(x) (((x)&0xF)-7) << 0x1C
669 #define P16_IVG(x) (((x)&0xF)-7)
670 #define P17_IVG(x) (((x)&0xF)-7) << 0x4
671 #define P18_IVG(x) (((x)&0xF)-7) << 0x8
672 #define P19_IVG(x) (((x)&0xF)-7) << 0xC
673 #define P20_IVG(x) (((x)&0xF)-7) << 0x10
674 #define P21_IVG(x) (((x)&0xF)-7) << 0x14
675 #define P22_IVG(x) (((x)&0xF)-7) << 0x18
676 #define P23_IVG(x) (((x)&0xF)-7) << 0x1C
679 #define P24_IVG(x) (((x)&0xF)-7)
680 #define P25_IVG(x) (((x)&0xF)-7) << 0x4
681 #define P26_IVG(x) (((x)&0xF)-7) << 0x8
682 #define P27_IVG(x) (((x)&0xF)-7) << 0xC
683 #define P28_IVG(x) (((x)&0xF)-7) << 0x10
684 #define P29_IVG(x) (((x)&0xF)-7) << 0x14
685 #define P30_IVG(x) (((x)&0xF)-7) << 0x18
686 #define P31_IVG(x) (((x)&0xF)-7) << 0x1C
690 #define SIC_UNMASK_ALL 0x00000000
691 #define SIC_MASK_ALL 0xFFFFFFFF
692 #define SIC_MASK(x) (1 << ((x)&0x1F))
693 #define SIC_UNMASK(x) (0xFFFFFFFF ^ (1 << ((x)&0x1F)))
696 #define IWR_DISABLE_ALL 0x00000000
697 #define IWR_ENABLE_ALL 0xFFFFFFFF
698 #define IWR_ENABLE(x) (1 << ((x)&0x1F))
699 #define IWR_DISABLE(x) (0xFFFFFFFF ^ (1 << ((x)&0x1F)))
703 #define TIMEN0 0x0001
704 #define TIMEN1 0x0002
705 #define TIMEN2 0x0004
706 #define TIMEN3 0x0008
707 #define TIMEN4 0x0010
708 #define TIMEN5 0x0020
709 #define TIMEN6 0x0040
710 #define TIMEN7 0x0080
713 #define TIMDIS0 TIMEN0
714 #define TIMDIS1 TIMEN1
715 #define TIMDIS2 TIMEN2
716 #define TIMDIS3 TIMEN3
717 #define TIMDIS4 TIMEN4
718 #define TIMDIS5 TIMEN5
719 #define TIMDIS6 TIMEN6
720 #define TIMDIS7 TIMEN7
723 #define TIMIL0 0x00000001
724 #define TIMIL1 0x00000002
725 #define TIMIL2 0x00000004
726 #define TIMIL3 0x00000008
727 #define TOVF_ERR0 0x00000010
728 #define TOVF_ERR1 0x00000020
729 #define TOVF_ERR2 0x00000040
730 #define TOVF_ERR3 0x00000080
731 #define TRUN0 0x00001000
732 #define TRUN1 0x00002000
733 #define TRUN2 0x00004000
734 #define TRUN3 0x00008000
735 #define TIMIL4 0x00010000
736 #define TIMIL5 0x00020000
737 #define TIMIL6 0x00040000
738 #define TIMIL7 0x00080000
739 #define TOVF_ERR4 0x00100000
740 #define TOVF_ERR5 0x00200000
741 #define TOVF_ERR6 0x00400000
742 #define TOVF_ERR7 0x00800000
743 #define TRUN4 0x10000000
744 #define TRUN5 0x20000000
745 #define TRUN6 0x40000000
746 #define TRUN7 0x80000000
749 #define TOVL_ERR0 TOVF_ERR0
750 #define TOVL_ERR1 TOVF_ERR1
751 #define TOVL_ERR2 TOVF_ERR2
752 #define TOVL_ERR3 TOVF_ERR3
753 #define TOVL_ERR4 TOVF_ERR4
754 #define TOVL_ERR5 TOVF_ERR5
755 #define TOVL_ERR6 TOVF_ERR6
756 #define TOVL_ERR7 TOVF_ERR7
759 #define PWM_OUT 0x0001
760 #define WDTH_CAP 0x0002
761 #define EXT_CLK 0x0003
762 #define PULSE_HI 0x0004
763 #define PERIOD_CNT 0x0008
764 #define IRQ_ENA 0x0010
765 #define TIN_SEL 0x0020
766 #define OUT_DIS 0x0040
767 #define CLK_SEL 0x0080
768 #define TOGGLE_HI 0x0100
769 #define EMU_RUN 0x0200
770 #define ERR_TYP 0xC000
774 #define AMCKEN 0x0001
775 #define AMBEN_NONE 0x0000
776 #define AMBEN_B0 0x0002
777 #define AMBEN_B0_B1 0x0004
778 #define AMBEN_B0_B1_B2 0x0006
779 #define AMBEN_ALL 0x0008
782 #define B0RDYEN 0x00000001
783 #define B0RDYPOL 0x00000002
784 #define B0TT_1 0x00000004
785 #define B0TT_2 0x00000008
786 #define B0TT_3 0x0000000C
787 #define B0TT_4 0x00000000
788 #define B0ST_1 0x00000010
789 #define B0ST_2 0x00000020
790 #define B0ST_3 0x00000030
791 #define B0ST_4 0x00000000
792 #define B0HT_1 0x00000040
793 #define B0HT_2 0x00000080
794 #define B0HT_3 0x000000C0
795 #define B0HT_0 0x00000000
796 #define B0RAT_1 0x00000100
797 #define B0RAT_2 0x00000200
798 #define B0RAT_3 0x00000300
799 #define B0RAT_4 0x00000400
800 #define B0RAT_5 0x00000500
801 #define B0RAT_6 0x00000600
802 #define B0RAT_7 0x00000700
803 #define B0RAT_8 0x00000800
804 #define B0RAT_9 0x00000900
805 #define B0RAT_10 0x00000A00
806 #define B0RAT_11 0x00000B00
807 #define B0RAT_12 0x00000C00
808 #define B0RAT_13 0x00000D00
809 #define B0RAT_14 0x00000E00
810 #define B0RAT_15 0x00000F00
811 #define B0WAT_1 0x00001000
812 #define B0WAT_2 0x00002000
813 #define B0WAT_3 0x00003000
814 #define B0WAT_4 0x00004000
815 #define B0WAT_5 0x00005000
816 #define B0WAT_6 0x00006000
817 #define B0WAT_7 0x00007000
818 #define B0WAT_8 0x00008000
819 #define B0WAT_9 0x00009000
820 #define B0WAT_10 0x0000A000
821 #define B0WAT_11 0x0000B000
822 #define B0WAT_12 0x0000C000
823 #define B0WAT_13 0x0000D000
824 #define B0WAT_14 0x0000E000
825 #define B0WAT_15 0x0000F000
827 #define B1RDYEN 0x00010000
828 #define B1RDYPOL 0x00020000
829 #define B1TT_1 0x00040000
830 #define B1TT_2 0x00080000
831 #define B1TT_3 0x000C0000
832 #define B1TT_4 0x00000000
833 #define B1ST_1 0x00100000
834 #define B1ST_2 0x00200000
835 #define B1ST_3 0x00300000
836 #define B1ST_4 0x00000000
837 #define B1HT_1 0x00400000
838 #define B1HT_2 0x00800000
839 #define B1HT_3 0x00C00000
840 #define B1HT_0 0x00000000
841 #define B1RAT_1 0x01000000
842 #define B1RAT_2 0x02000000
843 #define B1RAT_3 0x03000000
844 #define B1RAT_4 0x04000000
845 #define B1RAT_5 0x05000000
846 #define B1RAT_6 0x06000000
847 #define B1RAT_7 0x07000000
848 #define B1RAT_8 0x08000000
849 #define B1RAT_9 0x09000000
850 #define B1RAT_10 0x0A000000
851 #define B1RAT_11 0x0B000000
852 #define B1RAT_12 0x0C000000
853 #define B1RAT_13 0x0D000000
854 #define B1RAT_14 0x0E000000
855 #define B1RAT_15 0x0F000000
856 #define B1WAT_1 0x10000000
857 #define B1WAT_2 0x20000000
858 #define B1WAT_3 0x30000000
859 #define B1WAT_4 0x40000000
860 #define B1WAT_5 0x50000000
861 #define B1WAT_6 0x60000000
862 #define B1WAT_7 0x70000000
863 #define B1WAT_8 0x80000000
864 #define B1WAT_9 0x90000000
865 #define B1WAT_10 0xA0000000
866 #define B1WAT_11 0xB0000000
867 #define B1WAT_12 0xC0000000
868 #define B1WAT_13 0xD0000000
869 #define B1WAT_14 0xE0000000
870 #define B1WAT_15 0xF0000000
873 #define B2RDYEN 0x00000001
874 #define B2RDYPOL 0x00000002
875 #define B2TT_1 0x00000004
876 #define B2TT_2 0x00000008
877 #define B2TT_3 0x0000000C
878 #define B2TT_4 0x00000000
879 #define B2ST_1 0x00000010
880 #define B2ST_2 0x00000020
881 #define B2ST_3 0x00000030
882 #define B2ST_4 0x00000000
883 #define B2HT_1 0x00000040
884 #define B2HT_2 0x00000080
885 #define B2HT_3 0x000000C0
886 #define B2HT_0 0x00000000
887 #define B2RAT_1 0x00000100
888 #define B2RAT_2 0x00000200
889 #define B2RAT_3 0x00000300
890 #define B2RAT_4 0x00000400
891 #define B2RAT_5 0x00000500
892 #define B2RAT_6 0x00000600
893 #define B2RAT_7 0x00000700
894 #define B2RAT_8 0x00000800
895 #define B2RAT_9 0x00000900
896 #define B2RAT_10 0x00000A00
897 #define B2RAT_11 0x00000B00
898 #define B2RAT_12 0x00000C00
899 #define B2RAT_13 0x00000D00
900 #define B2RAT_14 0x00000E00
901 #define B2RAT_15 0x00000F00
902 #define B2WAT_1 0x00001000
903 #define B2WAT_2 0x00002000
904 #define B2WAT_3 0x00003000
905 #define B2WAT_4 0x00004000
906 #define B2WAT_5 0x00005000
907 #define B2WAT_6 0x00006000
908 #define B2WAT_7 0x00007000
909 #define B2WAT_8 0x00008000
910 #define B2WAT_9 0x00009000
911 #define B2WAT_10 0x0000A000
912 #define B2WAT_11 0x0000B000
913 #define B2WAT_12 0x0000C000
914 #define B2WAT_13 0x0000D000
915 #define B2WAT_14 0x0000E000
916 #define B2WAT_15 0x0000F000
918 #define B3RDYEN 0x00010000
919 #define B3RDYPOL 0x00020000
920 #define B3TT_1 0x00040000
921 #define B3TT_2 0x00080000
922 #define B3TT_3 0x000C0000
923 #define B3TT_4 0x00000000
924 #define B3ST_1 0x00100000
925 #define B3ST_2 0x00200000
926 #define B3ST_3 0x00300000
927 #define B3ST_4 0x00000000
928 #define B3HT_1 0x00400000
929 #define B3HT_2 0x00800000
930 #define B3HT_3 0x00C00000
931 #define B3HT_0 0x00000000
932 #define B3RAT_1 0x01000000
933 #define B3RAT_2 0x02000000
934 #define B3RAT_3 0x03000000
935 #define B3RAT_4 0x04000000
936 #define B3RAT_5 0x05000000
937 #define B3RAT_6 0x06000000
938 #define B3RAT_7 0x07000000
939 #define B3RAT_8 0x08000000
940 #define B3RAT_9 0x09000000
941 #define B3RAT_10 0x0A000000
942 #define B3RAT_11 0x0B000000
943 #define B3RAT_12 0x0C000000
944 #define B3RAT_13 0x0D000000
945 #define B3RAT_14 0x0E000000
946 #define B3RAT_15 0x0F000000
947 #define B3WAT_1 0x10000000
948 #define B3WAT_2 0x20000000
949 #define B3WAT_3 0x30000000
950 #define B3WAT_4 0x40000000
951 #define B3WAT_5 0x50000000
952 #define B3WAT_6 0x60000000
953 #define B3WAT_7 0x70000000
954 #define B3WAT_8 0x80000000
955 #define B3WAT_9 0x90000000
956 #define B3WAT_10 0xA0000000
957 #define B3WAT_11 0xB0000000
958 #define B3WAT_12 0xC0000000
959 #define B3WAT_13 0xD0000000
960 #define B3WAT_14 0xE0000000
961 #define B3WAT_15 0xF0000000
966 #define SCTLE 0x00000001
967 #define CL_2 0x00000008
968 #define CL_3 0x0000000C
969 #define PASR_ALL 0x00000000
970 #define PASR_B0_B1 0x00000010
971 #define PASR_B0 0x00000020
972 #define TRAS_1 0x00000040
973 #define TRAS_2 0x00000080
974 #define TRAS_3 0x000000C0
975 #define TRAS_4 0x00000100
976 #define TRAS_5 0x00000140
977 #define TRAS_6 0x00000180
978 #define TRAS_7 0x000001C0
979 #define TRAS_8 0x00000200
980 #define TRAS_9 0x00000240
981 #define TRAS_10 0x00000280
982 #define TRAS_11 0x000002C0
983 #define TRAS_12 0x00000300
984 #define TRAS_13 0x00000340
985 #define TRAS_14 0x00000380
986 #define TRAS_15 0x000003C0
987 #define TRP_1 0x00000800
988 #define TRP_2 0x00001000
989 #define TRP_3 0x00001800
990 #define TRP_4 0x00002000
991 #define TRP_5 0x00002800
992 #define TRP_6 0x00003000
993 #define TRP_7 0x00003800
994 #define TRCD_1 0x00008000
995 #define TRCD_2 0x00010000
996 #define TRCD_3 0x00018000
997 #define TRCD_4 0x00020000
998 #define TRCD_5 0x00028000
999 #define TRCD_6 0x00030000
1000 #define TRCD_7 0x00038000
1001 #define TWR_1 0x00080000
1002 #define TWR_2 0x00100000
1003 #define TWR_3 0x00180000
1004 #define PUPSD 0x00200000
1005 #define PSM 0x00400000
1006 #define PSS 0x00800000
1007 #define SRFS 0x01000000
1008 #define EBUFE 0x02000000
1009 #define FBBRW 0x04000000
1010 #define EMREN 0x10000000
1011 #define TCSR 0x20000000
1012 #define CDDBG 0x40000000
1016 #define EBSZ_16 0x0000
1017 #define EBSZ_32 0x0002
1018 #define EBSZ_64 0x0004
1019 #define EBSZ_128 0x0006
1020 #define EBSZ_256 0x0008
1021 #define EBSZ_512 0x000A
1022 #define EBCAW_8 0x0000
1023 #define EBCAW_9 0x0010
1024 #define EBCAW_10 0x0020
1025 #define EBCAW_11 0x0030
1029 #define SDSRA 0x0002
1030 #define SDPUA 0x0004
1032 #define SDEASE 0x0010
1033 #define BGSTAT 0x0020
1039 #define CTYPE 0x0040
1041 #define PMAP_PPI 0x0000
1042 #define PMAP_EMACRX 0x1000
1043 #define PMAP_EMACTX 0x2000
1044 #define PMAP_SPORT0RX 0x3000
1045 #define PMAP_SPORT0TX 0x4000
1046 #define PMAP_SPORT1RX 0x5000
1047 #define PMAP_SPORT1TX 0x6000
1048 #define PMAP_SPI 0x7000
1049 #define PMAP_UART0RX 0x8000
1050 #define PMAP_UART0TX 0x9000
1051 #define PMAP_UART1RX 0xA000
1052 #define PMAP_UART1TX 0xB000
1056 #define PORT_EN 0x0001
1057 #define PORT_DIR 0x0002
1058 #define XFR_TYPE 0x000C
1059 #define PORT_CFG 0x0030
1060 #define FLD_SEL 0x0040
1061 #define PACK_EN 0x0080
1062 #define DMA32 0x0100
1063 #define SKIP_EN 0x0200
1064 #define SKIP_EO 0x0400
1065 #define DLEN_8 0x0000
1066 #define DLEN_10 0x0800
1067 #define DLEN_11 0x1000
1068 #define DLEN_12 0x1800
1069 #define DLEN_13 0x2000
1070 #define DLEN_14 0x2800
1071 #define DLEN_15 0x3000
1072 #define DLEN_16 0x3800
1073 #define DLENGTH 0x3800
1079 #define FT_ERR 0x0800
1082 #define ERR_DET 0x4000
1083 #define ERR_NCOR 0x8000
1089 #define PJSE_SPORT 0x0000
1090 #define PJSE_SPI 0x0001
1092 #define PJCE(x) (((x)&0x3)<<1)
1093 #define PJCE_SPORT 0x0000
1094 #define PJCE_CAN 0x0002
1095 #define PJCE_SPI 0x0004
1098 #define PFDE_UART 0x0000
1099 #define PFDE_DMA 0x0008
1102 #define PFTE_UART 0x0000
1103 #define PFTE_TIMER 0x0010
1105 #define PFS6E 0x0020
1106 #define PFS6E_TIMER 0x0000
1107 #define PFS6E_SPI 0x0020
1109 #define PFS5E 0x0040
1110 #define PFS5E_TIMER 0x0000
1111 #define PFS5E_SPI 0x0040
1113 #define PFS4E 0x0080
1114 #define PFS4E_TIMER 0x0000
1115 #define PFS4E_SPI 0x0080
1118 #define PFFE_TIMER 0x0000
1119 #define PFFE_PPI 0x0100
1122 #define PGSE_PPI 0x0000
1123 #define PGSE_SPORT 0x0200
1126 #define PGRE_PPI 0x0000
1127 #define PGRE_SPORT 0x0400
1130 #define PGTE_PPI 0x0000
1131 #define PGTE_SPORT 0x0800
1135 #define _BOOTROM_RESET 0xEF000000
1136 #define _BOOTROM_FINAL_INIT 0xEF000002
1137 #define _BOOTROM_DO_MEMORY_DMA 0xEF000006
1138 #define _BOOTROM_BOOT_DXE_FLASH 0xEF000008
1139 #define _BOOTROM_BOOT_DXE_SPI 0xEF00000A
1140 #define _BOOTROM_BOOT_DXE_TWI 0xEF00000C
1141 #define _BOOTROM_GET_DXE_ADDRESS_FLASH 0xEF000010
1142 #define _BOOTROM_GET_DXE_ADDRESS_SPI 0xEF000012
1143 #define _BOOTROM_GET_DXE_ADDRESS_TWI 0xEF000014
1146 #define PGDE_UART PFDE_UART
1147 #define PGDE_DMA PFDE_DMA
1148 #define CKELOW SCKELOW
1152 #define HOST_CONTROL 0xffc03400
1153 #define HOST_STATUS 0xffc03404
1154 #define HOST_TIMEOUT 0xffc03408
1158 #define CNT_CONFIG 0xffc03500
1159 #define CNT_IMASK 0xffc03504
1160 #define CNT_STATUS 0xffc03508
1161 #define CNT_COMMAND 0xffc0350c
1162 #define CNT_DEBOUNCE 0xffc03510
1163 #define CNT_COUNTER 0xffc03514
1164 #define CNT_MAX 0xffc03518
1165 #define CNT_MIN 0xffc0351c
1169 #define OTP_CONTROL 0xffc03600
1170 #define OTP_BEN 0xffc03604
1171 #define OTP_STATUS 0xffc03608
1172 #define OTP_TIMING 0xffc0360c
1176 #define SECURE_SYSSWT 0xffc03620
1177 #define SECURE_CONTROL 0xffc03624
1178 #define SECURE_STATUS 0xffc03628
1182 #define OTP_DATA0 0xffc03680
1183 #define OTP_DATA1 0xffc03684
1184 #define OTP_DATA2 0xffc03688
1185 #define OTP_DATA3 0xffc0368c
1189 #define PWM_CTRL 0xffc03700
1190 #define PWM_STAT 0xffc03704
1191 #define PWM_TM 0xffc03708
1192 #define PWM_DT 0xffc0370c
1193 #define PWM_GATE 0xffc03710
1194 #define PWM_CHA 0xffc03714
1195 #define PWM_CHB 0xffc03718
1196 #define PWM_CHC 0xffc0371c
1197 #define PWM_SEG 0xffc03720
1198 #define PWM_SYNCWT 0xffc03724
1199 #define PWM_CHAL 0xffc03728
1200 #define PWM_CHBL 0xffc0372c
1201 #define PWM_CHCL 0xffc03730
1202 #define PWM_LSI 0xffc03734
1203 #define PWM_STAT2 0xffc03738
1213 #define HOST_CNTR_HOST_EN 0x1
1214 #define HOST_CNTR_nHOST_EN 0x0
1215 #define HOST_CNTR_HOST_END 0x2
1216 #define HOST_CNTR_nHOST_END 0x0
1217 #define HOST_CNTR_DATA_SIZE 0x4
1218 #define HOST_CNTR_nDATA_SIZE 0x0
1219 #define HOST_CNTR_HOST_RST 0x8
1220 #define HOST_CNTR_nHOST_RST 0x0
1221 #define HOST_CNTR_HRDY_OVR 0x20
1222 #define HOST_CNTR_nHRDY_OVR 0x0
1223 #define HOST_CNTR_INT_MODE 0x40
1224 #define HOST_CNTR_nINT_MODE 0x0
1225 #define HOST_CNTR_BT_EN 0x80
1226 #define HOST_CNTR_ nBT_EN 0x0
1227 #define HOST_CNTR_EHW 0x100
1228 #define HOST_CNTR_nEHW 0x0
1229 #define HOST_CNTR_EHR 0x200
1230 #define HOST_CNTR_nEHR 0x0
1231 #define HOST_CNTR_BDR 0x400
1232 #define HOST_CNTR_nBDR 0x0
1236 #define HOST_STAT_READY 0x1
1237 #define HOST_STAT_nREADY 0x0
1238 #define HOST_STAT_FIFOFULL 0x2
1239 #define HOST_STAT_nFIFOFULL 0x0
1240 #define HOST_STAT_FIFOEMPTY 0x4
1241 #define HOST_STAT_nFIFOEMPTY 0x0
1242 #define HOST_STAT_COMPLETE 0x8
1243 #define HOST_STAT_nCOMPLETE 0x0
1244 #define HOST_STAT_HSHK 0x10
1245 #define HOST_STAT_nHSHK 0x0
1246 #define HOST_STAT_TIMEOUT 0x20
1247 #define HOST_STAT_nTIMEOUT 0x0
1248 #define HOST_STAT_HIRQ 0x40
1249 #define HOST_STAT_nHIRQ 0x0
1250 #define HOST_STAT_ALLOW_CNFG 0x80
1251 #define HOST_STAT_nALLOW_CNFG 0x0
1252 #define HOST_STAT_DMA_DIR 0x100
1253 #define HOST_STAT_nDMA_DIR 0x0
1254 #define HOST_STAT_BTE 0x200
1255 #define HOST_STAT_nBTE 0x0
1256 #define HOST_STAT_HOSTRD_DONE 0x8000
1257 #define HOST_STAT_nHOSTRD_DONE 0x0
1261 #define HOST_COUNT_TIMEOUT 0x7ff
1266 #define nEMUDABL 0x0
1268 #define nRSTDABL 0x0
1269 #define L1IDABL 0x1c
1270 #define L1DADABL 0xe0
1271 #define L1DBDABL 0x700
1272 #define DMA0OVR 0x800
1273 #define nDMA0OVR 0x0
1274 #define DMA1OVR 0x1000
1275 #define nDMA1OVR 0x0
1276 #define EMUOVR 0x4000
1278 #define OTPSEN 0x8000
1280 #define L2DABL 0x70000
1285 #define nSECURE0 0x0
1287 #define nSECURE1 0x0
1289 #define nSECURE2 0x0
1291 #define nSECURE3 0x0
1299 #define nAFVALID 0x0
1302 #define SECSTAT 0xe0