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
25 #define SWRST 0xFFC00100
26 #define SYSCR 0xFFC00104
27 #define SIC_RVECT 0xFFC00108
28 #define SIC_IMASK 0xFFC0010C
29 #define SIC_IAR0 0xFFC00110
30 #define SIC_IAR1 0xFFC00114
31 #define SIC_IAR2 0xFFC00118
32 #define SIC_ISR 0xFFC00120
33 #define SIC_IWR 0xFFC00124
36 #define WDOG_CTL 0xFFC00200
37 #define WDOG_CNT 0xFFC00204
38 #define WDOG_STAT 0xFFC00208
41 #define RTC_STAT 0xFFC00300
42 #define RTC_ICTL 0xFFC00304
43 #define RTC_ISTAT 0xFFC00308
44 #define RTC_SWCNT 0xFFC0030C
45 #define RTC_ALARM 0xFFC00310
46 #define RTC_FAST 0xFFC00314
47 #define RTC_PREN 0xFFC00314
55 #define BFIN_UART_THR 0xFFC00400
56 #define BFIN_UART_RBR 0xFFC00400
57 #define BFIN_UART_DLL 0xFFC00400
58 #define BFIN_UART_IER 0xFFC00404
59 #define BFIN_UART_DLH 0xFFC00404
60 #define BFIN_UART_IIR 0xFFC00408
61 #define BFIN_UART_LCR 0xFFC0040C
62 #define BFIN_UART_MCR 0xFFC00410
63 #define BFIN_UART_LSR 0xFFC00414
65 #define BFIN_UART_MSR 0xFFC00418
67 #define BFIN_UART_SCR 0xFFC0041C
68 #define BFIN_UART_GCTL 0xFFC00424
71 #define SPI0_REGBASE 0xFFC00500
72 #define SPI_CTL 0xFFC00500
73 #define SPI_FLG 0xFFC00504
74 #define SPI_STAT 0xFFC00508
75 #define SPI_TDBR 0xFFC0050C
76 #define SPI_RDBR 0xFFC00510
77 #define SPI_BAUD 0xFFC00514
78 #define SPI_SHADOW 0xFFC00518
82 #define TIMER0_CONFIG 0xFFC00600
83 #define TIMER0_COUNTER 0xFFC00604
84 #define TIMER0_PERIOD 0xFFC00608
85 #define TIMER0_WIDTH 0xFFC0060C
87 #define TIMER1_CONFIG 0xFFC00610
88 #define TIMER1_COUNTER 0xFFC00614
89 #define TIMER1_PERIOD 0xFFC00618
90 #define TIMER1_WIDTH 0xFFC0061C
92 #define TIMER2_CONFIG 0xFFC00620
93 #define TIMER2_COUNTER 0xFFC00624
94 #define TIMER2_PERIOD 0xFFC00628
95 #define TIMER2_WIDTH 0xFFC0062C
97 #define TIMER_ENABLE 0xFFC00640
98 #define TIMER_DISABLE 0xFFC00644
99 #define TIMER_STATUS 0xFFC00648
103 #define FIO_FLAG_D 0xFFC00700
104 #define FIO_FLAG_C 0xFFC00704
105 #define FIO_FLAG_S 0xFFC00708
106 #define FIO_FLAG_T 0xFFC0070C
107 #define FIO_MASKA_D 0xFFC00710
108 #define FIO_MASKA_C 0xFFC00714
109 #define FIO_MASKA_S 0xFFC00718
110 #define FIO_MASKA_T 0xFFC0071C
111 #define FIO_MASKB_D 0xFFC00720
112 #define FIO_MASKB_C 0xFFC00724
113 #define FIO_MASKB_S 0xFFC00728
114 #define FIO_MASKB_T 0xFFC0072C
115 #define FIO_DIR 0xFFC00730
116 #define FIO_POLAR 0xFFC00734
117 #define FIO_EDGE 0xFFC00738
118 #define FIO_BOTH 0xFFC0073C
119 #define FIO_INEN 0xFFC00740
122 #define SPORT0_TCR1 0xFFC00800
123 #define SPORT0_TCR2 0xFFC00804
124 #define SPORT0_TCLKDIV 0xFFC00808
125 #define SPORT0_TFSDIV 0xFFC0080C
126 #define SPORT0_TX 0xFFC00810
127 #define SPORT0_RX 0xFFC00818
128 #define SPORT0_RCR1 0xFFC00820
129 #define SPORT0_RCR2 0xFFC00824
130 #define SPORT0_RCLKDIV 0xFFC00828
131 #define SPORT0_RFSDIV 0xFFC0082C
132 #define SPORT0_STAT 0xFFC00830
133 #define SPORT0_CHNL 0xFFC00834
134 #define SPORT0_MCMC1 0xFFC00838
135 #define SPORT0_MCMC2 0xFFC0083C
136 #define SPORT0_MTCS0 0xFFC00840
137 #define SPORT0_MTCS1 0xFFC00844
138 #define SPORT0_MTCS2 0xFFC00848
139 #define SPORT0_MTCS3 0xFFC0084C
140 #define SPORT0_MRCS0 0xFFC00850
141 #define SPORT0_MRCS1 0xFFC00854
142 #define SPORT0_MRCS2 0xFFC00858
143 #define SPORT0_MRCS3 0xFFC0085C
146 #define SPORT1_TCR1 0xFFC00900
147 #define SPORT1_TCR2 0xFFC00904
148 #define SPORT1_TCLKDIV 0xFFC00908
149 #define SPORT1_TFSDIV 0xFFC0090C
150 #define SPORT1_TX 0xFFC00910
151 #define SPORT1_RX 0xFFC00918
152 #define SPORT1_RCR1 0xFFC00920
153 #define SPORT1_RCR2 0xFFC00924
154 #define SPORT1_RCLKDIV 0xFFC00928
155 #define SPORT1_RFSDIV 0xFFC0092C
156 #define SPORT1_STAT 0xFFC00930
157 #define SPORT1_CHNL 0xFFC00934
158 #define SPORT1_MCMC1 0xFFC00938
159 #define SPORT1_MCMC2 0xFFC0093C
160 #define SPORT1_MTCS0 0xFFC00940
161 #define SPORT1_MTCS1 0xFFC00944
162 #define SPORT1_MTCS2 0xFFC00948
163 #define SPORT1_MTCS3 0xFFC0094C
164 #define SPORT1_MRCS0 0xFFC00950
165 #define SPORT1_MRCS1 0xFFC00954
166 #define SPORT1_MRCS2 0xFFC00958
167 #define SPORT1_MRCS3 0xFFC0095C
170 #define EBIU_AMGCTL 0xFFC00A00
171 #define EBIU_AMBCTL0 0xFFC00A04
172 #define EBIU_AMBCTL1 0xFFC00A08
176 #define EBIU_SDGCTL 0xFFC00A10
177 #define EBIU_SDBCTL 0xFFC00A14
178 #define EBIU_SDRRC 0xFFC00A18
179 #define EBIU_SDSTAT 0xFFC00A1C
182 #define DMAC_TC_PER 0xFFC00B0C
183 #define DMAC_TC_CNT 0xFFC00B10
186 #define DMA0_CONFIG 0xFFC00C08
187 #define DMA0_NEXT_DESC_PTR 0xFFC00C00
188 #define DMA0_START_ADDR 0xFFC00C04
189 #define DMA0_X_COUNT 0xFFC00C10
190 #define DMA0_Y_COUNT 0xFFC00C18
191 #define DMA0_X_MODIFY 0xFFC00C14
192 #define DMA0_Y_MODIFY 0xFFC00C1C
193 #define DMA0_CURR_DESC_PTR 0xFFC00C20
194 #define DMA0_CURR_ADDR 0xFFC00C24
195 #define DMA0_CURR_X_COUNT 0xFFC00C30
196 #define DMA0_CURR_Y_COUNT 0xFFC00C38
197 #define DMA0_IRQ_STATUS 0xFFC00C28
198 #define DMA0_PERIPHERAL_MAP 0xFFC00C2C
200 #define DMA1_CONFIG 0xFFC00C48
201 #define DMA1_NEXT_DESC_PTR 0xFFC00C40
202 #define DMA1_START_ADDR 0xFFC00C44
203 #define DMA1_X_COUNT 0xFFC00C50
204 #define DMA1_Y_COUNT 0xFFC00C58
205 #define DMA1_X_MODIFY 0xFFC00C54
206 #define DMA1_Y_MODIFY 0xFFC00C5C
207 #define DMA1_CURR_DESC_PTR 0xFFC00C60
208 #define DMA1_CURR_ADDR 0xFFC00C64
209 #define DMA1_CURR_X_COUNT 0xFFC00C70
210 #define DMA1_CURR_Y_COUNT 0xFFC00C78
211 #define DMA1_IRQ_STATUS 0xFFC00C68
212 #define DMA1_PERIPHERAL_MAP 0xFFC00C6C
214 #define DMA2_CONFIG 0xFFC00C88
215 #define DMA2_NEXT_DESC_PTR 0xFFC00C80
216 #define DMA2_START_ADDR 0xFFC00C84
217 #define DMA2_X_COUNT 0xFFC00C90
218 #define DMA2_Y_COUNT 0xFFC00C98
219 #define DMA2_X_MODIFY 0xFFC00C94
220 #define DMA2_Y_MODIFY 0xFFC00C9C
221 #define DMA2_CURR_DESC_PTR 0xFFC00CA0
222 #define DMA2_CURR_ADDR 0xFFC00CA4
223 #define DMA2_CURR_X_COUNT 0xFFC00CB0
224 #define DMA2_CURR_Y_COUNT 0xFFC00CB8
225 #define DMA2_IRQ_STATUS 0xFFC00CA8
226 #define DMA2_PERIPHERAL_MAP 0xFFC00CAC
228 #define DMA3_CONFIG 0xFFC00CC8
229 #define DMA3_NEXT_DESC_PTR 0xFFC00CC0
230 #define DMA3_START_ADDR 0xFFC00CC4
231 #define DMA3_X_COUNT 0xFFC00CD0
232 #define DMA3_Y_COUNT 0xFFC00CD8
233 #define DMA3_X_MODIFY 0xFFC00CD4
234 #define DMA3_Y_MODIFY 0xFFC00CDC
235 #define DMA3_CURR_DESC_PTR 0xFFC00CE0
236 #define DMA3_CURR_ADDR 0xFFC00CE4
237 #define DMA3_CURR_X_COUNT 0xFFC00CF0
238 #define DMA3_CURR_Y_COUNT 0xFFC00CF8
239 #define DMA3_IRQ_STATUS 0xFFC00CE8
240 #define DMA3_PERIPHERAL_MAP 0xFFC00CEC
242 #define DMA4_CONFIG 0xFFC00D08
243 #define DMA4_NEXT_DESC_PTR 0xFFC00D00
244 #define DMA4_START_ADDR 0xFFC00D04
245 #define DMA4_X_COUNT 0xFFC00D10
246 #define DMA4_Y_COUNT 0xFFC00D18
247 #define DMA4_X_MODIFY 0xFFC00D14
248 #define DMA4_Y_MODIFY 0xFFC00D1C
249 #define DMA4_CURR_DESC_PTR 0xFFC00D20
250 #define DMA4_CURR_ADDR 0xFFC00D24
251 #define DMA4_CURR_X_COUNT 0xFFC00D30
252 #define DMA4_CURR_Y_COUNT 0xFFC00D38
253 #define DMA4_IRQ_STATUS 0xFFC00D28
254 #define DMA4_PERIPHERAL_MAP 0xFFC00D2C
256 #define DMA5_CONFIG 0xFFC00D48
257 #define DMA5_NEXT_DESC_PTR 0xFFC00D40
258 #define DMA5_START_ADDR 0xFFC00D44
259 #define DMA5_X_COUNT 0xFFC00D50
260 #define DMA5_Y_COUNT 0xFFC00D58
261 #define DMA5_X_MODIFY 0xFFC00D54
262 #define DMA5_Y_MODIFY 0xFFC00D5C
263 #define DMA5_CURR_DESC_PTR 0xFFC00D60
264 #define DMA5_CURR_ADDR 0xFFC00D64
265 #define DMA5_CURR_X_COUNT 0xFFC00D70
266 #define DMA5_CURR_Y_COUNT 0xFFC00D78
267 #define DMA5_IRQ_STATUS 0xFFC00D68
268 #define DMA5_PERIPHERAL_MAP 0xFFC00D6C
270 #define DMA6_CONFIG 0xFFC00D88
271 #define DMA6_NEXT_DESC_PTR 0xFFC00D80
272 #define DMA6_START_ADDR 0xFFC00D84
273 #define DMA6_X_COUNT 0xFFC00D90
274 #define DMA6_Y_COUNT 0xFFC00D98
275 #define DMA6_X_MODIFY 0xFFC00D94
276 #define DMA6_Y_MODIFY 0xFFC00D9C
277 #define DMA6_CURR_DESC_PTR 0xFFC00DA0
278 #define DMA6_CURR_ADDR 0xFFC00DA4
279 #define DMA6_CURR_X_COUNT 0xFFC00DB0
280 #define DMA6_CURR_Y_COUNT 0xFFC00DB8
281 #define DMA6_IRQ_STATUS 0xFFC00DA8
282 #define DMA6_PERIPHERAL_MAP 0xFFC00DAC
284 #define DMA7_CONFIG 0xFFC00DC8
285 #define DMA7_NEXT_DESC_PTR 0xFFC00DC0
286 #define DMA7_START_ADDR 0xFFC00DC4
287 #define DMA7_X_COUNT 0xFFC00DD0
288 #define DMA7_Y_COUNT 0xFFC00DD8
289 #define DMA7_X_MODIFY 0xFFC00DD4
290 #define DMA7_Y_MODIFY 0xFFC00DDC
291 #define DMA7_CURR_DESC_PTR 0xFFC00DE0
292 #define DMA7_CURR_ADDR 0xFFC00DE4
293 #define DMA7_CURR_X_COUNT 0xFFC00DF0
294 #define DMA7_CURR_Y_COUNT 0xFFC00DF8
295 #define DMA7_IRQ_STATUS 0xFFC00DE8
296 #define DMA7_PERIPHERAL_MAP 0xFFC00DEC
298 #define MDMA_D1_CONFIG 0xFFC00E88
299 #define MDMA_D1_NEXT_DESC_PTR 0xFFC00E80
300 #define MDMA_D1_START_ADDR 0xFFC00E84
301 #define MDMA_D1_X_COUNT 0xFFC00E90
302 #define MDMA_D1_Y_COUNT 0xFFC00E98
303 #define MDMA_D1_X_MODIFY 0xFFC00E94
304 #define MDMA_D1_Y_MODIFY 0xFFC00E9C
305 #define MDMA_D1_CURR_DESC_PTR 0xFFC00EA0
306 #define MDMA_D1_CURR_ADDR 0xFFC00EA4
307 #define MDMA_D1_CURR_X_COUNT 0xFFC00EB0
308 #define MDMA_D1_CURR_Y_COUNT 0xFFC00EB8
309 #define MDMA_D1_IRQ_STATUS 0xFFC00EA8
310 #define MDMA_D1_PERIPHERAL_MAP 0xFFC00EAC
312 #define MDMA_S1_CONFIG 0xFFC00EC8
313 #define MDMA_S1_NEXT_DESC_PTR 0xFFC00EC0
314 #define MDMA_S1_START_ADDR 0xFFC00EC4
315 #define MDMA_S1_X_COUNT 0xFFC00ED0
316 #define MDMA_S1_Y_COUNT 0xFFC00ED8
317 #define MDMA_S1_X_MODIFY 0xFFC00ED4
318 #define MDMA_S1_Y_MODIFY 0xFFC00EDC
319 #define MDMA_S1_CURR_DESC_PTR 0xFFC00EE0
320 #define MDMA_S1_CURR_ADDR 0xFFC00EE4
321 #define MDMA_S1_CURR_X_COUNT 0xFFC00EF0
322 #define MDMA_S1_CURR_Y_COUNT 0xFFC00EF8
323 #define MDMA_S1_IRQ_STATUS 0xFFC00EE8
324 #define MDMA_S1_PERIPHERAL_MAP 0xFFC00EEC
326 #define MDMA_D0_CONFIG 0xFFC00E08
327 #define MDMA_D0_NEXT_DESC_PTR 0xFFC00E00
328 #define MDMA_D0_START_ADDR 0xFFC00E04
329 #define MDMA_D0_X_COUNT 0xFFC00E10
330 #define MDMA_D0_Y_COUNT 0xFFC00E18
331 #define MDMA_D0_X_MODIFY 0xFFC00E14
332 #define MDMA_D0_Y_MODIFY 0xFFC00E1C
333 #define MDMA_D0_CURR_DESC_PTR 0xFFC00E20
334 #define MDMA_D0_CURR_ADDR 0xFFC00E24
335 #define MDMA_D0_CURR_X_COUNT 0xFFC00E30
336 #define MDMA_D0_CURR_Y_COUNT 0xFFC00E38
337 #define MDMA_D0_IRQ_STATUS 0xFFC00E28
338 #define MDMA_D0_PERIPHERAL_MAP 0xFFC00E2C
340 #define MDMA_S0_CONFIG 0xFFC00E48
341 #define MDMA_S0_NEXT_DESC_PTR 0xFFC00E40
342 #define MDMA_S0_START_ADDR 0xFFC00E44
343 #define MDMA_S0_X_COUNT 0xFFC00E50
344 #define MDMA_S0_Y_COUNT 0xFFC00E58
345 #define MDMA_S0_X_MODIFY 0xFFC00E54
346 #define MDMA_S0_Y_MODIFY 0xFFC00E5C
347 #define MDMA_S0_CURR_DESC_PTR 0xFFC00E60
348 #define MDMA_S0_CURR_ADDR 0xFFC00E64
349 #define MDMA_S0_CURR_X_COUNT 0xFFC00E70
350 #define MDMA_S0_CURR_Y_COUNT 0xFFC00E78
351 #define MDMA_S0_IRQ_STATUS 0xFFC00E68
352 #define MDMA_S0_PERIPHERAL_MAP 0xFFC00E6C
356 #define PPI_CONTROL 0xFFC01000
357 #define PPI_STATUS 0xFFC01004
358 #define PPI_COUNT 0xFFC01008
359 #define PPI_DELAY 0xFFC0100C
360 #define PPI_FRAME 0xFFC01010
367 #define CHIPID_VERSION 0xF0000000
368 #define CHIPID_FAMILY 0x0FFFF000
369 #define CHIPID_MANUFACTURE 0x00000FFE
372 #define SYSTEM_RESET 0x0007
373 #define DOUBLE_FAULT 0x0008
374 #define RESET_DOUBLE 0x2000
375 #define RESET_WDOG 0x4000
376 #define RESET_SOFTWARE 0x8000
380 #define NOBOOT 0x0010
386 #define P0_IVG(x) ((x)-7)
387 #define P1_IVG(x) ((x)-7) << 0x4
388 #define P2_IVG(x) ((x)-7) << 0x8
389 #define P3_IVG(x) ((x)-7) << 0xC
390 #define P4_IVG(x) ((x)-7) << 0x10
391 #define P5_IVG(x) ((x)-7) << 0x14
392 #define P6_IVG(x) ((x)-7) << 0x18
393 #define P7_IVG(x) ((x)-7) << 0x1C
397 #define P8_IVG(x) ((x)-7)
398 #define P9_IVG(x) ((x)-7) << 0x4
399 #define P10_IVG(x) ((x)-7) << 0x8
400 #define P11_IVG(x) ((x)-7) << 0xC
401 #define P12_IVG(x) ((x)-7) << 0x10
402 #define P13_IVG(x) ((x)-7) << 0x14
403 #define P14_IVG(x) ((x)-7) << 0x18
404 #define P15_IVG(x) ((x)-7) << 0x1C
407 #define P16_IVG(x) ((x)-7)
408 #define P17_IVG(x) ((x)-7) << 0x4
409 #define P18_IVG(x) ((x)-7) << 0x8
410 #define P19_IVG(x) ((x)-7) << 0xC
411 #define P20_IVG(x) ((x)-7) << 0x10
412 #define P21_IVG(x) ((x)-7) << 0x14
413 #define P22_IVG(x) ((x)-7) << 0x18
414 #define P23_IVG(x) ((x)-7) << 0x1C
417 #define SIC_UNMASK_ALL 0x00000000
418 #define SIC_MASK_ALL 0xFFFFFFFF
419 #define SIC_MASK(x) (1 << (x))
420 #define SIC_UNMASK(x) (0xFFFFFFFF ^ (1 << (x)))
423 #define IWR_DISABLE_ALL 0x00000000
424 #define IWR_ENABLE_ALL 0xFFFFFFFF
425 #define IWR_ENABLE(x) (1 << (x))
426 #define IWR_DISABLE(x) (0xFFFFFFFF ^ (1 << (x)))
431 #define PORT_EN 0x00000001
432 #define PORT_DIR 0x00000002
433 #define XFR_TYPE 0x0000000C
434 #define PORT_CFG 0x00000030
435 #define FLD_SEL 0x00000040
436 #define PACK_EN 0x00000080
437 #define DMA32 0x00000100
438 #define SKIP_EN 0x00000200
439 #define SKIP_EO 0x00000400
440 #define DLENGTH 0x00003800
441 #define DLEN_8 0x0000
442 #define DLEN_10 0x0800
443 #define DLEN_11 0x1000
444 #define DLEN_12 0x1800
445 #define DLEN_13 0x2000
446 #define DLEN_14 0x2800
447 #define DLEN_15 0x3000
448 #define DLEN_16 0x3800
449 #define DLEN(x) (((x-9) & 0x07) << 11)
450 #define POL 0x0000C000
455 #define FLD 0x00000400
456 #define FT_ERR 0x00000800
457 #define OVR 0x00001000
458 #define UNDR 0x00002000
459 #define ERR_DET 0x00004000
460 #define ERR_NCOR 0x00008000
466 #define CTYPE 0x00000040
468 #define PCAP8 0x00000080
469 #define PCAP16 0x00000100
470 #define PCAP32 0x00000200
471 #define PCAPWR 0x00000400
472 #define PCAPRD 0x00000800
473 #define PMAP 0x00007000
475 #define PMAP_PPI 0x0000
476 #define PMAP_SPORT0RX 0x1000
477 #define PMAP_SPORT0TX 0x2000
478 #define PMAP_SPORT1RX 0x3000
479 #define PMAP_SPORT1TX 0x4000
480 #define PMAP_SPI 0x5000
481 #define PMAP_UARTRX 0x6000
482 #define PMAP_UARTTX 0x7000
489 #define TIMEN0 0x0001
490 #define TIMEN1 0x0002
491 #define TIMEN2 0x0004
493 #define TIMEN0_P 0x00
494 #define TIMEN1_P 0x01
495 #define TIMEN2_P 0x02
498 #define TIMDIS0 0x0001
499 #define TIMDIS1 0x0002
500 #define TIMDIS2 0x0004
502 #define TIMDIS0_P 0x00
503 #define TIMDIS1_P 0x01
504 #define TIMDIS2_P 0x02
507 #define TIMIL0 0x0001
508 #define TIMIL1 0x0002
509 #define TIMIL2 0x0004
510 #define TOVF_ERR0 0x0010
511 #define TOVF_ERR1 0x0020
512 #define TOVF_ERR2 0x0040
517 #define TIMIL0_P 0x00
518 #define TIMIL1_P 0x01
519 #define TIMIL2_P 0x02
520 #define TOVF_ERR0_P 0x04
521 #define TOVF_ERR1_P 0x05
522 #define TOVF_ERR2_P 0x06
528 #define TOVL_ERR0 TOVF_ERR0
529 #define TOVL_ERR1 TOVF_ERR1
530 #define TOVL_ERR2 TOVF_ERR2
531 #define TOVL_ERR0_P TOVF_ERR0_P
532 #define TOVL_ERR1_P TOVF_ERR1_P
533 #define TOVL_ERR2_P TOVF_ERR2_P
536 #define PWM_OUT 0x0001
537 #define WDTH_CAP 0x0002
538 #define EXT_CLK 0x0003
539 #define PULSE_HI 0x0004
540 #define PERIOD_CNT 0x0008
541 #define IRQ_ENA 0x0010
542 #define TIN_SEL 0x0020
543 #define OUT_DIS 0x0040
544 #define CLK_SEL 0x0080
545 #define TOGGLE_HI 0x0100
546 #define EMU_RUN 0x0200
547 #define ERR_TYP(x) ((x & 0x03) << 14)
549 #define TMODE_P0 0x00
550 #define TMODE_P1 0x01
551 #define PULSE_HI_P 0x02
552 #define PERIOD_CNT_P 0x03
553 #define IRQ_ENA_P 0x04
554 #define TIN_SEL_P 0x05
555 #define OUT_DIS_P 0x06
556 #define CLK_SEL_P 0x07
557 #define TOGGLE_HI_P 0x08
558 #define EMU_RUN_P 0x09
559 #define ERR_TYP_P0 0x0E
560 #define ERR_TYP_P1 0x0F
565 #define AMCKEN 0x00000001
566 #define AMBEN_NONE 0x00000000
567 #define AMBEN_B0 0x00000002
568 #define AMBEN_B0_B1 0x00000004
569 #define AMBEN_B0_B1_B2 0x00000006
570 #define AMBEN_ALL 0x00000008
573 #define AMCKEN_P 0x00000000
574 #define AMBEN_P0 0x00000001
575 #define AMBEN_P1 0x00000002
576 #define AMBEN_P2 0x00000003
579 #define B0RDYEN 0x00000001
580 #define B0RDYPOL 0x00000002
581 #define B0TT_1 0x00000004
582 #define B0TT_2 0x00000008
583 #define B0TT_3 0x0000000C
584 #define B0TT_4 0x00000000
585 #define B0ST_1 0x00000010
586 #define B0ST_2 0x00000020
587 #define B0ST_3 0x00000030
588 #define B0ST_4 0x00000000
589 #define B0HT_1 0x00000040
590 #define B0HT_2 0x00000080
591 #define B0HT_3 0x000000C0
592 #define B0HT_0 0x00000000
593 #define B0RAT_1 0x00000100
594 #define B0RAT_2 0x00000200
595 #define B0RAT_3 0x00000300
596 #define B0RAT_4 0x00000400
597 #define B0RAT_5 0x00000500
598 #define B0RAT_6 0x00000600
599 #define B0RAT_7 0x00000700
600 #define B0RAT_8 0x00000800
601 #define B0RAT_9 0x00000900
602 #define B0RAT_10 0x00000A00
603 #define B0RAT_11 0x00000B00
604 #define B0RAT_12 0x00000C00
605 #define B0RAT_13 0x00000D00
606 #define B0RAT_14 0x00000E00
607 #define B0RAT_15 0x00000F00
608 #define B0WAT_1 0x00001000
609 #define B0WAT_2 0x00002000
610 #define B0WAT_3 0x00003000
611 #define B0WAT_4 0x00004000
612 #define B0WAT_5 0x00005000
613 #define B0WAT_6 0x00006000
614 #define B0WAT_7 0x00007000
615 #define B0WAT_8 0x00008000
616 #define B0WAT_9 0x00009000
617 #define B0WAT_10 0x0000A000
618 #define B0WAT_11 0x0000B000
619 #define B0WAT_12 0x0000C000
620 #define B0WAT_13 0x0000D000
621 #define B0WAT_14 0x0000E000
622 #define B0WAT_15 0x0000F000
623 #define B1RDYEN 0x00010000
624 #define B1RDYPOL 0x00020000
625 #define B1TT_1 0x00040000
626 #define B1TT_2 0x00080000
627 #define B1TT_3 0x000C0000
628 #define B1TT_4 0x00000000
629 #define B1ST_1 0x00100000
630 #define B1ST_2 0x00200000
631 #define B1ST_3 0x00300000
632 #define B1ST_4 0x00000000
633 #define B1HT_1 0x00400000
634 #define B1HT_2 0x00800000
635 #define B1HT_3 0x00C00000
636 #define B1HT_0 0x00000000
637 #define B1RAT_1 0x01000000
638 #define B1RAT_2 0x02000000
639 #define B1RAT_3 0x03000000
640 #define B1RAT_4 0x04000000
641 #define B1RAT_5 0x05000000
642 #define B1RAT_6 0x06000000
643 #define B1RAT_7 0x07000000
644 #define B1RAT_8 0x08000000
645 #define B1RAT_9 0x09000000
646 #define B1RAT_10 0x0A000000
647 #define B1RAT_11 0x0B000000
648 #define B1RAT_12 0x0C000000
649 #define B1RAT_13 0x0D000000
650 #define B1RAT_14 0x0E000000
651 #define B1RAT_15 0x0F000000
652 #define B1WAT_1 0x10000000
653 #define B1WAT_2 0x20000000
654 #define B1WAT_3 0x30000000
655 #define B1WAT_4 0x40000000
656 #define B1WAT_5 0x50000000
657 #define B1WAT_6 0x60000000
658 #define B1WAT_7 0x70000000
659 #define B1WAT_8 0x80000000
660 #define B1WAT_9 0x90000000
661 #define B1WAT_10 0xA0000000
662 #define B1WAT_11 0xB0000000
663 #define B1WAT_12 0xC0000000
664 #define B1WAT_13 0xD0000000
665 #define B1WAT_14 0xE0000000
666 #define B1WAT_15 0xF0000000
669 #define B2RDYEN 0x00000001
670 #define B2RDYPOL 0x00000002
671 #define B2TT_1 0x00000004
672 #define B2TT_2 0x00000008
673 #define B2TT_3 0x0000000C
674 #define B2TT_4 0x00000000
675 #define B2ST_1 0x00000010
676 #define B2ST_2 0x00000020
677 #define B2ST_3 0x00000030
678 #define B2ST_4 0x00000000
679 #define B2HT_1 0x00000040
680 #define B2HT_2 0x00000080
681 #define B2HT_3 0x000000C0
682 #define B2HT_0 0x00000000
683 #define B2RAT_1 0x00000100
684 #define B2RAT_2 0x00000200
685 #define B2RAT_3 0x00000300
686 #define B2RAT_4 0x00000400
687 #define B2RAT_5 0x00000500
688 #define B2RAT_6 0x00000600
689 #define B2RAT_7 0x00000700
690 #define B2RAT_8 0x00000800
691 #define B2RAT_9 0x00000900
692 #define B2RAT_10 0x00000A00
693 #define B2RAT_11 0x00000B00
694 #define B2RAT_12 0x00000C00
695 #define B2RAT_13 0x00000D00
696 #define B2RAT_14 0x00000E00
697 #define B2RAT_15 0x00000F00
698 #define B2WAT_1 0x00001000
699 #define B2WAT_2 0x00002000
700 #define B2WAT_3 0x00003000
701 #define B2WAT_4 0x00004000
702 #define B2WAT_5 0x00005000
703 #define B2WAT_6 0x00006000
704 #define B2WAT_7 0x00007000
705 #define B2WAT_8 0x00008000
706 #define B2WAT_9 0x00009000
707 #define B2WAT_10 0x0000A000
708 #define B2WAT_11 0x0000B000
709 #define B2WAT_12 0x0000C000
710 #define B2WAT_13 0x0000D000
711 #define B2WAT_14 0x0000E000
712 #define B2WAT_15 0x0000F000
713 #define B3RDYEN 0x00010000
714 #define B3RDYPOL 0x00020000
715 #define B3TT_1 0x00040000
716 #define B3TT_2 0x00080000
717 #define B3TT_3 0x000C0000
718 #define B3TT_4 0x00000000
719 #define B3ST_1 0x00100000
720 #define B3ST_2 0x00200000
721 #define B3ST_3 0x00300000
722 #define B3ST_4 0x00000000
723 #define B3HT_1 0x00400000
724 #define B3HT_2 0x00800000
725 #define B3HT_3 0x00C00000
726 #define B3HT_0 0x00000000
727 #define B3RAT_1 0x01000000
728 #define B3RAT_2 0x02000000
729 #define B3RAT_3 0x03000000
730 #define B3RAT_4 0x04000000
731 #define B3RAT_5 0x05000000
732 #define B3RAT_6 0x06000000
733 #define B3RAT_7 0x07000000
734 #define B3RAT_8 0x08000000
735 #define B3RAT_9 0x09000000
736 #define B3RAT_10 0x0A000000
737 #define B3RAT_11 0x0B000000
738 #define B3RAT_12 0x0C000000
739 #define B3RAT_13 0x0D000000
740 #define B3RAT_14 0x0E000000
741 #define B3RAT_15 0x0F000000
742 #define B3WAT_1 0x10000000
743 #define B3WAT_2 0x20000000
744 #define B3WAT_3 0x30000000
745 #define B3WAT_4 0x40000000
746 #define B3WAT_5 0x50000000
747 #define B3WAT_6 0x60000000
748 #define B3WAT_7 0x70000000
749 #define B3WAT_8 0x80000000
750 #define B3WAT_9 0x90000000
751 #define B3WAT_10 0xA0000000
752 #define B3WAT_11 0xB0000000
753 #define B3WAT_12 0xC0000000
754 #define B3WAT_13 0xD0000000
755 #define B3WAT_14 0xE0000000
756 #define B3WAT_15 0xF0000000
761 #define SCTLE 0x00000001
762 #define CL_2 0x00000008
763 #define CL_3 0x0000000C
764 #define PFE 0x00000010
765 #define PFP 0x00000020
766 #define PASR_ALL 0x00000000
767 #define PASR_B0_B1 0x00000010
768 #define PASR_B0 0x00000020
769 #define TRAS_1 0x00000040
770 #define TRAS_2 0x00000080
771 #define TRAS_3 0x000000C0
772 #define TRAS_4 0x00000100
773 #define TRAS_5 0x00000140
774 #define TRAS_6 0x00000180
775 #define TRAS_7 0x000001C0
776 #define TRAS_8 0x00000200
777 #define TRAS_9 0x00000240
778 #define TRAS_10 0x00000280
779 #define TRAS_11 0x000002C0
780 #define TRAS_12 0x00000300
781 #define TRAS_13 0x00000340
782 #define TRAS_14 0x00000380
783 #define TRAS_15 0x000003C0
784 #define TRP_1 0x00000800
785 #define TRP_2 0x00001000
786 #define TRP_3 0x00001800
787 #define TRP_4 0x00002000
788 #define TRP_5 0x00002800
789 #define TRP_6 0x00003000
790 #define TRP_7 0x00003800
791 #define TRCD_1 0x00008000
792 #define TRCD_2 0x00010000
793 #define TRCD_3 0x00018000
794 #define TRCD_4 0x00020000
795 #define TRCD_5 0x00028000
796 #define TRCD_6 0x00030000
797 #define TRCD_7 0x00038000
798 #define TWR_1 0x00080000
799 #define TWR_2 0x00100000
800 #define TWR_3 0x00180000
801 #define PUPSD 0x00200000
802 #define PSM 0x00400000
803 #define PSS 0x00800000
804 #define SRFS 0x01000000
805 #define EBUFE 0x02000000
806 #define FBBRW 0x04000000
807 #define EMREN 0x10000000
808 #define TCSR 0x20000000
809 #define CDDBG 0x40000000
812 #define EBE 0x00000001
813 #define EBSZ_16 0x00000000
814 #define EBSZ_32 0x00000002
815 #define EBSZ_64 0x00000004
816 #define EBSZ_128 0x00000006
817 #define EBCAW_8 0x00000000
818 #define EBCAW_9 0x00000010
819 #define EBCAW_10 0x00000020
820 #define EBCAW_11 0x00000030
823 #define SDCI 0x00000001
824 #define SDSRA 0x00000002
825 #define SDPUA 0x00000004
826 #define SDRS 0x00000008
827 #define SDEASE 0x00000010
828 #define BGSTAT 0x00000020