Go to the documentation of this file.
17 #define ATAPI_CONTROL 0xffc03800
18 #define ATAPI_STATUS 0xffc03804
19 #define ATAPI_DEV_ADDR 0xffc03808
20 #define ATAPI_DEV_TXBUF 0xffc0380c
21 #define ATAPI_DEV_RXBUF 0xffc03810
22 #define ATAPI_INT_MASK 0xffc03814
23 #define ATAPI_INT_STATUS 0xffc03818
24 #define ATAPI_XFER_LEN 0xffc0381c
25 #define ATAPI_LINE_STATUS 0xffc03820
26 #define ATAPI_SM_STATE 0xffc03824
27 #define ATAPI_TERMINATE 0xffc03828
28 #define ATAPI_PIO_TFRCNT 0xffc0382c
29 #define ATAPI_DMA_TFRCNT 0xffc03830
30 #define ATAPI_UMAIN_TFRCNT 0xffc03834
31 #define ATAPI_UDMAOUT_TFRCNT 0xffc03838
32 #define ATAPI_REG_TIM_0 0xffc03840
33 #define ATAPI_PIO_TIM_0 0xffc03844
34 #define ATAPI_PIO_TIM_1 0xffc03848
35 #define ATAPI_MULTI_TIM_0 0xffc03850
36 #define ATAPI_MULTI_TIM_1 0xffc03854
37 #define ATAPI_MULTI_TIM_2 0xffc03858
38 #define ATAPI_ULTRA_TIM_0 0xffc03860
39 #define ATAPI_ULTRA_TIM_1 0xffc03864
40 #define ATAPI_ULTRA_TIM_2 0xffc03868
41 #define ATAPI_ULTRA_TIM_3 0xffc0386c
45 #define SDH_PWR_CTL 0xffc03900
46 #define SDH_CLK_CTL 0xffc03904
47 #define SDH_ARGUMENT 0xffc03908
48 #define SDH_COMMAND 0xffc0390c
49 #define SDH_RESP_CMD 0xffc03910
50 #define SDH_RESPONSE0 0xffc03914
51 #define SDH_RESPONSE1 0xffc03918
52 #define SDH_RESPONSE2 0xffc0391c
53 #define SDH_RESPONSE3 0xffc03920
54 #define SDH_DATA_TIMER 0xffc03924
55 #define SDH_DATA_LGTH 0xffc03928
56 #define SDH_DATA_CTL 0xffc0392c
57 #define SDH_DATA_CNT 0xffc03930
58 #define SDH_STATUS 0xffc03934
59 #define SDH_STATUS_CLR 0xffc03938
60 #define SDH_MASK0 0xffc0393c
61 #define SDH_MASK1 0xffc03940
62 #define SDH_FIFO_CNT 0xffc03948
63 #define SDH_FIFO 0xffc03980
64 #define SDH_E_STATUS 0xffc039c0
65 #define SDH_E_MASK 0xffc039c4
66 #define SDH_CFG 0xffc039c8
67 #define SDH_RD_WAIT_EN 0xffc039cc
68 #define SDH_PID0 0xffc039d0
69 #define SDH_PID1 0xffc039d4
70 #define SDH_PID2 0xffc039d8
71 #define SDH_PID3 0xffc039dc
72 #define SDH_PID4 0xffc039e0
73 #define SDH_PID5 0xffc039e4
74 #define SDH_PID6 0xffc039e8
75 #define SDH_PID7 0xffc039ec
79 #define USB_FADDR 0xffc03c00
80 #define USB_POWER 0xffc03c04
81 #define USB_INTRTX 0xffc03c08
82 #define USB_INTRRX 0xffc03c0c
83 #define USB_INTRTXE 0xffc03c10
84 #define USB_INTRRXE 0xffc03c14
85 #define USB_INTRUSB 0xffc03c18
86 #define USB_INTRUSBE 0xffc03c1c
87 #define USB_FRAME 0xffc03c20
88 #define USB_INDEX 0xffc03c24
89 #define USB_TESTMODE 0xffc03c28
90 #define USB_GLOBINTR 0xffc03c2c
91 #define USB_GLOBAL_CTL 0xffc03c30
95 #define USB_TX_MAX_PACKET 0xffc03c40
96 #define USB_CSR0 0xffc03c44
97 #define USB_TXCSR 0xffc03c44
98 #define USB_RX_MAX_PACKET 0xffc03c48
99 #define USB_RXCSR 0xffc03c4c
100 #define USB_COUNT0 0xffc03c50
101 #define USB_RXCOUNT 0xffc03c50
102 #define USB_TXTYPE 0xffc03c54
103 #define USB_NAKLIMIT0 0xffc03c58
104 #define USB_TXINTERVAL 0xffc03c58
105 #define USB_RXTYPE 0xffc03c5c
106 #define USB_RXINTERVAL 0xffc03c60
107 #define USB_TXCOUNT 0xffc03c68
111 #define USB_EP0_FIFO 0xffc03c80
112 #define USB_EP1_FIFO 0xffc03c88
113 #define USB_EP2_FIFO 0xffc03c90
114 #define USB_EP3_FIFO 0xffc03c98
115 #define USB_EP4_FIFO 0xffc03ca0
116 #define USB_EP5_FIFO 0xffc03ca8
117 #define USB_EP6_FIFO 0xffc03cb0
118 #define USB_EP7_FIFO 0xffc03cb8
122 #define USB_OTG_DEV_CTL 0xffc03d00
123 #define USB_OTG_VBUS_IRQ 0xffc03d04
124 #define USB_OTG_VBUS_MASK 0xffc03d08
128 #define USB_LINKINFO 0xffc03d48
129 #define USB_VPLEN 0xffc03d4c
130 #define USB_HS_EOF1 0xffc03d50
131 #define USB_FS_EOF1 0xffc03d54
132 #define USB_LS_EOF1 0xffc03d58
136 #define USB_APHY_CNTRL 0xffc03de0
140 #define USB_APHY_CALIB 0xffc03de4
141 #define USB_APHY_CNTRL2 0xffc03de8
145 #define USB_PHY_TEST 0xffc03dec
146 #define USB_PLLOSC_CTRL 0xffc03df0
147 #define USB_SRP_CLKDIV 0xffc03df4
151 #define USB_EP_NI0_TXMAXP 0xffc03e00
152 #define USB_EP_NI0_TXCSR 0xffc03e04
153 #define USB_EP_NI0_RXMAXP 0xffc03e08
154 #define USB_EP_NI0_RXCSR 0xffc03e0c
155 #define USB_EP_NI0_RXCOUNT 0xffc03e10
156 #define USB_EP_NI0_TXTYPE 0xffc03e14
157 #define USB_EP_NI0_TXINTERVAL 0xffc03e18
158 #define USB_EP_NI0_RXTYPE 0xffc03e1c
159 #define USB_EP_NI0_RXINTERVAL 0xffc03e20
163 #define USB_EP_NI0_TXCOUNT 0xffc03e28
164 #define USB_EP_NI1_TXMAXP 0xffc03e40
165 #define USB_EP_NI1_TXCSR 0xffc03e44
166 #define USB_EP_NI1_RXMAXP 0xffc03e48
167 #define USB_EP_NI1_RXCSR 0xffc03e4c
168 #define USB_EP_NI1_RXCOUNT 0xffc03e50
169 #define USB_EP_NI1_TXTYPE 0xffc03e54
170 #define USB_EP_NI1_TXINTERVAL 0xffc03e58
171 #define USB_EP_NI1_RXTYPE 0xffc03e5c
172 #define USB_EP_NI1_RXINTERVAL 0xffc03e60
176 #define USB_EP_NI1_TXCOUNT 0xffc03e68
177 #define USB_EP_NI2_TXMAXP 0xffc03e80
178 #define USB_EP_NI2_TXCSR 0xffc03e84
179 #define USB_EP_NI2_RXMAXP 0xffc03e88
180 #define USB_EP_NI2_RXCSR 0xffc03e8c
181 #define USB_EP_NI2_RXCOUNT 0xffc03e90
182 #define USB_EP_NI2_TXTYPE 0xffc03e94
183 #define USB_EP_NI2_TXINTERVAL 0xffc03e98
184 #define USB_EP_NI2_RXTYPE 0xffc03e9c
185 #define USB_EP_NI2_RXINTERVAL 0xffc03ea0
189 #define USB_EP_NI2_TXCOUNT 0xffc03ea8
190 #define USB_EP_NI3_TXMAXP 0xffc03ec0
191 #define USB_EP_NI3_TXCSR 0xffc03ec4
192 #define USB_EP_NI3_RXMAXP 0xffc03ec8
193 #define USB_EP_NI3_RXCSR 0xffc03ecc
194 #define USB_EP_NI3_RXCOUNT 0xffc03ed0
195 #define USB_EP_NI3_TXTYPE 0xffc03ed4
196 #define USB_EP_NI3_TXINTERVAL 0xffc03ed8
197 #define USB_EP_NI3_RXTYPE 0xffc03edc
198 #define USB_EP_NI3_RXINTERVAL 0xffc03ee0
202 #define USB_EP_NI3_TXCOUNT 0xffc03ee8
203 #define USB_EP_NI4_TXMAXP 0xffc03f00
204 #define USB_EP_NI4_TXCSR 0xffc03f04
205 #define USB_EP_NI4_RXMAXP 0xffc03f08
206 #define USB_EP_NI4_RXCSR 0xffc03f0c
207 #define USB_EP_NI4_RXCOUNT 0xffc03f10
208 #define USB_EP_NI4_TXTYPE 0xffc03f14
209 #define USB_EP_NI4_TXINTERVAL 0xffc03f18
210 #define USB_EP_NI4_RXTYPE 0xffc03f1c
211 #define USB_EP_NI4_RXINTERVAL 0xffc03f20
215 #define USB_EP_NI4_TXCOUNT 0xffc03f28
216 #define USB_EP_NI5_TXMAXP 0xffc03f40
217 #define USB_EP_NI5_TXCSR 0xffc03f44
218 #define USB_EP_NI5_RXMAXP 0xffc03f48
219 #define USB_EP_NI5_RXCSR 0xffc03f4c
220 #define USB_EP_NI5_RXCOUNT 0xffc03f50
221 #define USB_EP_NI5_TXTYPE 0xffc03f54
222 #define USB_EP_NI5_TXINTERVAL 0xffc03f58
223 #define USB_EP_NI5_RXTYPE 0xffc03f5c
224 #define USB_EP_NI5_RXINTERVAL 0xffc03f60
228 #define USB_EP_NI5_TXCOUNT 0xffc03f68
229 #define USB_EP_NI6_TXMAXP 0xffc03f80
230 #define USB_EP_NI6_TXCSR 0xffc03f84
231 #define USB_EP_NI6_RXMAXP 0xffc03f88
232 #define USB_EP_NI6_RXCSR 0xffc03f8c
233 #define USB_EP_NI6_RXCOUNT 0xffc03f90
234 #define USB_EP_NI6_TXTYPE 0xffc03f94
235 #define USB_EP_NI6_TXINTERVAL 0xffc03f98
236 #define USB_EP_NI6_RXTYPE 0xffc03f9c
237 #define USB_EP_NI6_RXINTERVAL 0xffc03fa0
241 #define USB_EP_NI6_TXCOUNT 0xffc03fa8
242 #define USB_EP_NI7_TXMAXP 0xffc03fc0
243 #define USB_EP_NI7_TXCSR 0xffc03fc4
244 #define USB_EP_NI7_RXMAXP 0xffc03fc8
245 #define USB_EP_NI7_RXCSR 0xffc03fcc
246 #define USB_EP_NI7_RXCOUNT 0xffc03fd0
247 #define USB_EP_NI7_TXTYPE 0xffc03fd4
248 #define USB_EP_NI7_TXINTERVAL 0xffc03fd8
249 #define USB_EP_NI7_RXTYPE 0xffc03fdc
250 #define USB_EP_NI7_RXINTERVAL 0xffc03ff0
251 #define USB_EP_NI7_TXCOUNT 0xffc03ff8
252 #define USB_DMA_INTERRUPT 0xffc04000
256 #define USB_DMA0CONTROL 0xffc04004
257 #define USB_DMA0ADDRLOW 0xffc04008
258 #define USB_DMA0ADDRHIGH 0xffc0400c
259 #define USB_DMA0COUNTLOW 0xffc04010
260 #define USB_DMA0COUNTHIGH 0xffc04014
264 #define USB_DMA1CONTROL 0xffc04024
265 #define USB_DMA1ADDRLOW 0xffc04028
266 #define USB_DMA1ADDRHIGH 0xffc0402c
267 #define USB_DMA1COUNTLOW 0xffc04030
268 #define USB_DMA1COUNTHIGH 0xffc04034
272 #define USB_DMA2CONTROL 0xffc04044
273 #define USB_DMA2ADDRLOW 0xffc04048
274 #define USB_DMA2ADDRHIGH 0xffc0404c
275 #define USB_DMA2COUNTLOW 0xffc04050
276 #define USB_DMA2COUNTHIGH 0xffc04054
280 #define USB_DMA3CONTROL 0xffc04064
281 #define USB_DMA3ADDRLOW 0xffc04068
282 #define USB_DMA3ADDRHIGH 0xffc0406c
283 #define USB_DMA3COUNTLOW 0xffc04070
284 #define USB_DMA3COUNTHIGH 0xffc04074
288 #define USB_DMA4CONTROL 0xffc04084
289 #define USB_DMA4ADDRLOW 0xffc04088
290 #define USB_DMA4ADDRHIGH 0xffc0408c
291 #define USB_DMA4COUNTLOW 0xffc04090
292 #define USB_DMA4COUNTHIGH 0xffc04094
296 #define USB_DMA5CONTROL 0xffc040a4
297 #define USB_DMA5ADDRLOW 0xffc040a8
298 #define USB_DMA5ADDRHIGH 0xffc040ac
299 #define USB_DMA5COUNTLOW 0xffc040b0
300 #define USB_DMA5COUNTHIGH 0xffc040b4
304 #define USB_DMA6CONTROL 0xffc040c4
305 #define USB_DMA6ADDRLOW 0xffc040c8
306 #define USB_DMA6ADDRHIGH 0xffc040cc
307 #define USB_DMA6COUNTLOW 0xffc040d0
308 #define USB_DMA6COUNTHIGH 0xffc040d4
312 #define USB_DMA7CONTROL 0xffc040e4
313 #define USB_DMA7ADDRLOW 0xffc040e8
314 #define USB_DMA7ADDRHIGH 0xffc040ec
315 #define USB_DMA7COUNTLOW 0xffc040f0
316 #define USB_DMA7COUNTHIGH 0xffc040f4
320 #define KPAD_CTL 0xffc04100
321 #define KPAD_PRESCALE 0xffc04104
322 #define KPAD_MSEL 0xffc04108
323 #define KPAD_ROWCOL 0xffc0410c
324 #define KPAD_STAT 0xffc04110
325 #define KPAD_SOFTEVAL 0xffc04114
336 #define KPAD_IRQMODE 0x6
337 #define KPAD_ROWEN 0x1c00
338 #define KPAD_COLEN 0xe000
342 #define KPAD_PRESCALE_VAL 0x3f
346 #define DBON_SCALE 0xff
347 #define COLDRV_SCALE 0xff00
351 #define KPAD_ROW 0xff
352 #define KPAD_COL 0xff00
357 #define KPAD_MROWCOL 0x6
358 #define KPAD_PRESSED 0x8
362 #define KPAD_SOFTEVAL_E 0x2
366 #define PIO_START 0x1
367 #define MULTI_START 0x2
368 #define ULTRA_START 0x4
370 #define IORDY_EN 0x10
371 #define FIFO_FLUSH 0x20
372 #define SOFT_RST 0x40
374 #define TFRCNT_RST 0x100
375 #define END_ON_TERM 0x200
376 #define PIO_USE_DMA 0x400
377 #define UDMAIN_FIFO_THRS 0xf000
381 #define PIO_XFER_ON 0x1
382 #define MULTI_XFER_ON 0x2
383 #define ULTRA_XFER_ON 0x4
384 #define ULTRA_IN_FL 0xf0
388 #define DEV_ADDR 0x1f
392 #define ATAPI_DEV_INT_MASK 0x1
393 #define PIO_DONE_MASK 0x2
394 #define MULTI_DONE_MASK 0x4
395 #define UDMAIN_DONE_MASK 0x8
396 #define UDMAOUT_DONE_MASK 0x10
397 #define HOST_TERM_XFER_MASK 0x20
398 #define MULTI_TERM_MASK 0x40
399 #define UDMAIN_TERM_MASK 0x80
400 #define UDMAOUT_TERM_MASK 0x100
404 #define ATAPI_DEV_INT 0x1
405 #define PIO_DONE_INT 0x2
406 #define MULTI_DONE_INT 0x4
407 #define UDMAIN_DONE_INT 0x8
408 #define UDMAOUT_DONE_INT 0x10
409 #define HOST_TERM_XFER_INT 0x20
410 #define MULTI_TERM_INT 0x40
411 #define UDMAIN_TERM_INT 0x80
412 #define UDMAOUT_TERM_INT 0x100
416 #define ATAPI_INTR 0x1
417 #define ATAPI_DASP 0x2
418 #define ATAPI_CS0N 0x4
419 #define ATAPI_CS1N 0x8
420 #define ATAPI_ADDR 0x70
421 #define ATAPI_DMAREQ 0x80
422 #define ATAPI_DMAACKN 0x100
423 #define ATAPI_DIOWN 0x200
424 #define ATAPI_DIORN 0x400
425 #define ATAPI_IORDY 0x800
429 #define PIO_CSTATE 0xf
430 #define DMA_CSTATE 0xf0
431 #define UDMAIN_CSTATE 0xf00
432 #define UDMAOUT_CSTATE 0xf000
436 #define ATAPI_HOST_TERM 0x1
441 #define TEOC_REG 0xff00
446 #define T2_REG_PIO 0xff0
447 #define T4_REG 0xf000
451 #define TEOC_REG_PIO 0xff
476 #define TCYC_TDVS 0xff00
486 #define READY_PAUSE 0xff00
490 #define FUNCTION_ADDRESS 0x7f
494 #define ENABLE_SUSPENDM 0x1
495 #define SUSPEND_MODE 0x2
496 #define RESUME_MODE 0x4
499 #define HS_ENABLE 0x20
500 #define SOFT_CONN 0x40
501 #define ISO_UPDATE 0x80
530 #define EP4_TX_E 0x10
531 #define EP5_TX_E 0x20
532 #define EP6_TX_E 0x40
533 #define EP7_TX_E 0x80
540 #define EP4_RX_E 0x10
541 #define EP5_RX_E 0x20
542 #define EP6_RX_E 0x40
543 #define EP7_RX_E 0x80
547 #define SUSPEND_B 0x1
549 #define RESET_OR_BABLE_B 0x4
552 #define DISCON_B 0x20
553 #define SESSION_REQ_B 0x40
554 #define VBUS_ERROR_B 0x80
558 #define SUSPEND_BE 0x1
559 #define RESUME_BE 0x2
560 #define RESET_OR_BABLE_BE 0x4
563 #define DISCON_BE 0x20
564 #define SESSION_REQ_BE 0x40
565 #define VBUS_ERROR_BE 0x80
569 #define FRAME_NUMBER 0x7ff
573 #define SELECTED_ENDPOINT 0xf
577 #define GLOBAL_ENA 0x1
578 #define EP1_TX_ENA 0x2
579 #define EP2_TX_ENA 0x4
580 #define EP3_TX_ENA 0x8
581 #define EP4_TX_ENA 0x10
582 #define EP5_TX_ENA 0x20
583 #define EP6_TX_ENA 0x40
584 #define EP7_TX_ENA 0x80
585 #define EP1_RX_ENA 0x100
586 #define EP2_RX_ENA 0x200
587 #define EP3_RX_ENA 0x400
588 #define EP4_RX_ENA 0x800
589 #define EP5_RX_ENA 0x1000
590 #define EP6_RX_ENA 0x2000
591 #define EP7_RX_ENA 0x4000
597 #define HOST_MODE 0x4
602 #define B_DEVICE 0x80
606 #define DRIVE_VBUS_ON 0x1
607 #define DRIVE_VBUS_OFF 0x2
608 #define CHRG_VBUS_START 0x4
609 #define CHRG_VBUS_END 0x8
610 #define DISCHRG_VBUS_START 0x10
611 #define DISCHRG_VBUS_END 0x20
615 #define DRIVE_VBUS_ON_ENA 0x1
616 #define DRIVE_VBUS_OFF_ENA 0x2
617 #define CHRG_VBUS_START_ENA 0x4
618 #define CHRG_VBUS_END_ENA 0x8
619 #define DISCHRG_VBUS_START_ENA 0x10
620 #define DISCHRG_VBUS_END_ENA 0x20
626 #define STALL_SENT 0x4
628 #define SETUPEND 0x10
629 #define SENDSTALL 0x20
630 #define SERVICED_RXPKTRDY 0x40
631 #define SERVICED_SETUPEND 0x80
632 #define FLUSHFIFO 0x100
633 #define STALL_RECEIVED_H 0x4
634 #define SETUPPKT_H 0x8
636 #define REQPKT_H 0x20
637 #define STATUSPKT_H 0x40
638 #define NAK_TIMEOUT_H 0x80
642 #define EP0_RX_COUNT 0x7f
646 #define EP0_NAK_LIMIT 0x1f
650 #define MAX_PACKET_SIZE_T 0x7ff
654 #define MAX_PACKET_SIZE_R 0x7ff
658 #define TXPKTRDY_T 0x1
659 #define FIFO_NOT_EMPTY_T 0x2
660 #define UNDERRUN_T 0x4
661 #define FLUSHFIFO_T 0x8
662 #define STALL_SEND_T 0x10
663 #define STALL_SENT_T 0x20
664 #define CLEAR_DATATOGGLE_T 0x40
665 #define INCOMPTX_T 0x80
666 #define DMAREQMODE_T 0x400
667 #define FORCE_DATATOGGLE_T 0x800
668 #define DMAREQ_ENA_T 0x1000
670 #define AUTOSET_T 0x8000
672 #define STALL_RECEIVED_TH 0x20
673 #define NAK_TIMEOUT_TH 0x80
677 #define TX_COUNT 0x1fff
681 #define RXPKTRDY_R 0x1
682 #define FIFO_FULL_R 0x2
683 #define OVERRUN_R 0x4
684 #define DATAERROR_R 0x8
685 #define FLUSHFIFO_R 0x10
686 #define STALL_SEND_R 0x20
687 #define STALL_SENT_R 0x40
688 #define CLEAR_DATATOGGLE_R 0x80
689 #define INCOMPRX_R 0x100
690 #define DMAREQMODE_R 0x800
691 #define DISNYET_R 0x1000
692 #define DMAREQ_ENA_R 0x2000
694 #define AUTOCLEAR_R 0x8000
696 #define REQPKT_RH 0x20
697 #define STALL_RECEIVED_RH 0x40
698 #define INCOMPRX_RH 0x100
699 #define DMAREQMODE_RH 0x800
700 #define AUTOREQ_RH 0x4000
704 #define RX_COUNT 0x1fff
708 #define TARGET_EP_NO_T 0xf
709 #define PROTOCOL_T 0xc
713 #define TX_POLL_INTERVAL 0xff
717 #define TARGET_EP_NO_R 0xf
718 #define PROTOCOL_R 0xc
722 #define RX_POLL_INTERVAL 0xff
730 #define DMA4_INT 0x10
731 #define DMA5_INT 0x20
732 #define DMA6_INT 0x40
733 #define DMA7_INT 0x80
738 #define DIRECTION 0x2
742 #define BUSERROR 0x100
746 #define DMA_ADDR_HIGH 0xffff
750 #define DMA_ADDR_LOW 0xffff
754 #define DMA_COUNT_HIGH 0xffff
758 #define DMA_COUNT_LOW 0xffff