23 #ifndef __USB_OTG_REGS_H__
24 #define __USB_OTG_REGS_H__
44 #define USB_OTG_HS_BASE_ADDR 0x40040000
45 #define USB_OTG_FS_BASE_ADDR 0x50000000
47 #define USB_OTG_CORE_GLOBAL_REGS_OFFSET 0x000
48 #define USB_OTG_DEV_GLOBAL_REG_OFFSET 0x800
49 #define USB_OTG_DEV_IN_EP_REG_OFFSET 0x900
50 #define USB_OTG_EP_REG_OFFSET 0x20
51 #define USB_OTG_DEV_OUT_EP_REG_OFFSET 0xB00
52 #define USB_OTG_HOST_GLOBAL_REG_OFFSET 0x400
53 #define USB_OTG_HOST_PORT_REGS_OFFSET 0x440
54 #define USB_OTG_HOST_CHAN_REGS_OFFSET 0x500
55 #define USB_OTG_CHAN_REGS_OFFSET 0x20
56 #define USB_OTG_PCGCCTL_OFFSET 0xE00
57 #define USB_OTG_DATA_FIFO_OFFSET 0x1000
58 #define USB_OTG_DATA_FIFO_SIZE 0x1000
61 #define USB_OTG_MAX_TX_FIFOS 15
63 #define USB_OTG_HS_MAX_PACKET_SIZE 512
64 #define USB_OTG_FS_MAX_PACKET_SIZE 64
65 #define USB_OTG_MAX_EP0_SIZE 64
79 __IO uint32_t GOTGCTL;
80 __IO uint32_t GOTGINT;
81 __IO uint32_t GAHBCFG;
82 __IO uint32_t GUSBCFG;
83 __IO uint32_t GRSTCTL;
84 __IO uint32_t GINTSTS;
85 __IO uint32_t GINTMSK;
86 __IO uint32_t GRXSTSR;
87 __IO uint32_t GRXSTSP;
88 __IO uint32_t GRXFSIZ;
89 __IO uint32_t DIEPTXF0_HNPTXFSIZ;
90 __IO uint32_t HNPTXSTS;
91 __IO uint32_t GI2CCTL;
95 uint32_t Reserved40[48];
96 __IO uint32_t HPTXFSIZ;
97 __IO uint32_t DIEPTXF[USB_OTG_MAX_TX_FIFOS];
114 __IO uint32_t DIEPMSK;
115 __IO uint32_t DOEPMSK;
117 __IO uint32_t DAINTMSK;
120 __IO uint32_t DVBUSDIS;
121 __IO uint32_t DVBUSPULSE;
122 __IO uint32_t DTHRCTL;
123 __IO uint32_t DIEPEMPMSK;
124 __IO uint32_t DEACHINT;
125 __IO uint32_t DEACHMSK;
127 __IO uint32_t DINEP1MSK;
128 uint32_t Reserved44[15];
129 __IO uint32_t DOUTEP1MSK;
142 __IO uint32_t DIEPCTL;
144 __IO uint32_t DIEPINT;
146 __IO uint32_t DIEPTSIZ;
147 __IO uint32_t DIEPDMA;
148 __IO uint32_t DTXFSTS;
162 __IO uint32_t DOEPCTL;
163 __IO uint32_t DOUTEPFRM;
164 __IO uint32_t DOEPINT;
166 __IO uint32_t DOEPTSIZ;
167 __IO uint32_t DOEPDMA;
168 uint32_t Reserved18[2];
184 uint32_t Reserved40C;
185 __IO uint32_t HPTXSTS;
187 __IO uint32_t HAINTMSK;
200 __IO uint32_t HCCHAR;
201 __IO uint32_t HCSPLT;
203 __IO uint32_t HCGINTMSK;
204 __IO uint32_t HCTSIZ;
206 uint32_t Reserved[2];
225 __IO uint32_t *HPRT0;
226 __IO uint32_t *DFIFO[USB_OTG_MAX_TX_FIFOS];
227 __IO uint32_t *PCGCCTL;
239 uint32_t Reserved2_7 :
245 uint32_t hstsethnpen :
249 uint32_t Reserved12_15 :
253 uint32_t Reserved17 :
261 uint32_t Reserved21_31 :
271 uint32_t Reserved0_1 :
275 uint32_t Reserved3_7 :
277 uint32_t sesreqsucstschng :
279 uint32_t hstnegsucstschng :
281 uint32_t reserver10_16 :
285 uint32_t adevtoutchng :
289 uint32_t Reserved31_20 :
299 uint32_t glblintrmsk :
307 uint32_t nptxfemplvl_txfemplvl :
309 uint32_t ptxfemplvl :
311 uint32_t Reserved9_31 :
325 uint32_t ulpi_utmi_sel :
339 uint32_t nptxfrwnden :
341 uint32_t phylpwrclksel :
343 uint32_t otgutmifssel :
347 uint32_t ulpi_auto_res :
349 uint32_t ulpi_clk_sus_m :
351 uint32_t ulpi_ext_vbus_drv :
353 uint32_t ulpi_int_vbus_indicator :
355 uint32_t term_sel_dl_pulse :
359 uint32_t force_host :
363 uint32_t corrupt_tx :
379 uint32_t intknqflsh :
387 uint32_t Reserved11_29 :
403 uint32_t modemismatch :
411 uint32_t nptxfempty :
415 uint32_t goutnakeff :
421 uint32_t erlysuspend :
423 uint32_t usbsuspend :
429 uint32_t isooutdrop :
433 uint32_t Reserved16 :
435 uint32_t epmismatch :
441 uint32_t incomplisoin :
443 uint32_t incomplisoout :
445 uint32_t Reserved22_23 :
453 uint32_t Reserved27 :
455 uint32_t conidstschng :
457 uint32_t disconnect :
459 uint32_t sessreqintr :
473 uint32_t modemismatch :
481 uint32_t nptxfempty :
485 uint32_t goutnakeff :
491 uint32_t erlysuspend :
493 uint32_t usbsuspend :
499 uint32_t isooutdrop :
505 uint32_t epmismatch :
511 uint32_t incomplisoin :
513 uint32_t incomplisoout :
515 uint32_t Reserved22_23 :
523 uint32_t Reserved27 :
525 uint32_t conidstschng :
527 uint32_t disconnect :
529 uint32_t sessreqintr :
591 uint32_t nptxfspcavail :
593 uint32_t nptxqspcavail :
595 uint32_t nptxqtop_terminate :
597 uint32_t nptxqtop_timer :
613 uint32_t txfspcavail :
635 uint32_t i2csuspctl :
637 uint32_t i2cdevaddr :
655 uint32_t Reserved_in :
661 uint32_t vbussensingA :
663 uint32_t vbussensingB :
667 uint32_t disablevbussensing :
669 uint32_t Reserved_out :
682 uint32_t nzstsouthshk :
690 uint32_t Reserved13_17 :
702 uint32_t rmtwkupsig :
706 uint32_t gnpinnaksts :
708 uint32_t goutnaksts :
736 uint32_t Reserved4_7:
740 uint32_t Reserved22_31 :
752 uint32_t epdisabled :
758 uint32_t intktxfemp :
760 uint32_t intknepmis :
762 uint32_t inepnakeff :
766 uint32_t txfifoundrn :
768 uint32_t Reserved08_31 :
781 uint32_t epdisabled :
787 uint32_t Reserved04_31 :
812 uint32_t non_iso_thr_en :
814 uint32_t iso_thr_en :
816 uint32_t tx_thr_len :
818 uint32_t Reserved11_15 :
822 uint32_t rx_thr_len :
824 uint32_t Reserved26_31 :
890 uint32_t Reserved7_18 :
894 uint32_t Reserved20_28 :
907 uint32_t fslspclksel :
944 uint32_t ptxfspcavail :
946 uint32_t ptxqspcavail :
948 uint32_t ptxqtop_terminate :
950 uint32_t ptxqtop_timer :
956 uint32_t ptxqtop_odd :
966 uint32_t prtconnsts :
968 uint32_t prtconndet :
974 uint32_t prtovrcurract :
976 uint32_t prtovrcurrchng :
994 uint32_t Reserved19_31 :
1078 uint32_t xfercompl :
1098 uint32_t datatglerr :
1126 uint32_t xfercompl :
1146 uint32_t datatglerr :
1195 #endif //__USB_OTG_REGS_H__
Definition: usb_regs.h:1011
Definition: usb_regs.h:650
Definition: usb_regs.h:466
Definition: usb_regs.h:230
Definition: usb_regs.h:368
Definition: usb_regs.h:179
Definition: usb_regs.h:108
Definition: usb_regs.h:198
Definition: usb_regs.h:574
Definition: usb_regs.h:77
Definition: usb_regs.h:939
Definition: usb_regs.h:1053
Definition: usb_regs.h:294
Definition: usb_regs.h:807
Definition: usb_regs.h:620
#define __IO
Definition: core_cm4.h:222
Definition: usb_regs.h:883
Definition: usb_regs.h:999
Definition: usb_regs.h:140
Definition: usb_regs.h:1073
Definition: usb_regs.h:697
Definition: usb_regs.h:1121
Definition: usb_regs.h:316
Definition: usb_regs.h:794
Definition: usb_regs.h:1023
Definition: usb_regs.h:1105
Definition: usb_regs.h:586
Definition: usb_regs.h:961
Definition: usb_regs.h:829
Definition: usb_regs.h:675
Definition: usb_regs.h:536
Definition: usb_regs.h:217
Definition: usb_regs.h:1153
Definition: usb_regs.h:745
Definition: usb_regs.h:160
Definition: usb_regs.h:396
Definition: usb_regs.h:867
Definition: usb_regs.h:914
Definition: usb_regs.h:902
Definition: usb_regs.h:608
Definition: usb_regs.h:725
Definition: usb_regs.h:774
Definition: usb_regs.h:927
Definition: usb_regs.h:266
Definition: usb_regs.h:556