libopencm3
A free/libre/open-source firmware library for various ARM Cortex-M3 microcontrollers.
|
Go to the source code of this file.
Macros | |
#define | OTG_GOTGCTL 0x000 |
#define | OTG_GOTGINT 0x004 |
#define | OTG_GAHBCFG 0x008 |
#define | OTG_GUSBCFG 0x00C |
#define | OTG_GRSTCTL 0x010 |
#define | OTG_GINTSTS 0x014 |
#define | OTG_GINTMSK 0x018 |
#define | OTG_GRXSTSR 0x01C |
#define | OTG_GRXSTSP 0x020 |
#define | OTG_GRXFSIZ 0x024 |
#define | OTG_GNPTXFSIZ 0x028 |
#define | OTG_GNPTXSTS 0x02C |
#define | OTG_GCCFG 0x038 |
#define | OTG_CID 0x03C |
#define | OTG_HPTXFSIZ 0x100 |
#define | OTG_DIEPTXF(x) (0x104 + 4*((x)-1)) |
#define | OTG_HCFG 0x400 |
#define | OTG_HFIR 0x404 |
#define | OTG_HFNUM 0x408 |
#define | OTG_HPTXSTS 0x410 |
#define | OTG_HAINT 0x414 |
#define | OTG_HAINTMSK 0x418 |
#define | OTG_HPRT 0x440 |
#define | OTG_HCCHAR(x) (0x500 + 0x20*(x)) |
#define | OTG_HCINT(x) (0x508 + 0x20*(x)) |
#define | OTG_HCINTMSK(x) (0x50C + 0x20*(x)) |
#define | OTG_HCTSIZ(x) (0x510 + 0x20*(x)) |
#define | OTG_DCFG 0x800 |
#define | OTG_DCTL 0x804 |
#define | OTG_DSTS 0x808 |
#define | OTG_DIEPMSK 0x810 |
#define | OTG_DOEPMSK 0x814 |
#define | OTG_DAINT 0x818 |
#define | OTG_DAINTMSK 0x81C |
#define | OTG_DVBUSDIS 0x828 |
#define | OTG_DVBUSPULSE 0x82C |
#define | OTG_DIEPEMPMSK 0x834 |
#define | OTG_DIEPCTL0 0x900 |
#define | OTG_DIEPCTL(x) (0x900 + 0x20*(x)) |
#define | OTG_DOEPCTL0 0xB00 |
#define | OTG_DOEPCTL(x) (0xB00 + 0x20*(x)) |
#define | OTG_DIEPINT(x) (0x908 + 0x20*(x)) |
#define | OTG_DOEPINT(x) (0xB08 + 0x20*(x)) |
#define | OTG_DIEPTSIZ0 0x910 |
#define | OTG_DIEPTSIZ(x) (0x910 + 0x20*(x)) |
#define | OTG_DOEPTSIZ0 0xB10 |
#define | OTG_DOEPTSIZ(x) (0xB10 + 0x20*(x)) |
#define | OTG_DTXFSTS(x) (0x918 + 0x20*(x)) |
#define | OTG_PCGCCTL 0xE00 |
#define | OTG_FIFO(x) (((x) + 1) << 12) |
#define | OTG_GOTGCTL_BSVLD (1 << 19) |
#define | OTG_GOTGCTL_ASVLD (1 << 18) |
#define | OTG_GOTGCTL_DBCT (1 << 17) |
#define | OTG_GOTGCTL_CIDSTS (1 << 16) |
#define | OTG_GOTGCTL_DHNPEN (1 << 11) |
#define | OTG_GOTGCTL_HSHNPEN (1 << 10) |
#define | OTG_GOTGCTL_HNPRQ (1 << 9) |
#define | OTG_GOTGCTL_HNGSCS (1 << 8) |
#define | OTG_GOTGCTL_SRQ (1 << 1) |
#define | OTG_GOTGCTL_SRQSCS (1 << 0) |
#define | OTG_GOTGINT_DBCDNE (1 << 19) |
#define | OTG_GOTGINT_ADTOCHG (1 << 18) |
#define | OTG_GOTGINT_HNGDET (1 << 17) |
#define | OTG_GOTGINT_HNSSCHG (1 << 9) |
#define | OTG_GOTGINT_SRSSCHG (1 << 8) |
#define | OTG_GOTGINT_SEDET (1 << 2) |
#define | OTG_GAHBCFG_GINT 0x0001 |
#define | OTG_GAHBCFG_TXFELVL 0x0080 |
#define | OTG_GAHBCFG_PTXFELVL 0x0100 |
#define | OTG_GUSBCFG_TOCAL 0x00000003 |
#define | OTG_GUSBCFG_SRPCAP 0x00000100 |
#define | OTG_GUSBCFG_HNPCAP 0x00000200 |
#define | OTG_GUSBCFG_TRDT_MASK (0xf << 10) |
#define | OTG_GUSBCFG_NPTXRWEN 0x00004000 |
#define | OTG_GUSBCFG_FHMOD 0x20000000 |
#define | OTG_GUSBCFG_FDMOD 0x40000000 |
#define | OTG_GUSBCFG_CTXPKT 0x80000000 |
#define | OTG_GUSBCFG_PHYSEL (1 << 6) |
#define | OTG_GRSTCTL_AHBIDL (1 << 31) |
#define | OTG_GRSTCTL_TXFNUM_MASK (0x1f << 6) |
#define | OTG_GRSTCTL_TXFNUM_ALL (0x10 << 6) |
#define | OTG_GRSTCTL_TXFFLSH (1 << 5) |
#define | OTG_GRSTCTL_RXFFLSH (1 << 4) |
#define | OTG_GRSTCTL_FCRST (1 << 2) |
#define | OTG_GRSTCTL_HSRST (1 << 1) |
#define | OTG_GRSTCTL_CSRST (1 << 0) |
#define | OTG_GINTSTS_WKUPINT (1 << 31) |
#define | OTG_GINTSTS_SRQINT (1 << 30) |
#define | OTG_GINTSTS_DISCINT (1 << 29) |
#define | OTG_GINTSTS_CIDSCHG (1 << 28) |
#define | OTG_GINTSTS_PTXFE (1 << 26) |
#define | OTG_GINTSTS_HCINT (1 << 25) |
#define | OTG_GINTSTS_HPRTINT (1 << 24) |
#define | OTG_GINTSTS_IPXFR (1 << 21) |
#define | OTG_GINTSTS_INCOMPISOOUT (1 << 21) |
#define | OTG_GINTSTS_IISOIXFR (1 << 20) |
#define | OTG_GINTSTS_OEPINT (1 << 19) |
#define | OTG_GINTSTS_IEPINT (1 << 18) |
#define | OTG_GINTSTS_EOPF (1 << 15) |
#define | OTG_GINTSTS_ISOODRP (1 << 14) |
#define | OTG_GINTSTS_ENUMDNE (1 << 13) |
#define | OTG_GINTSTS_USBRST (1 << 12) |
#define | OTG_GINTSTS_USBSUSP (1 << 11) |
#define | OTG_GINTSTS_ESUSP (1 << 10) |
#define | OTG_GINTSTS_GONAKEFF (1 << 7) |
#define | OTG_GINTSTS_GINAKEFF (1 << 6) |
#define | OTG_GINTSTS_NPTXFE (1 << 5) |
#define | OTG_GINTSTS_RXFLVL (1 << 4) |
#define | OTG_GINTSTS_SOF (1 << 3) |
#define | OTG_GINTSTS_OTGINT (1 << 2) |
#define | OTG_GINTSTS_MMIS (1 << 1) |
#define | OTG_GINTSTS_CMOD (1 << 0) |
#define | OTG_GINTMSK_MMISM 0x00000002 |
#define | OTG_GINTMSK_OTGINT 0x00000004 |
#define | OTG_GINTMSK_SOFM 0x00000008 |
#define | OTG_GINTMSK_RXFLVLM 0x00000010 |
#define | OTG_GINTMSK_NPTXFEM 0x00000020 |
#define | OTG_GINTMSK_GINAKEFFM 0x00000040 |
#define | OTG_GINTMSK_GONAKEFFM 0x00000080 |
#define | OTG_GINTMSK_ESUSPM 0x00000400 |
#define | OTG_GINTMSK_USBSUSPM 0x00000800 |
#define | OTG_GINTMSK_USBRST 0x00001000 |
#define | OTG_GINTMSK_ENUMDNEM 0x00002000 |
#define | OTG_GINTMSK_ISOODRPM 0x00004000 |
#define | OTG_GINTMSK_EOPFM 0x00008000 |
#define | OTG_GINTMSK_EPMISM 0x00020000 |
#define | OTG_GINTMSK_IEPINT 0x00040000 |
#define | OTG_GINTMSK_OEPINT 0x00080000 |
#define | OTG_GINTMSK_IISOIXFRM 0x00100000 |
#define | OTG_GINTMSK_IISOOXFRM 0x00200000 |
#define | OTG_GINTMSK_IPXFRM 0x00200000 |
#define | OTG_GINTMSK_PRTIM 0x01000000 |
#define | OTG_GINTMSK_HCIM 0x02000000 |
#define | OTG_GINTMSK_PTXFEM 0x04000000 |
#define | OTG_GINTMSK_CIDSCHGM 0x10000000 |
#define | OTG_GINTMSK_DISCINT 0x20000000 |
#define | OTG_GINTMSK_SRQIM 0x40000000 |
#define | OTG_GINTMSK_WUIM 0x80000000 |
#define | OTG_GRXSTSP_FRMNUM_MASK (0xf << 21) |
#define | OTG_GRXSTSP_PKTSTS_MASK (0xf << 17) |
#define | OTG_GRXSTSP_PKTSTS_GOUTNAK (0x1 << 17) |
#define | OTG_GRXSTSP_PKTSTS_OUT (0x2 << 17) |
#define | OTG_GRXSTSP_PKTSTS_IN (0x2 << 17) |
#define | OTG_GRXSTSP_PKTSTS_OUT_COMP (0x3 << 17) |
#define | OTG_GRXSTSP_PKTSTS_IN_COMP (0x3 << 17) |
#define | OTG_GRXSTSP_PKTSTS_SETUP_COMP (0x4 << 17) |
#define | OTG_GRXSTSP_PKTSTS_DTERR (0x5 << 17) |
#define | OTG_GRXSTSP_PKTSTS_SETUP (0x6 << 17) |
#define | OTG_GRXSTSP_PKTSTS_CHH (0x7 << 17) |
#define | OTG_GRXSTSP_DPID_MASK (0x3 << 15) |
#define | OTG_GRXSTSP_DPID_DATA0 (0x0 << 15) |
#define | OTG_GRXSTSP_DPID_DATA1 (0x2 << 15) |
#define | OTG_GRXSTSP_DPID_DATA2 (0x1 << 15) |
#define | OTG_GRXSTSP_DPID_MDATA (0x3 << 15) |
#define | OTG_GRXSTSP_BCNT_MASK (0x7ff << 4) |
#define | OTG_GRXSTSP_EPNUM_MASK (0xf << 0) |
#define | OTG_GCCFG_NOVBUSSENS (1 << 21) |
Only on cores < 0x2000. More... | |
#define | OTG_GCCFG_VBDEN (1 << 21) |
Only on cores >= 0x2000. More... | |
#define | OTG_GCCFG_SOFOUTEN (1 << 20) |
#define | OTG_GCCFG_VBUSBSEN (1 << 19) |
#define | OTG_GCCFG_VBUSASEN (1 << 18) |
#define | OTG_GCCFG_PWRDWN (1 << 16) |
#define | OTG_CID_HAS_VBDEN 0x00002000 |
#define | OTG_DCTL_POPRGDNE (1 << 11) |
#define | OTG_DCTL_CGONAK (1 << 10) |
#define | OTG_DCTL_SGONAK (1 << 9) |
#define | OTG_DCTL_SGINAK (1 << 8) |
#define | OTG_DCTL_TCTL_MASK (7 << 4) |
#define | OTG_DCTL_GONSTS (1 << 3) |
#define | OTG_DCTL_GINSTS (1 << 2) |
#define | OTG_DCTL_SDIS (1 << 1) |
#define | OTG_DCTL_RWUSIG (1 << 0) |
#define | OTG_DCFG_DSPD 0x0003 |
#define | OTG_DCFG_NZLSOHSK 0x0004 |
#define | OTG_DCFG_DAD 0x07F0 |
#define | OTG_DCFG_PFIVL 0x1800 |
#define | OTG_DSTS_SUSPSTS (1 << 0) |
#define | OTG_DIEPMSK_BIM (1 << 9) |
#define | OTG_DIEPMSK_TXFURM (1 << 8) |
#define | OTG_DIEPMSK_INEPNEM (1 << 6) |
#define | OTG_DIEPMSK_INEPNMM (1 << 5) |
#define | OTG_DIEPMSK_ITTXFEMSK (1 << 4) |
#define | OTG_DIEPMSK_TOM (1 << 3) |
#define | OTG_DIEPMSK_EPDM (1 << 1) |
#define | OTG_DIEPMSK_XFRCM (1 << 0) |
#define | OTG_DOEPMSK_BOIM (1 << 9) |
#define | OTG_DOEPMSK_OPEM (1 << 8) |
#define | OTG_DOEPMSK_B2BSTUP (1 << 6) |
#define | OTG_DOEPMSK_OTEPDM (1 << 4) |
#define | OTG_DOEPMSK_STUPM (1 << 3) |
#define | OTG_DOEPMSK_EPDM (1 << 1) |
#define | OTG_DOEPMSK_XFRCM (1 << 0) |
#define | OTG_DIEPCTL0_EPENA (1 << 31) |
#define | OTG_DIEPCTL0_EPDIS (1 << 30) |
#define | OTG_DIEPCTLX_SD0PID (1 << 28) |
#define | OTG_DIEPCTL0_SNAK (1 << 27) |
#define | OTG_DIEPCTL0_CNAK (1 << 26) |
#define | OTG_DIEPCTL0_TXFNUM_MASK (0xf << 22) |
#define | OTG_DIEPCTL0_STALL (1 << 21) |
#define | OTG_DIEPCTL0_EPTYP_MASK (0x3 << 18) |
#define | OTG_DIEPCTL0_NAKSTS (1 << 17) |
#define | OTG_DIEPCTL0_USBAEP (1 << 15) |
#define | OTG_DIEPCTL0_MPSIZ_MASK (0x3 << 0) |
#define | OTG_DIEPCTL0_MPSIZ_64 (0x0 << 0) |
#define | OTG_DIEPCTL0_MPSIZ_32 (0x1 << 0) |
#define | OTG_DIEPCTL0_MPSIZ_16 (0x2 << 0) |
#define | OTG_DIEPCTL0_MPSIZ_8 (0x3 << 0) |
#define | OTG_DOEPCTL0_EPENA (1 << 31) |
#define | OTG_DOEPCTL0_EPDIS (1 << 30) |
#define | OTG_DOEPCTLX_SD0PID (1 << 28) |
#define | OTG_DOEPCTL0_SNAK (1 << 27) |
#define | OTG_DOEPCTL0_CNAK (1 << 26) |
#define | OTG_DOEPCTL0_STALL (1 << 21) |
#define | OTG_DOEPCTL0_SNPM (1 << 20) |
#define | OTG_DOEPCTL0_EPTYP_MASK (0x3 << 18) |
#define | OTG_DOEPCTL0_NAKSTS (1 << 17) |
#define | OTG_DOEPCTL0_USBAEP (1 << 15) |
#define | OTG_DOEPCTL0_MPSIZ_MASK (0x3 << 0) |
#define | OTG_DOEPCTL0_MPSIZ_64 (0x0 << 0) |
#define | OTG_DOEPCTL0_MPSIZ_32 (0x1 << 0) |
#define | OTG_DOEPCTL0_MPSIZ_16 (0x2 << 0) |
#define | OTG_DOEPCTL0_MPSIZ_8 (0x3 << 0) |
#define | OTG_DIEPINTX_TXFE (1 << 7) |
#define | OTG_DIEPINTX_INEPNE (1 << 6) |
#define | OTG_DIEPINTX_ITTXFE (1 << 4) |
#define | OTG_DIEPINTX_TOC (1 << 3) |
#define | OTG_DIEPINTX_EPDISD (1 << 1) |
#define | OTG_DIEPINTX_XFRC (1 << 0) |
#define | OTG_DOEPINTX_B2BSTUP (1 << 6) |
#define | OTG_DOEPINTX_OTEPDIS (1 << 4) |
#define | OTG_DOEPINTX_STUP (1 << 3) |
#define | OTG_DOEPINTX_EPDISD (1 << 1) |
#define | OTG_DOEPINTX_XFRC (1 << 0) |
#define | OTG_DIEPSIZ0_STUPCNT_1 (0x1 << 29) |
#define | OTG_DIEPSIZ0_STUPCNT_2 (0x2 << 29) |
#define | OTG_DIEPSIZ0_STUPCNT_3 (0x3 << 29) |
#define | OTG_DIEPSIZ0_STUPCNT_MASK (0x3 << 29) |
#define | OTG_DIEPSIZ0_PKTCNT (1 << 19) |
#define | OTG_DIEPSIZ0_XFRSIZ_MASK (0x7f << 0) |
#define | OTG_HNPTXFSIZ_PTXFD_MASK (0xffff0000) |
#define | OTG_HNPTXFSIZ_PTXSA_MASK (0x0000ffff) |
#define | OTG_HPTXFSIZ_PTXFD_MASK (0xffff0000) |
#define | OTG_HPTXFSIZ_PTXSA_MASK (0x0000ffff) |
#define | OTG_HCFG_FSLSS (1 << 2) |
#define | OTG_HCFG_FSLSPCS_48MHz (0x1 << 0) |
#define | OTG_HCFG_FSLSPCS_6MHz (0x2 << 0) |
#define | OTG_HCFG_FSLSPCS_MASK (0x3 << 0) |
#define | OTG_HFIR_FRIVL_MASK (0x0000ffff) |
#define | OTG_HFNUM_FTREM_MASK (0xffff0000) |
#define | OTG_HFNUM_FRNUM_MASK (0x0000ffff) |
#define | OTG_HPTXSTS_PTXQTOP_MASK (0xff000000) |
#define | OTG_HPTXSTS_PTXQTOP_ODDFRM (1<<31) |
#define | OTG_HPTXSTS_PTXQTOP_EVENFRM (0<<31) |
#define | OTG_HPTXSTS_PTXQTOP_CHANNEL_NUMBER_MASK (0xf<<27) |
#define | OTG_HPTXSTS_PTXQTOP_ENDPOINT_NUMBER_MASK (0xf<<27) |
#define | OTG_HPTXSTS_PTXQTOP_TYPE_INOUT (0x00<<25) |
#define | OTG_HPTXSTS_PTXQTOP_TYPE_ZEROLENGTH (0x01<<25) |
#define | OTG_HPTXSTS_PTXQTOP_TYPE_DISABLECMD (0x11<<25) |
#define | OTG_HPTXSTS_PTXQTOP_TERMINATE (1<<24) |
#define | OTG_HPTXSTS_PTXQSAV_MASK (0x00ff0000) |
#define | OTG_HPTXSTS_PTXFSAVL_MASK (0x0000ffff) |
#define | OTG_HAINTMSK_HAINT_MASK (0x0000ffff) |
#define | OTG_HAINTMSK_HAINTM_MASK (0x0000ffff) |
#define | OTG_HPRT_PSPD_HIGH (0x0 << 17) |
#define | OTG_HPRT_PSPD_FULL (0x1 << 17) |
#define | OTG_HPRT_PSPD_LOW (0x2 << 17) |
#define | OTG_HPRT_PSPD_MASK (0x3 << 17) |
#define | OTG_HPRT_PTCTL_DISABLED (0x0 << 13) |
#define | OTG_HPRT_PTCTL_J (0x1 << 13) |
#define | OTG_HPRT_PTCTL_K (0x2 << 13) |
#define | OTG_HPRT_PTCTL_SE0_NAK (0x3 << 13) |
#define | OTG_HPRT_PTCTL_PACKET (0x4 << 13) |
#define | OTG_HPRT_PTCTL_FORCE_ENABLE (0x5 << 13) |
#define | OTG_HPRT_PPWR (1 << 12) |
#define | OTG_HPRT_PLSTS_DM (1 << 11) |
#define | OTG_HPRT_PLSTS_DP (1 << 10) |
#define | OTG_HPRT_PRST (1 << 8) |
#define | OTG_HPRT_PSUSP (1 << 7) |
#define | OTG_HPRT_PRES (1 << 6) |
#define | OTG_HPRT_POCCHNG (1 << 5) |
#define | OTG_HPRT_POCA (1 << 4) |
#define | OTG_HPRT_PENCHNG (1 << 3) |
#define | OTG_HPRT_PENA (1 << 2) |
#define | OTG_HPRT_PCDET (1 << 1) |
#define | OTG_HPRT_PCSTS (1 << 0) |
#define | OTG_HCCHAR_CHENA (1 << 31) |
#define | OTG_HCCHAR_CHDIS (1 << 30) |
#define | OTG_HCCHAR_ODDFRM (1 << 29) |
#define | OTG_HCCHAR_DAD_MASK (0x7f << 22) |
#define | OTG_HCCHAR_MCNT_1 (0x1 << 20) |
#define | OTG_HCCHAR_MCNT_2 (0x2 << 20) |
#define | OTG_HCCHAR_MCNT_3 (0x3 << 20) |
#define | OTG_HCCHAR_MCNT_MASK (0x3 << 20) |
#define | OTG_HCCHAR_EPTYP_CONTROL (0 << 18) |
#define | OTG_HCCHAR_EPTYP_ISOCHRONOUS (1 << 18) |
#define | OTG_HCCHAR_EPTYP_BULK (2 << 18) |
#define | OTG_HCCHAR_EPTYP_INTERRUPT (3 << 18) |
#define | OTG_HCCHAR_EPTYP_MASK (3 << 18) |
#define | OTG_HCCHAR_LSDEV (1 << 17) |
#define | OTG_HCCHAR_EPDIR_OUT (0 << 15) |
#define | OTG_HCCHAR_EPDIR_IN (1 << 15) |
#define | OTG_HCCHAR_EPDIR_MASK (1 << 15) |
#define | OTG_HCCHAR_EPNUM_MASK (0xf << 11) |
#define | OTG_HCCHAR_MPSIZ_MASK (0x7ff << 0) |
#define | OTG_HCINT_DTERR (1 << 10) |
#define | OTG_HCINT_FRMOR (1 << 9) |
#define | OTG_HCINT_BBERR (1 << 8) |
#define | OTG_HCINT_TXERR (1 << 7) |
#define | OTG_HCINT_NYET (1 << 6) |
#define | OTG_HCINT_ACK (1 << 5) |
#define | OTG_HCINT_NAK (1 << 4) |
#define | OTG_HCINT_STALL (1 << 3) |
#define | OTG_HCINT_AHBERR (1 << 2) |
#define | OTG_HCINT_CHH (1 << 1) |
#define | OTG_HCINT_XFRC (1 << 0) |
#define | OTG_HCINTMSK_DTERRM (1 << 10) |
#define | OTG_HCINTMSK_FRMORM (1 << 9) |
#define | OTG_HCINTMSK_BBERRM (1 << 8) |
#define | OTG_HCINTMSK_TXERRM (1 << 7) |
#define | OTG_HCINTMSK_NYET (1 << 6) |
#define | OTG_HCINTMSK_ACKM (1 << 5) |
#define | OTG_HCINTMSK_NAKM (1 << 4) |
#define | OTG_HCINTMSK_STALLM (1 << 3) |
#define | OTG_HCINTMSK_AHBERR (1 << 2) |
#define | OTG_HCINTMSK_CHHM (1 << 1) |
#define | OTG_HCINTMSK_XFRCM (1 << 0) |
#define | OTG_HCTSIZ_DOPING (1 << 31) |
#define | OTG_HCTSIZ_DPID_DATA0 (0x0 << 29) |
#define | OTG_HCTSIZ_DPID_DATA1 (0x2 << 29) |
#define | OTG_HCTSIZ_DPID_DATA2 (0x1 << 29) |
#define | OTG_HCTSIZ_DPID_MDATA (0x3 << 29) |
#define | OTG_HCTSIZ_DPID_MASK (0x3 << 29) |
#define | OTG_HCTSIZ_PKTCNT_MASK (0x3ff << 19) |
#define | OTG_HCTSIZ_XFRSIZ_MASK (0x7ffff << 0) |
#define OTG_CID 0x03C |
Definition at line 43 of file otg_common.h.
#define OTG_CID_HAS_VBDEN 0x00002000 |
Definition at line 235 of file otg_common.h.
#define OTG_DAINT 0x818 |
Definition at line 67 of file otg_common.h.
#define OTG_DAINTMSK 0x81C |
Definition at line 68 of file otg_common.h.
#define OTG_DCFG 0x800 |
Definition at line 62 of file otg_common.h.
#define OTG_DCFG_DAD 0x07F0 |
Definition at line 253 of file otg_common.h.
#define OTG_DCFG_DSPD 0x0003 |
Definition at line 251 of file otg_common.h.
#define OTG_DCFG_NZLSOHSK 0x0004 |
Definition at line 252 of file otg_common.h.
#define OTG_DCFG_PFIVL 0x1800 |
Definition at line 254 of file otg_common.h.
#define OTG_DCTL 0x804 |
Definition at line 63 of file otg_common.h.
#define OTG_DCTL_CGONAK (1 << 10) |
Definition at line 241 of file otg_common.h.
#define OTG_DCTL_GINSTS (1 << 2) |
Definition at line 246 of file otg_common.h.
#define OTG_DCTL_GONSTS (1 << 3) |
Definition at line 245 of file otg_common.h.
#define OTG_DCTL_POPRGDNE (1 << 11) |
Definition at line 240 of file otg_common.h.
#define OTG_DCTL_RWUSIG (1 << 0) |
Definition at line 248 of file otg_common.h.
#define OTG_DCTL_SDIS (1 << 1) |
Definition at line 247 of file otg_common.h.
#define OTG_DCTL_SGINAK (1 << 8) |
Definition at line 243 of file otg_common.h.
#define OTG_DCTL_SGONAK (1 << 9) |
Definition at line 242 of file otg_common.h.
#define OTG_DCTL_TCTL_MASK (7 << 4) |
Definition at line 244 of file otg_common.h.
#define OTG_DIEPCTL | ( | x | ) | (0x900 + 0x20*(x)) |
Definition at line 74 of file otg_common.h.
#define OTG_DIEPCTL0 0x900 |
Definition at line 73 of file otg_common.h.
#define OTG_DIEPCTL0_CNAK (1 << 26) |
Definition at line 291 of file otg_common.h.
#define OTG_DIEPCTL0_EPDIS (1 << 30) |
Definition at line 287 of file otg_common.h.
#define OTG_DIEPCTL0_EPENA (1 << 31) |
Definition at line 286 of file otg_common.h.
#define OTG_DIEPCTL0_EPTYP_MASK (0x3 << 18) |
Definition at line 295 of file otg_common.h.
#define OTG_DIEPCTL0_MPSIZ_16 (0x2 << 0) |
Definition at line 303 of file otg_common.h.
#define OTG_DIEPCTL0_MPSIZ_32 (0x1 << 0) |
Definition at line 302 of file otg_common.h.
#define OTG_DIEPCTL0_MPSIZ_64 (0x0 << 0) |
Definition at line 301 of file otg_common.h.
#define OTG_DIEPCTL0_MPSIZ_8 (0x3 << 0) |
Definition at line 304 of file otg_common.h.
#define OTG_DIEPCTL0_MPSIZ_MASK (0x3 << 0) |
Definition at line 300 of file otg_common.h.
#define OTG_DIEPCTL0_NAKSTS (1 << 17) |
Definition at line 296 of file otg_common.h.
#define OTG_DIEPCTL0_SNAK (1 << 27) |
Definition at line 290 of file otg_common.h.
#define OTG_DIEPCTL0_STALL (1 << 21) |
Definition at line 293 of file otg_common.h.
#define OTG_DIEPCTL0_TXFNUM_MASK (0xf << 22) |
Definition at line 292 of file otg_common.h.
#define OTG_DIEPCTL0_USBAEP (1 << 15) |
Definition at line 298 of file otg_common.h.
#define OTG_DIEPCTLX_SD0PID (1 << 28) |
Definition at line 289 of file otg_common.h.
#define OTG_DIEPEMPMSK 0x834 |
Definition at line 71 of file otg_common.h.
#define OTG_DIEPINT | ( | x | ) | (0x908 + 0x20*(x)) |
Definition at line 77 of file otg_common.h.
#define OTG_DIEPINTX_EPDISD (1 << 1) |
Definition at line 335 of file otg_common.h.
#define OTG_DIEPINTX_INEPNE (1 << 6) |
Definition at line 330 of file otg_common.h.
#define OTG_DIEPINTX_ITTXFE (1 << 4) |
Definition at line 332 of file otg_common.h.
#define OTG_DIEPINTX_TOC (1 << 3) |
Definition at line 333 of file otg_common.h.
#define OTG_DIEPINTX_TXFE (1 << 7) |
Definition at line 329 of file otg_common.h.
#define OTG_DIEPINTX_XFRC (1 << 0) |
Definition at line 336 of file otg_common.h.
#define OTG_DIEPMSK 0x810 |
Definition at line 65 of file otg_common.h.
#define OTG_DIEPMSK_BIM (1 << 9) |
Definition at line 261 of file otg_common.h.
#define OTG_DIEPMSK_EPDM (1 << 1) |
Definition at line 269 of file otg_common.h.
#define OTG_DIEPMSK_INEPNEM (1 << 6) |
Definition at line 264 of file otg_common.h.
#define OTG_DIEPMSK_INEPNMM (1 << 5) |
Definition at line 265 of file otg_common.h.
#define OTG_DIEPMSK_ITTXFEMSK (1 << 4) |
Definition at line 266 of file otg_common.h.
#define OTG_DIEPMSK_TOM (1 << 3) |
Definition at line 267 of file otg_common.h.
#define OTG_DIEPMSK_TXFURM (1 << 8) |
Definition at line 262 of file otg_common.h.
#define OTG_DIEPMSK_XFRCM (1 << 0) |
Definition at line 270 of file otg_common.h.
#define OTG_DIEPSIZ0_PKTCNT (1 << 19) |
Definition at line 355 of file otg_common.h.
#define OTG_DIEPSIZ0_STUPCNT_1 (0x1 << 29) |
Definition at line 350 of file otg_common.h.
#define OTG_DIEPSIZ0_STUPCNT_2 (0x2 << 29) |
Definition at line 351 of file otg_common.h.
#define OTG_DIEPSIZ0_STUPCNT_3 (0x3 << 29) |
Definition at line 352 of file otg_common.h.
#define OTG_DIEPSIZ0_STUPCNT_MASK (0x3 << 29) |
Definition at line 353 of file otg_common.h.
#define OTG_DIEPSIZ0_XFRSIZ_MASK (0x7f << 0) |
Definition at line 357 of file otg_common.h.
#define OTG_DIEPTSIZ | ( | x | ) | (0x910 + 0x20*(x)) |
Definition at line 80 of file otg_common.h.
#define OTG_DIEPTSIZ0 0x910 |
Definition at line 79 of file otg_common.h.
#define OTG_DIEPTXF | ( | x | ) | (0x104 + 4*((x)-1)) |
Definition at line 45 of file otg_common.h.
#define OTG_DOEPCTL | ( | x | ) | (0xB00 + 0x20*(x)) |
Definition at line 76 of file otg_common.h.
#define OTG_DOEPCTL0 0xB00 |
Definition at line 75 of file otg_common.h.
#define OTG_DOEPCTL0_CNAK (1 << 26) |
Definition at line 312 of file otg_common.h.
#define OTG_DOEPCTL0_EPDIS (1 << 30) |
Definition at line 308 of file otg_common.h.
#define OTG_DOEPCTL0_EPENA (1 << 31) |
Definition at line 307 of file otg_common.h.
#define OTG_DOEPCTL0_EPTYP_MASK (0x3 << 18) |
Definition at line 316 of file otg_common.h.
#define OTG_DOEPCTL0_MPSIZ_16 (0x2 << 0) |
Definition at line 324 of file otg_common.h.
#define OTG_DOEPCTL0_MPSIZ_32 (0x1 << 0) |
Definition at line 323 of file otg_common.h.
#define OTG_DOEPCTL0_MPSIZ_64 (0x0 << 0) |
Definition at line 322 of file otg_common.h.
#define OTG_DOEPCTL0_MPSIZ_8 (0x3 << 0) |
Definition at line 325 of file otg_common.h.
#define OTG_DOEPCTL0_MPSIZ_MASK (0x3 << 0) |
Definition at line 321 of file otg_common.h.
#define OTG_DOEPCTL0_NAKSTS (1 << 17) |
Definition at line 317 of file otg_common.h.
#define OTG_DOEPCTL0_SNAK (1 << 27) |
Definition at line 311 of file otg_common.h.
#define OTG_DOEPCTL0_SNPM (1 << 20) |
Definition at line 315 of file otg_common.h.
#define OTG_DOEPCTL0_STALL (1 << 21) |
Definition at line 314 of file otg_common.h.
#define OTG_DOEPCTL0_USBAEP (1 << 15) |
Definition at line 319 of file otg_common.h.
#define OTG_DOEPCTLX_SD0PID (1 << 28) |
Definition at line 310 of file otg_common.h.
#define OTG_DOEPINT | ( | x | ) | (0xB08 + 0x20*(x)) |
Definition at line 78 of file otg_common.h.
#define OTG_DOEPINTX_B2BSTUP (1 << 6) |
Definition at line 340 of file otg_common.h.
#define OTG_DOEPINTX_EPDISD (1 << 1) |
Definition at line 345 of file otg_common.h.
#define OTG_DOEPINTX_OTEPDIS (1 << 4) |
Definition at line 342 of file otg_common.h.
#define OTG_DOEPINTX_STUP (1 << 3) |
Definition at line 343 of file otg_common.h.
#define OTG_DOEPINTX_XFRC (1 << 0) |
Definition at line 346 of file otg_common.h.
#define OTG_DOEPMSK 0x814 |
Definition at line 66 of file otg_common.h.
#define OTG_DOEPMSK_B2BSTUP (1 << 6) |
Definition at line 277 of file otg_common.h.
#define OTG_DOEPMSK_BOIM (1 << 9) |
Definition at line 274 of file otg_common.h.
#define OTG_DOEPMSK_EPDM (1 << 1) |
Definition at line 282 of file otg_common.h.
#define OTG_DOEPMSK_OPEM (1 << 8) |
Definition at line 275 of file otg_common.h.
#define OTG_DOEPMSK_OTEPDM (1 << 4) |
Definition at line 279 of file otg_common.h.
#define OTG_DOEPMSK_STUPM (1 << 3) |
Definition at line 280 of file otg_common.h.
#define OTG_DOEPMSK_XFRCM (1 << 0) |
Definition at line 283 of file otg_common.h.
#define OTG_DOEPTSIZ | ( | x | ) | (0xB10 + 0x20*(x)) |
Definition at line 82 of file otg_common.h.
#define OTG_DOEPTSIZ0 0xB10 |
Definition at line 81 of file otg_common.h.
#define OTG_DSTS 0x808 |
Definition at line 64 of file otg_common.h.
#define OTG_DSTS_SUSPSTS (1 << 0) |
Definition at line 257 of file otg_common.h.
#define OTG_DTXFSTS | ( | x | ) | (0x918 + 0x20*(x)) |
Definition at line 83 of file otg_common.h.
#define OTG_DVBUSDIS 0x828 |
Definition at line 69 of file otg_common.h.
#define OTG_DVBUSPULSE 0x82C |
Definition at line 70 of file otg_common.h.
#define OTG_FIFO | ( | x | ) | (((x) + 1) << 12) |
Definition at line 89 of file otg_common.h.
#define OTG_GAHBCFG 0x008 |
Definition at line 32 of file otg_common.h.
#define OTG_GAHBCFG_GINT 0x0001 |
Definition at line 114 of file otg_common.h.
#define OTG_GAHBCFG_PTXFELVL 0x0100 |
Definition at line 116 of file otg_common.h.
#define OTG_GAHBCFG_TXFELVL 0x0080 |
Definition at line 115 of file otg_common.h.
#define OTG_GCCFG 0x038 |
Definition at line 42 of file otg_common.h.
#define OTG_GCCFG_NOVBUSSENS (1 << 21) |
Only on cores < 0x2000.
Definition at line 224 of file otg_common.h.
#define OTG_GCCFG_PWRDWN (1 << 16) |
Definition at line 231 of file otg_common.h.
#define OTG_GCCFG_SOFOUTEN (1 << 20) |
Definition at line 227 of file otg_common.h.
#define OTG_GCCFG_VBDEN (1 << 21) |
Only on cores >= 0x2000.
Definition at line 226 of file otg_common.h.
#define OTG_GCCFG_VBUSASEN (1 << 18) |
Definition at line 229 of file otg_common.h.
#define OTG_GCCFG_VBUSBSEN (1 << 19) |
Definition at line 228 of file otg_common.h.
#define OTG_GINTMSK 0x018 |
Definition at line 36 of file otg_common.h.
#define OTG_GINTMSK_CIDSCHGM 0x10000000 |
Definition at line 196 of file otg_common.h.
#define OTG_GINTMSK_DISCINT 0x20000000 |
Definition at line 197 of file otg_common.h.
#define OTG_GINTMSK_ENUMDNEM 0x00002000 |
Definition at line 184 of file otg_common.h.
#define OTG_GINTMSK_EOPFM 0x00008000 |
Definition at line 186 of file otg_common.h.
#define OTG_GINTMSK_EPMISM 0x00020000 |
Definition at line 187 of file otg_common.h.
#define OTG_GINTMSK_ESUSPM 0x00000400 |
Definition at line 181 of file otg_common.h.
#define OTG_GINTMSK_GINAKEFFM 0x00000040 |
Definition at line 179 of file otg_common.h.
#define OTG_GINTMSK_GONAKEFFM 0x00000080 |
Definition at line 180 of file otg_common.h.
#define OTG_GINTMSK_HCIM 0x02000000 |
Definition at line 194 of file otg_common.h.
#define OTG_GINTMSK_IEPINT 0x00040000 |
Definition at line 188 of file otg_common.h.
#define OTG_GINTMSK_IISOIXFRM 0x00100000 |
Definition at line 190 of file otg_common.h.
#define OTG_GINTMSK_IISOOXFRM 0x00200000 |
Definition at line 191 of file otg_common.h.
#define OTG_GINTMSK_IPXFRM 0x00200000 |
Definition at line 192 of file otg_common.h.
#define OTG_GINTMSK_ISOODRPM 0x00004000 |
Definition at line 185 of file otg_common.h.
#define OTG_GINTMSK_MMISM 0x00000002 |
Definition at line 174 of file otg_common.h.
#define OTG_GINTMSK_NPTXFEM 0x00000020 |
Definition at line 178 of file otg_common.h.
#define OTG_GINTMSK_OEPINT 0x00080000 |
Definition at line 189 of file otg_common.h.
#define OTG_GINTMSK_OTGINT 0x00000004 |
Definition at line 175 of file otg_common.h.
#define OTG_GINTMSK_PRTIM 0x01000000 |
Definition at line 193 of file otg_common.h.
#define OTG_GINTMSK_PTXFEM 0x04000000 |
Definition at line 195 of file otg_common.h.
#define OTG_GINTMSK_RXFLVLM 0x00000010 |
Definition at line 177 of file otg_common.h.
#define OTG_GINTMSK_SOFM 0x00000008 |
Definition at line 176 of file otg_common.h.
#define OTG_GINTMSK_SRQIM 0x40000000 |
Definition at line 198 of file otg_common.h.
#define OTG_GINTMSK_USBRST 0x00001000 |
Definition at line 183 of file otg_common.h.
#define OTG_GINTMSK_USBSUSPM 0x00000800 |
Definition at line 182 of file otg_common.h.
#define OTG_GINTMSK_WUIM 0x80000000 |
Definition at line 199 of file otg_common.h.
#define OTG_GINTSTS 0x014 |
Definition at line 35 of file otg_common.h.
#define OTG_GINTSTS_CIDSCHG (1 << 28) |
Definition at line 145 of file otg_common.h.
#define OTG_GINTSTS_CMOD (1 << 0) |
Definition at line 171 of file otg_common.h.
#define OTG_GINTSTS_DISCINT (1 << 29) |
Definition at line 144 of file otg_common.h.
#define OTG_GINTSTS_ENUMDNE (1 << 13) |
Definition at line 159 of file otg_common.h.
#define OTG_GINTSTS_EOPF (1 << 15) |
Definition at line 157 of file otg_common.h.
#define OTG_GINTSTS_ESUSP (1 << 10) |
Definition at line 162 of file otg_common.h.
#define OTG_GINTSTS_GINAKEFF (1 << 6) |
Definition at line 165 of file otg_common.h.
#define OTG_GINTSTS_GONAKEFF (1 << 7) |
Definition at line 164 of file otg_common.h.
#define OTG_GINTSTS_HCINT (1 << 25) |
Definition at line 148 of file otg_common.h.
#define OTG_GINTSTS_HPRTINT (1 << 24) |
Definition at line 149 of file otg_common.h.
#define OTG_GINTSTS_IEPINT (1 << 18) |
Definition at line 155 of file otg_common.h.
#define OTG_GINTSTS_IISOIXFR (1 << 20) |
Definition at line 153 of file otg_common.h.
#define OTG_GINTSTS_INCOMPISOOUT (1 << 21) |
Definition at line 152 of file otg_common.h.
#define OTG_GINTSTS_IPXFR (1 << 21) |
Definition at line 151 of file otg_common.h.
#define OTG_GINTSTS_ISOODRP (1 << 14) |
Definition at line 158 of file otg_common.h.
#define OTG_GINTSTS_MMIS (1 << 1) |
Definition at line 170 of file otg_common.h.
#define OTG_GINTSTS_NPTXFE (1 << 5) |
Definition at line 166 of file otg_common.h.
#define OTG_GINTSTS_OEPINT (1 << 19) |
Definition at line 154 of file otg_common.h.
#define OTG_GINTSTS_OTGINT (1 << 2) |
Definition at line 169 of file otg_common.h.
#define OTG_GINTSTS_PTXFE (1 << 26) |
Definition at line 147 of file otg_common.h.
#define OTG_GINTSTS_RXFLVL (1 << 4) |
Definition at line 167 of file otg_common.h.
#define OTG_GINTSTS_SOF (1 << 3) |
Definition at line 168 of file otg_common.h.
#define OTG_GINTSTS_SRQINT (1 << 30) |
Definition at line 143 of file otg_common.h.
#define OTG_GINTSTS_USBRST (1 << 12) |
Definition at line 160 of file otg_common.h.
#define OTG_GINTSTS_USBSUSP (1 << 11) |
Definition at line 161 of file otg_common.h.
#define OTG_GINTSTS_WKUPINT (1 << 31) |
Definition at line 142 of file otg_common.h.
#define OTG_GNPTXFSIZ 0x028 |
Definition at line 40 of file otg_common.h.
#define OTG_GNPTXSTS 0x02C |
Definition at line 41 of file otg_common.h.
#define OTG_GOTGCTL 0x000 |
Definition at line 30 of file otg_common.h.
#define OTG_GOTGCTL_ASVLD (1 << 18) |
Definition at line 95 of file otg_common.h.
#define OTG_GOTGCTL_BSVLD (1 << 19) |
Definition at line 94 of file otg_common.h.
#define OTG_GOTGCTL_CIDSTS (1 << 16) |
Definition at line 97 of file otg_common.h.
#define OTG_GOTGCTL_DBCT (1 << 17) |
Definition at line 96 of file otg_common.h.
#define OTG_GOTGCTL_DHNPEN (1 << 11) |
Definition at line 98 of file otg_common.h.
#define OTG_GOTGCTL_HNGSCS (1 << 8) |
Definition at line 101 of file otg_common.h.
#define OTG_GOTGCTL_HNPRQ (1 << 9) |
Definition at line 100 of file otg_common.h.
#define OTG_GOTGCTL_HSHNPEN (1 << 10) |
Definition at line 99 of file otg_common.h.
#define OTG_GOTGCTL_SRQ (1 << 1) |
Definition at line 102 of file otg_common.h.
#define OTG_GOTGCTL_SRQSCS (1 << 0) |
Definition at line 103 of file otg_common.h.
#define OTG_GOTGINT 0x004 |
Definition at line 31 of file otg_common.h.
#define OTG_GOTGINT_ADTOCHG (1 << 18) |
Definition at line 107 of file otg_common.h.
#define OTG_GOTGINT_DBCDNE (1 << 19) |
Definition at line 106 of file otg_common.h.
#define OTG_GOTGINT_HNGDET (1 << 17) |
Definition at line 108 of file otg_common.h.
#define OTG_GOTGINT_HNSSCHG (1 << 9) |
Definition at line 109 of file otg_common.h.
#define OTG_GOTGINT_SEDET (1 << 2) |
Definition at line 111 of file otg_common.h.
#define OTG_GOTGINT_SRSSCHG (1 << 8) |
Definition at line 110 of file otg_common.h.
#define OTG_GRSTCTL 0x010 |
Definition at line 34 of file otg_common.h.
#define OTG_GRSTCTL_AHBIDL (1 << 31) |
Definition at line 130 of file otg_common.h.
#define OTG_GRSTCTL_CSRST (1 << 0) |
Definition at line 139 of file otg_common.h.
#define OTG_GRSTCTL_FCRST (1 << 2) |
Definition at line 137 of file otg_common.h.
#define OTG_GRSTCTL_HSRST (1 << 1) |
Definition at line 138 of file otg_common.h.
#define OTG_GRSTCTL_RXFFLSH (1 << 4) |
Definition at line 135 of file otg_common.h.
#define OTG_GRSTCTL_TXFFLSH (1 << 5) |
Definition at line 134 of file otg_common.h.
#define OTG_GRSTCTL_TXFNUM_ALL (0x10 << 6) |
Definition at line 133 of file otg_common.h.
#define OTG_GRSTCTL_TXFNUM_MASK (0x1f << 6) |
Definition at line 132 of file otg_common.h.
#define OTG_GRXFSIZ 0x024 |
Definition at line 39 of file otg_common.h.
#define OTG_GRXSTSP 0x020 |
Definition at line 38 of file otg_common.h.
#define OTG_GRXSTSP_BCNT_MASK (0x7ff << 4) |
Definition at line 219 of file otg_common.h.
#define OTG_GRXSTSP_DPID_DATA0 (0x0 << 15) |
Definition at line 215 of file otg_common.h.
#define OTG_GRXSTSP_DPID_DATA1 (0x2 << 15) |
Definition at line 216 of file otg_common.h.
#define OTG_GRXSTSP_DPID_DATA2 (0x1 << 15) |
Definition at line 217 of file otg_common.h.
#define OTG_GRXSTSP_DPID_MASK (0x3 << 15) |
Definition at line 214 of file otg_common.h.
#define OTG_GRXSTSP_DPID_MDATA (0x3 << 15) |
Definition at line 218 of file otg_common.h.
#define OTG_GRXSTSP_EPNUM_MASK (0xf << 0) |
Definition at line 220 of file otg_common.h.
#define OTG_GRXSTSP_FRMNUM_MASK (0xf << 21) |
Definition at line 203 of file otg_common.h.
#define OTG_GRXSTSP_PKTSTS_CHH (0x7 << 17) |
Definition at line 213 of file otg_common.h.
#define OTG_GRXSTSP_PKTSTS_DTERR (0x5 << 17) |
Definition at line 211 of file otg_common.h.
#define OTG_GRXSTSP_PKTSTS_GOUTNAK (0x1 << 17) |
Definition at line 205 of file otg_common.h.
#define OTG_GRXSTSP_PKTSTS_IN (0x2 << 17) |
Definition at line 207 of file otg_common.h.
#define OTG_GRXSTSP_PKTSTS_IN_COMP (0x3 << 17) |
Definition at line 209 of file otg_common.h.
#define OTG_GRXSTSP_PKTSTS_MASK (0xf << 17) |
Definition at line 204 of file otg_common.h.
#define OTG_GRXSTSP_PKTSTS_OUT (0x2 << 17) |
Definition at line 206 of file otg_common.h.
#define OTG_GRXSTSP_PKTSTS_OUT_COMP (0x3 << 17) |
Definition at line 208 of file otg_common.h.
#define OTG_GRXSTSP_PKTSTS_SETUP (0x6 << 17) |
Definition at line 212 of file otg_common.h.
#define OTG_GRXSTSP_PKTSTS_SETUP_COMP (0x4 << 17) |
Definition at line 210 of file otg_common.h.
#define OTG_GRXSTSR 0x01C |
Definition at line 37 of file otg_common.h.
#define OTG_GUSBCFG 0x00C |
Definition at line 33 of file otg_common.h.
#define OTG_GUSBCFG_CTXPKT 0x80000000 |
Definition at line 126 of file otg_common.h.
#define OTG_GUSBCFG_FDMOD 0x40000000 |
Definition at line 125 of file otg_common.h.
#define OTG_GUSBCFG_FHMOD 0x20000000 |
Definition at line 124 of file otg_common.h.
#define OTG_GUSBCFG_HNPCAP 0x00000200 |
Definition at line 121 of file otg_common.h.
#define OTG_GUSBCFG_NPTXRWEN 0x00004000 |
Definition at line 123 of file otg_common.h.
#define OTG_GUSBCFG_PHYSEL (1 << 6) |
Definition at line 127 of file otg_common.h.
#define OTG_GUSBCFG_SRPCAP 0x00000100 |
Definition at line 120 of file otg_common.h.
#define OTG_GUSBCFG_TOCAL 0x00000003 |
Definition at line 119 of file otg_common.h.
#define OTG_GUSBCFG_TRDT_MASK (0xf << 10) |
Definition at line 122 of file otg_common.h.
#define OTG_HAINT 0x414 |
Definition at line 52 of file otg_common.h.
#define OTG_HAINTMSK 0x418 |
Definition at line 53 of file otg_common.h.
#define OTG_HAINTMSK_HAINT_MASK (0x0000ffff) |
Definition at line 401 of file otg_common.h.
#define OTG_HAINTMSK_HAINTM_MASK (0x0000ffff) |
Definition at line 405 of file otg_common.h.
#define OTG_HCCHAR | ( | x | ) | (0x500 + 0x20*(x)) |
Definition at line 55 of file otg_common.h.
#define OTG_HCCHAR_CHDIS (1 << 30) |
Definition at line 435 of file otg_common.h.
#define OTG_HCCHAR_CHENA (1 << 31) |
Definition at line 434 of file otg_common.h.
#define OTG_HCCHAR_DAD_MASK (0x7f << 22) |
Definition at line 437 of file otg_common.h.
#define OTG_HCCHAR_EPDIR_IN (1 << 15) |
Definition at line 450 of file otg_common.h.
#define OTG_HCCHAR_EPDIR_MASK (1 << 15) |
Definition at line 451 of file otg_common.h.
#define OTG_HCCHAR_EPDIR_OUT (0 << 15) |
Definition at line 449 of file otg_common.h.
#define OTG_HCCHAR_EPNUM_MASK (0xf << 11) |
Definition at line 452 of file otg_common.h.
#define OTG_HCCHAR_EPTYP_BULK (2 << 18) |
Definition at line 444 of file otg_common.h.
#define OTG_HCCHAR_EPTYP_CONTROL (0 << 18) |
Definition at line 442 of file otg_common.h.
#define OTG_HCCHAR_EPTYP_INTERRUPT (3 << 18) |
Definition at line 445 of file otg_common.h.
#define OTG_HCCHAR_EPTYP_ISOCHRONOUS (1 << 18) |
Definition at line 443 of file otg_common.h.
#define OTG_HCCHAR_EPTYP_MASK (3 << 18) |
Definition at line 446 of file otg_common.h.
#define OTG_HCCHAR_LSDEV (1 << 17) |
Definition at line 447 of file otg_common.h.
#define OTG_HCCHAR_MCNT_1 (0x1 << 20) |
Definition at line 438 of file otg_common.h.
#define OTG_HCCHAR_MCNT_2 (0x2 << 20) |
Definition at line 439 of file otg_common.h.
#define OTG_HCCHAR_MCNT_3 (0x3 << 20) |
Definition at line 440 of file otg_common.h.
#define OTG_HCCHAR_MCNT_MASK (0x3 << 20) |
Definition at line 441 of file otg_common.h.
#define OTG_HCCHAR_MPSIZ_MASK (0x7ff << 0) |
Definition at line 453 of file otg_common.h.
#define OTG_HCCHAR_ODDFRM (1 << 29) |
Definition at line 436 of file otg_common.h.
#define OTG_HCFG 0x400 |
Definition at line 48 of file otg_common.h.
#define OTG_HCFG_FSLSPCS_48MHz (0x1 << 0) |
Definition at line 374 of file otg_common.h.
#define OTG_HCFG_FSLSPCS_6MHz (0x2 << 0) |
Definition at line 375 of file otg_common.h.
#define OTG_HCFG_FSLSPCS_MASK (0x3 << 0) |
Definition at line 376 of file otg_common.h.
#define OTG_HCFG_FSLSS (1 << 2) |
Definition at line 373 of file otg_common.h.
#define OTG_HCINT | ( | x | ) | (0x508 + 0x20*(x)) |
Definition at line 56 of file otg_common.h.
#define OTG_HCINT_ACK (1 << 5) |
Definition at line 463 of file otg_common.h.
#define OTG_HCINT_AHBERR (1 << 2) |
Definition at line 467 of file otg_common.h.
#define OTG_HCINT_BBERR (1 << 8) |
Definition at line 459 of file otg_common.h.
#define OTG_HCINT_CHH (1 << 1) |
Definition at line 468 of file otg_common.h.
#define OTG_HCINT_DTERR (1 << 10) |
Definition at line 457 of file otg_common.h.
#define OTG_HCINT_FRMOR (1 << 9) |
Definition at line 458 of file otg_common.h.
#define OTG_HCINT_NAK (1 << 4) |
Definition at line 464 of file otg_common.h.
#define OTG_HCINT_NYET (1 << 6) |
Definition at line 462 of file otg_common.h.
#define OTG_HCINT_STALL (1 << 3) |
Definition at line 465 of file otg_common.h.
#define OTG_HCINT_TXERR (1 << 7) |
Definition at line 460 of file otg_common.h.
#define OTG_HCINT_XFRC (1 << 0) |
Definition at line 469 of file otg_common.h.
#define OTG_HCINTMSK | ( | x | ) | (0x50C + 0x20*(x)) |
Definition at line 57 of file otg_common.h.
#define OTG_HCINTMSK_ACKM (1 << 5) |
Definition at line 479 of file otg_common.h.
#define OTG_HCINTMSK_AHBERR (1 << 2) |
Definition at line 483 of file otg_common.h.
#define OTG_HCINTMSK_BBERRM (1 << 8) |
Definition at line 475 of file otg_common.h.
#define OTG_HCINTMSK_CHHM (1 << 1) |
Definition at line 484 of file otg_common.h.
#define OTG_HCINTMSK_DTERRM (1 << 10) |
Definition at line 473 of file otg_common.h.
#define OTG_HCINTMSK_FRMORM (1 << 9) |
Definition at line 474 of file otg_common.h.
#define OTG_HCINTMSK_NAKM (1 << 4) |
Definition at line 480 of file otg_common.h.
#define OTG_HCINTMSK_NYET (1 << 6) |
Definition at line 478 of file otg_common.h.
#define OTG_HCINTMSK_STALLM (1 << 3) |
Definition at line 481 of file otg_common.h.
#define OTG_HCINTMSK_TXERRM (1 << 7) |
Definition at line 476 of file otg_common.h.
#define OTG_HCINTMSK_XFRCM (1 << 0) |
Definition at line 485 of file otg_common.h.
#define OTG_HCTSIZ | ( | x | ) | (0x510 + 0x20*(x)) |
Definition at line 58 of file otg_common.h.
#define OTG_HCTSIZ_DOPING (1 << 31) |
Definition at line 489 of file otg_common.h.
#define OTG_HCTSIZ_DPID_DATA0 (0x0 << 29) |
Definition at line 490 of file otg_common.h.
#define OTG_HCTSIZ_DPID_DATA1 (0x2 << 29) |
Definition at line 491 of file otg_common.h.
#define OTG_HCTSIZ_DPID_DATA2 (0x1 << 29) |
Definition at line 492 of file otg_common.h.
#define OTG_HCTSIZ_DPID_MASK (0x3 << 29) |
Definition at line 494 of file otg_common.h.
#define OTG_HCTSIZ_DPID_MDATA (0x3 << 29) |
Definition at line 493 of file otg_common.h.
#define OTG_HCTSIZ_PKTCNT_MASK (0x3ff << 19) |
Definition at line 495 of file otg_common.h.
#define OTG_HCTSIZ_XFRSIZ_MASK (0x7ffff << 0) |
Definition at line 496 of file otg_common.h.
#define OTG_HFIR 0x404 |
Definition at line 49 of file otg_common.h.
#define OTG_HFIR_FRIVL_MASK (0x0000ffff) |
Definition at line 380 of file otg_common.h.
#define OTG_HFNUM 0x408 |
Definition at line 50 of file otg_common.h.
#define OTG_HFNUM_FRNUM_MASK (0x0000ffff) |
Definition at line 384 of file otg_common.h.
#define OTG_HFNUM_FTREM_MASK (0xffff0000) |
Definition at line 383 of file otg_common.h.
#define OTG_HNPTXFSIZ_PTXFD_MASK (0xffff0000) |
Definition at line 364 of file otg_common.h.
#define OTG_HNPTXFSIZ_PTXSA_MASK (0x0000ffff) |
Definition at line 365 of file otg_common.h.
#define OTG_HPRT 0x440 |
Definition at line 54 of file otg_common.h.
#define OTG_HPRT_PCDET (1 << 1) |
Definition at line 430 of file otg_common.h.
#define OTG_HPRT_PCSTS (1 << 0) |
Definition at line 431 of file otg_common.h.
#define OTG_HPRT_PENA (1 << 2) |
Definition at line 429 of file otg_common.h.
#define OTG_HPRT_PENCHNG (1 << 3) |
Definition at line 428 of file otg_common.h.
#define OTG_HPRT_PLSTS_DM (1 << 11) |
Definition at line 420 of file otg_common.h.
#define OTG_HPRT_PLSTS_DP (1 << 10) |
Definition at line 421 of file otg_common.h.
#define OTG_HPRT_POCA (1 << 4) |
Definition at line 427 of file otg_common.h.
#define OTG_HPRT_POCCHNG (1 << 5) |
Definition at line 426 of file otg_common.h.
#define OTG_HPRT_PPWR (1 << 12) |
Definition at line 419 of file otg_common.h.
#define OTG_HPRT_PRES (1 << 6) |
Definition at line 425 of file otg_common.h.
#define OTG_HPRT_PRST (1 << 8) |
Definition at line 423 of file otg_common.h.
#define OTG_HPRT_PSPD_FULL (0x1 << 17) |
Definition at line 410 of file otg_common.h.
#define OTG_HPRT_PSPD_HIGH (0x0 << 17) |
Definition at line 409 of file otg_common.h.
#define OTG_HPRT_PSPD_LOW (0x2 << 17) |
Definition at line 411 of file otg_common.h.
#define OTG_HPRT_PSPD_MASK (0x3 << 17) |
Definition at line 412 of file otg_common.h.
#define OTG_HPRT_PSUSP (1 << 7) |
Definition at line 424 of file otg_common.h.
#define OTG_HPRT_PTCTL_DISABLED (0x0 << 13) |
Definition at line 413 of file otg_common.h.
#define OTG_HPRT_PTCTL_FORCE_ENABLE (0x5 << 13) |
Definition at line 418 of file otg_common.h.
#define OTG_HPRT_PTCTL_J (0x1 << 13) |
Definition at line 414 of file otg_common.h.
#define OTG_HPRT_PTCTL_K (0x2 << 13) |
Definition at line 415 of file otg_common.h.
#define OTG_HPRT_PTCTL_PACKET (0x4 << 13) |
Definition at line 417 of file otg_common.h.
#define OTG_HPRT_PTCTL_SE0_NAK (0x3 << 13) |
Definition at line 416 of file otg_common.h.
#define OTG_HPTXFSIZ 0x100 |
Definition at line 44 of file otg_common.h.
#define OTG_HPTXFSIZ_PTXFD_MASK (0xffff0000) |
Definition at line 368 of file otg_common.h.
#define OTG_HPTXFSIZ_PTXSA_MASK (0x0000ffff) |
Definition at line 369 of file otg_common.h.
#define OTG_HPTXSTS 0x410 |
Definition at line 51 of file otg_common.h.
#define OTG_HPTXSTS_PTXFSAVL_MASK (0x0000ffff) |
Definition at line 397 of file otg_common.h.
#define OTG_HPTXSTS_PTXQSAV_MASK (0x00ff0000) |
Definition at line 396 of file otg_common.h.
#define OTG_HPTXSTS_PTXQTOP_CHANNEL_NUMBER_MASK (0xf<<27) |
Definition at line 390 of file otg_common.h.
#define OTG_HPTXSTS_PTXQTOP_ENDPOINT_NUMBER_MASK (0xf<<27) |
Definition at line 391 of file otg_common.h.
#define OTG_HPTXSTS_PTXQTOP_EVENFRM (0<<31) |
Definition at line 389 of file otg_common.h.
#define OTG_HPTXSTS_PTXQTOP_MASK (0xff000000) |
Definition at line 387 of file otg_common.h.
#define OTG_HPTXSTS_PTXQTOP_ODDFRM (1<<31) |
Definition at line 388 of file otg_common.h.
#define OTG_HPTXSTS_PTXQTOP_TERMINATE (1<<24) |
Definition at line 395 of file otg_common.h.
#define OTG_HPTXSTS_PTXQTOP_TYPE_DISABLECMD (0x11<<25) |
Definition at line 394 of file otg_common.h.
#define OTG_HPTXSTS_PTXQTOP_TYPE_INOUT (0x00<<25) |
Definition at line 392 of file otg_common.h.
#define OTG_HPTXSTS_PTXQTOP_TYPE_ZEROLENGTH (0x01<<25) |
Definition at line 393 of file otg_common.h.
#define OTG_PCGCCTL 0xE00 |
Definition at line 86 of file otg_common.h.