Go to the documentation of this file.
15 #define USB_FADDR 0xffc03800
16 #define USB_POWER 0xffc03804
17 #define USB_INTRTX 0xffc03808
18 #define USB_INTRRX 0xffc0380c
19 #define USB_INTRTXE 0xffc03810
20 #define USB_INTRRXE 0xffc03814
21 #define USB_INTRUSB 0xffc03818
22 #define USB_INTRUSBE 0xffc0381c
23 #define USB_FRAME 0xffc03820
24 #define USB_INDEX 0xffc03824
25 #define USB_TESTMODE 0xffc03828
26 #define USB_GLOBINTR 0xffc0382c
27 #define USB_GLOBAL_CTL 0xffc03830
31 #define USB_TX_MAX_PACKET 0xffc03840
32 #define USB_CSR0 0xffc03844
33 #define USB_TXCSR 0xffc03844
34 #define USB_RX_MAX_PACKET 0xffc03848
35 #define USB_RXCSR 0xffc0384c
36 #define USB_COUNT0 0xffc03850
37 #define USB_RXCOUNT 0xffc03850
38 #define USB_TXTYPE 0xffc03854
39 #define USB_NAKLIMIT0 0xffc03858
40 #define USB_TXINTERVAL 0xffc03858
41 #define USB_RXTYPE 0xffc0385c
42 #define USB_RXINTERVAL 0xffc03860
43 #define USB_TXCOUNT 0xffc03868
47 #define USB_EP0_FIFO 0xffc03880
48 #define USB_EP1_FIFO 0xffc03888
49 #define USB_EP2_FIFO 0xffc03890
50 #define USB_EP3_FIFO 0xffc03898
51 #define USB_EP4_FIFO 0xffc038a0
52 #define USB_EP5_FIFO 0xffc038a8
53 #define USB_EP6_FIFO 0xffc038b0
54 #define USB_EP7_FIFO 0xffc038b8
58 #define USB_OTG_DEV_CTL 0xffc03900
59 #define USB_OTG_VBUS_IRQ 0xffc03904
60 #define USB_OTG_VBUS_MASK 0xffc03908
64 #define USB_LINKINFO 0xffc03948
65 #define USB_VPLEN 0xffc0394c
66 #define USB_HS_EOF1 0xffc03950
67 #define USB_FS_EOF1 0xffc03954
68 #define USB_LS_EOF1 0xffc03958
72 #define USB_APHY_CNTRL 0xffc039e0
76 #define USB_APHY_CALIB 0xffc039e4
78 #define USB_APHY_CNTRL2 0xffc039e8
82 #define USB_PHY_TEST 0xffc039ec
84 #define USB_PLLOSC_CTRL 0xffc039f0
85 #define USB_SRP_CLKDIV 0xffc039f4
89 #define USB_EP_NI0_TXMAXP 0xffc03a00
90 #define USB_EP_NI0_TXCSR 0xffc03a04
91 #define USB_EP_NI0_RXMAXP 0xffc03a08
92 #define USB_EP_NI0_RXCSR 0xffc03a0c
93 #define USB_EP_NI0_RXCOUNT 0xffc03a10
94 #define USB_EP_NI0_TXTYPE 0xffc03a14
95 #define USB_EP_NI0_TXINTERVAL 0xffc03a18
96 #define USB_EP_NI0_RXTYPE 0xffc03a1c
97 #define USB_EP_NI0_RXINTERVAL 0xffc03a20
98 #define USB_EP_NI0_TXCOUNT 0xffc03a28
102 #define USB_EP_NI1_TXMAXP 0xffc03a40
103 #define USB_EP_NI1_TXCSR 0xffc03a44
104 #define USB_EP_NI1_RXMAXP 0xffc03a48
105 #define USB_EP_NI1_RXCSR 0xffc03a4c
106 #define USB_EP_NI1_RXCOUNT 0xffc03a50
107 #define USB_EP_NI1_TXTYPE 0xffc03a54
108 #define USB_EP_NI1_TXINTERVAL 0xffc03a58
109 #define USB_EP_NI1_RXTYPE 0xffc03a5c
110 #define USB_EP_NI1_RXINTERVAL 0xffc03a60
111 #define USB_EP_NI1_TXCOUNT 0xffc03a68
115 #define USB_EP_NI2_TXMAXP 0xffc03a80
116 #define USB_EP_NI2_TXCSR 0xffc03a84
117 #define USB_EP_NI2_RXMAXP 0xffc03a88
118 #define USB_EP_NI2_RXCSR 0xffc03a8c
119 #define USB_EP_NI2_RXCOUNT 0xffc03a90
120 #define USB_EP_NI2_TXTYPE 0xffc03a94
121 #define USB_EP_NI2_TXINTERVAL 0xffc03a98
122 #define USB_EP_NI2_RXTYPE 0xffc03a9c
123 #define USB_EP_NI2_RXINTERVAL 0xffc03aa0
124 #define USB_EP_NI2_TXCOUNT 0xffc03aa8
128 #define USB_EP_NI3_TXMAXP 0xffc03ac0
129 #define USB_EP_NI3_TXCSR 0xffc03ac4
130 #define USB_EP_NI3_RXMAXP 0xffc03ac8
131 #define USB_EP_NI3_RXCSR 0xffc03acc
132 #define USB_EP_NI3_RXCOUNT 0xffc03ad0
133 #define USB_EP_NI3_TXTYPE 0xffc03ad4
134 #define USB_EP_NI3_TXINTERVAL 0xffc03ad8
135 #define USB_EP_NI3_RXTYPE 0xffc03adc
136 #define USB_EP_NI3_RXINTERVAL 0xffc03ae0
137 #define USB_EP_NI3_TXCOUNT 0xffc03ae8
141 #define USB_EP_NI4_TXMAXP 0xffc03b00
142 #define USB_EP_NI4_TXCSR 0xffc03b04
143 #define USB_EP_NI4_RXMAXP 0xffc03b08
144 #define USB_EP_NI4_RXCSR 0xffc03b0c
145 #define USB_EP_NI4_RXCOUNT 0xffc03b10
146 #define USB_EP_NI4_TXTYPE 0xffc03b14
147 #define USB_EP_NI4_TXINTERVAL 0xffc03b18
148 #define USB_EP_NI4_RXTYPE 0xffc03b1c
149 #define USB_EP_NI4_RXINTERVAL 0xffc03b20
150 #define USB_EP_NI4_TXCOUNT 0xffc03b28
154 #define USB_EP_NI5_TXMAXP 0xffc03b40
155 #define USB_EP_NI5_TXCSR 0xffc03b44
156 #define USB_EP_NI5_RXMAXP 0xffc03b48
157 #define USB_EP_NI5_RXCSR 0xffc03b4c
158 #define USB_EP_NI5_RXCOUNT 0xffc03b50
159 #define USB_EP_NI5_TXTYPE 0xffc03b54
160 #define USB_EP_NI5_TXINTERVAL 0xffc03b58
161 #define USB_EP_NI5_RXTYPE 0xffc03b5c
162 #define USB_EP_NI5_RXINTERVAL 0xffc03b60
163 #define USB_EP_NI5_TXCOUNT 0xffc03b68
167 #define USB_EP_NI6_TXMAXP 0xffc03b80
168 #define USB_EP_NI6_TXCSR 0xffc03b84
169 #define USB_EP_NI6_RXMAXP 0xffc03b88
170 #define USB_EP_NI6_RXCSR 0xffc03b8c
171 #define USB_EP_NI6_RXCOUNT 0xffc03b90
172 #define USB_EP_NI6_TXTYPE 0xffc03b94
173 #define USB_EP_NI6_TXINTERVAL 0xffc03b98
174 #define USB_EP_NI6_RXTYPE 0xffc03b9c
175 #define USB_EP_NI6_RXINTERVAL 0xffc03ba0
176 #define USB_EP_NI6_TXCOUNT 0xffc03ba8
180 #define USB_EP_NI7_TXMAXP 0xffc03bc0
181 #define USB_EP_NI7_TXCSR 0xffc03bc4
182 #define USB_EP_NI7_RXMAXP 0xffc03bc8
183 #define USB_EP_NI7_RXCSR 0xffc03bcc
184 #define USB_EP_NI7_RXCOUNT 0xffc03bd0
185 #define USB_EP_NI7_TXTYPE 0xffc03bd4
186 #define USB_EP_NI7_TXINTERVAL 0xffc03bd8
187 #define USB_EP_NI7_RXTYPE 0xffc03bdc
188 #define USB_EP_NI7_RXINTERVAL 0xffc03be0
189 #define USB_EP_NI7_TXCOUNT 0xffc03be8
191 #define USB_DMA_INTERRUPT 0xffc03c00
195 #define USB_DMA0CONTROL 0xffc03c04
196 #define USB_DMA0ADDRLOW 0xffc03c08
197 #define USB_DMA0ADDRHIGH 0xffc03c0c
198 #define USB_DMA0COUNTLOW 0xffc03c10
199 #define USB_DMA0COUNTHIGH 0xffc03c14
203 #define USB_DMA1CONTROL 0xffc03c24
204 #define USB_DMA1ADDRLOW 0xffc03c28
205 #define USB_DMA1ADDRHIGH 0xffc03c2c
206 #define USB_DMA1COUNTLOW 0xffc03c30
207 #define USB_DMA1COUNTHIGH 0xffc03c34
211 #define USB_DMA2CONTROL 0xffc03c44
212 #define USB_DMA2ADDRLOW 0xffc03c48
213 #define USB_DMA2ADDRHIGH 0xffc03c4c
214 #define USB_DMA2COUNTLOW 0xffc03c50
215 #define USB_DMA2COUNTHIGH 0xffc03c54
219 #define USB_DMA3CONTROL 0xffc03c64
220 #define USB_DMA3ADDRLOW 0xffc03c68
221 #define USB_DMA3ADDRHIGH 0xffc03c6c
222 #define USB_DMA3COUNTLOW 0xffc03c70
223 #define USB_DMA3COUNTHIGH 0xffc03c74
227 #define USB_DMA4CONTROL 0xffc03c84
228 #define USB_DMA4ADDRLOW 0xffc03c88
229 #define USB_DMA4ADDRHIGH 0xffc03c8c
230 #define USB_DMA4COUNTLOW 0xffc03c90
231 #define USB_DMA4COUNTHIGH 0xffc03c94
235 #define USB_DMA5CONTROL 0xffc03ca4
236 #define USB_DMA5ADDRLOW 0xffc03ca8
237 #define USB_DMA5ADDRHIGH 0xffc03cac
238 #define USB_DMA5COUNTLOW 0xffc03cb0
239 #define USB_DMA5COUNTHIGH 0xffc03cb4
243 #define USB_DMA6CONTROL 0xffc03cc4
244 #define USB_DMA6ADDRLOW 0xffc03cc8
245 #define USB_DMA6ADDRHIGH 0xffc03ccc
246 #define USB_DMA6COUNTLOW 0xffc03cd0
247 #define USB_DMA6COUNTHIGH 0xffc03cd4
251 #define USB_DMA7CONTROL 0xffc03ce4
252 #define USB_DMA7ADDRLOW 0xffc03ce8
253 #define USB_DMA7ADDRHIGH 0xffc03cec
254 #define USB_DMA7COUNTLOW 0xffc03cf0
255 #define USB_DMA7COUNTHIGH 0xffc03cf4
259 #define FUNCTION_ADDRESS 0x7f
263 #define ENABLE_SUSPENDM 0x1
264 #define nENABLE_SUSPENDM 0x0
265 #define SUSPEND_MODE 0x2
266 #define nSUSPEND_MODE 0x0
267 #define RESUME_MODE 0x4
268 #define nRESUME_MODE 0x0
273 #define HS_ENABLE 0x20
274 #define nHS_ENABLE 0x0
275 #define SOFT_CONN 0x40
276 #define nSOFT_CONN 0x0
277 #define ISO_UPDATE 0x80
278 #define nISO_UPDATE 0x0
319 #define nEP0_TX_E 0x0
321 #define nEP1_TX_E 0x0
323 #define nEP2_TX_E 0x0
325 #define nEP3_TX_E 0x0
326 #define EP4_TX_E 0x10
327 #define nEP4_TX_E 0x0
328 #define EP5_TX_E 0x20
329 #define nEP5_TX_E 0x0
330 #define EP6_TX_E 0x40
331 #define nEP6_TX_E 0x0
332 #define EP7_TX_E 0x80
333 #define nEP7_TX_E 0x0
338 #define nEP1_RX_E 0x0
340 #define nEP2_RX_E 0x0
342 #define nEP3_RX_E 0x0
343 #define EP4_RX_E 0x10
344 #define nEP4_RX_E 0x0
345 #define EP5_RX_E 0x20
346 #define nEP5_RX_E 0x0
347 #define EP6_RX_E 0x40
348 #define nEP6_RX_E 0x0
349 #define EP7_RX_E 0x80
350 #define nEP7_RX_E 0x0
354 #define SUSPEND_B 0x1
355 #define nSUSPEND_B 0x0
357 #define nRESUME_B 0x0
358 #define RESET_OR_BABLE_B 0x4
359 #define nRESET_OR_BABLE_B 0x0
364 #define DISCON_B 0x20
365 #define nDISCON_B 0x0
366 #define SESSION_REQ_B 0x40
367 #define nSESSION_REQ_B 0x0
368 #define VBUS_ERROR_B 0x80
369 #define nVBUS_ERROR_B 0x0
373 #define SUSPEND_BE 0x1
374 #define nSUSPEND_BE 0x0
375 #define RESUME_BE 0x2
376 #define nRESUME_BE 0x0
377 #define RESET_OR_BABLE_BE 0x4
378 #define nRESET_OR_BABLE_BE 0x0
383 #define DISCON_BE 0x20
384 #define nDISCON_BE 0x0
385 #define SESSION_REQ_BE 0x40
386 #define nSESSION_REQ_BE 0x0
387 #define VBUS_ERROR_BE 0x80
388 #define nVBUS_ERROR_BE 0x0
392 #define FRAME_NUMBER 0x7ff
396 #define SELECTED_ENDPOINT 0xf
400 #define GLOBAL_ENA 0x1
401 #define nGLOBAL_ENA 0x0
402 #define EP1_TX_ENA 0x2
403 #define nEP1_TX_ENA 0x0
404 #define EP2_TX_ENA 0x4
405 #define nEP2_TX_ENA 0x0
406 #define EP3_TX_ENA 0x8
407 #define nEP3_TX_ENA 0x0
408 #define EP4_TX_ENA 0x10
409 #define nEP4_TX_ENA 0x0
410 #define EP5_TX_ENA 0x20
411 #define nEP5_TX_ENA 0x0
412 #define EP6_TX_ENA 0x40
413 #define nEP6_TX_ENA 0x0
414 #define EP7_TX_ENA 0x80
415 #define nEP7_TX_ENA 0x0
416 #define EP1_RX_ENA 0x100
417 #define nEP1_RX_ENA 0x0
418 #define EP2_RX_ENA 0x200
419 #define nEP2_RX_ENA 0x0
420 #define EP3_RX_ENA 0x400
421 #define nEP3_RX_ENA 0x0
422 #define EP4_RX_ENA 0x800
423 #define nEP4_RX_ENA 0x0
424 #define EP5_RX_ENA 0x1000
425 #define nEP5_RX_ENA 0x0
426 #define EP6_RX_ENA 0x2000
427 #define nEP6_RX_ENA 0x0
428 #define EP7_RX_ENA 0x4000
429 #define nEP7_RX_ENA 0x0
436 #define nHOST_REQ 0x0
437 #define HOST_MODE 0x4
438 #define nHOST_MODE 0x0
447 #define B_DEVICE 0x80
448 #define nB_DEVICE 0x0
452 #define DRIVE_VBUS_ON 0x1
453 #define nDRIVE_VBUS_ON 0x0
454 #define DRIVE_VBUS_OFF 0x2
455 #define nDRIVE_VBUS_OFF 0x0
456 #define CHRG_VBUS_START 0x4
457 #define nCHRG_VBUS_START 0x0
458 #define CHRG_VBUS_END 0x8
459 #define nCHRG_VBUS_END 0x0
460 #define DISCHRG_VBUS_START 0x10
461 #define nDISCHRG_VBUS_START 0x0
462 #define DISCHRG_VBUS_END 0x20
463 #define nDISCHRG_VBUS_END 0x0
467 #define DRIVE_VBUS_ON_ENA 0x1
468 #define nDRIVE_VBUS_ON_ENA 0x0
469 #define DRIVE_VBUS_OFF_ENA 0x2
470 #define nDRIVE_VBUS_OFF_ENA 0x0
471 #define CHRG_VBUS_START_ENA 0x4
472 #define nCHRG_VBUS_START_ENA 0x0
473 #define CHRG_VBUS_END_ENA 0x8
474 #define nCHRG_VBUS_END_ENA 0x0
475 #define DISCHRG_VBUS_START_ENA 0x10
476 #define nDISCHRG_VBUS_START_ENA 0x0
477 #define DISCHRG_VBUS_END_ENA 0x20
478 #define nDISCHRG_VBUS_END_ENA 0x0
483 #define nRXPKTRDY 0x0
485 #define nTXPKTRDY 0x0
486 #define STALL_SENT 0x4
487 #define nSTALL_SENT 0x0
490 #define SETUPEND 0x10
491 #define nSETUPEND 0x0
492 #define SENDSTALL 0x20
493 #define nSENDSTALL 0x0
494 #define SERVICED_RXPKTRDY 0x40
495 #define nSERVICED_RXPKTRDY 0x0
496 #define SERVICED_SETUPEND 0x80
497 #define nSERVICED_SETUPEND 0x0
498 #define FLUSHFIFO 0x100
499 #define nFLUSHFIFO 0x0
500 #define STALL_RECEIVED_H 0x4
501 #define nSTALL_RECEIVED_H 0x0
502 #define SETUPPKT_H 0x8
503 #define nSETUPPKT_H 0x0
506 #define REQPKT_H 0x20
507 #define nREQPKT_H 0x0
508 #define STATUSPKT_H 0x40
509 #define nSTATUSPKT_H 0x0
510 #define NAK_TIMEOUT_H 0x80
511 #define nNAK_TIMEOUT_H 0x0
515 #define EP0_RX_COUNT 0x7f
519 #define EP0_NAK_LIMIT 0x1f
523 #define MAX_PACKET_SIZE_T 0x7ff
527 #define MAX_PACKET_SIZE_R 0x7ff
531 #define TXPKTRDY_T 0x1
532 #define nTXPKTRDY_T 0x0
533 #define FIFO_NOT_EMPTY_T 0x2
534 #define nFIFO_NOT_EMPTY_T 0x0
535 #define UNDERRUN_T 0x4
536 #define nUNDERRUN_T 0x0
537 #define FLUSHFIFO_T 0x8
538 #define nFLUSHFIFO_T 0x0
539 #define STALL_SEND_T 0x10
540 #define nSTALL_SEND_T 0x0
541 #define STALL_SENT_T 0x20
542 #define nSTALL_SENT_T 0x0
543 #define CLEAR_DATATOGGLE_T 0x40
544 #define nCLEAR_DATATOGGLE_T 0x0
545 #define INCOMPTX_T 0x80
546 #define nINCOMPTX_T 0x0
547 #define DMAREQMODE_T 0x400
548 #define nDMAREQMODE_T 0x0
549 #define FORCE_DATATOGGLE_T 0x800
550 #define nFORCE_DATATOGGLE_T 0x0
551 #define DMAREQ_ENA_T 0x1000
552 #define nDMAREQ_ENA_T 0x0
555 #define AUTOSET_T 0x8000
556 #define nAUTOSET_T 0x0
558 #define nERROR_TH 0x0
559 #define STALL_RECEIVED_TH 0x20
560 #define nSTALL_RECEIVED_TH 0x0
561 #define NAK_TIMEOUT_TH 0x80
562 #define nNAK_TIMEOUT_TH 0x0
566 #define TX_COUNT 0x1fff
570 #define RXPKTRDY_R 0x1
571 #define nRXPKTRDY_R 0x0
572 #define FIFO_FULL_R 0x2
573 #define nFIFO_FULL_R 0x0
574 #define OVERRUN_R 0x4
575 #define nOVERRUN_R 0x0
576 #define DATAERROR_R 0x8
577 #define nDATAERROR_R 0x0
578 #define FLUSHFIFO_R 0x10
579 #define nFLUSHFIFO_R 0x0
580 #define STALL_SEND_R 0x20
581 #define nSTALL_SEND_R 0x0
582 #define STALL_SENT_R 0x40
583 #define nSTALL_SENT_R 0x0
584 #define CLEAR_DATATOGGLE_R 0x80
585 #define nCLEAR_DATATOGGLE_R 0x0
586 #define INCOMPRX_R 0x100
587 #define nINCOMPRX_R 0x0
588 #define DMAREQMODE_R 0x800
589 #define nDMAREQMODE_R 0x0
590 #define DISNYET_R 0x1000
591 #define nDISNYET_R 0x0
592 #define DMAREQ_ENA_R 0x2000
593 #define nDMAREQ_ENA_R 0x0
596 #define AUTOCLEAR_R 0x8000
597 #define nAUTOCLEAR_R 0x0
599 #define nERROR_RH 0x0
600 #define REQPKT_RH 0x20
601 #define nREQPKT_RH 0x0
602 #define STALL_RECEIVED_RH 0x40
603 #define nSTALL_RECEIVED_RH 0x0
604 #define INCOMPRX_RH 0x100
605 #define nINCOMPRX_RH 0x0
606 #define DMAREQMODE_RH 0x800
607 #define nDMAREQMODE_RH 0x0
608 #define AUTOREQ_RH 0x4000
609 #define nAUTOREQ_RH 0x0
613 #define RX_COUNT 0x1fff
617 #define TARGET_EP_NO_T 0xf
618 #define PROTOCOL_T 0xc
622 #define TX_POLL_INTERVAL 0xff
626 #define TARGET_EP_NO_R 0xf
627 #define PROTOCOL_R 0xc
631 #define RX_POLL_INTERVAL 0xff
636 #define nDMA0_INT 0x0
638 #define nDMA1_INT 0x0
640 #define nDMA2_INT 0x0
642 #define nDMA3_INT 0x0
643 #define DMA4_INT 0x10
644 #define nDMA4_INT 0x0
645 #define DMA5_INT 0x20
646 #define nDMA5_INT 0x0
647 #define DMA6_INT 0x40
648 #define nDMA6_INT 0x0
649 #define DMA7_INT 0x80
650 #define nDMA7_INT 0x0
656 #define DIRECTION 0x2
657 #define nDIRECTION 0x0
663 #define BUSERROR 0x100
664 #define nBUSERROR 0x0
668 #define DMA_ADDR_HIGH 0xffff
672 #define DMA_ADDR_LOW 0xffff
676 #define DMA_COUNT_HIGH 0xffff
680 #define DMA_COUNT_LOW 0xffff