libopencm3
A free/libre/open-source firmware library for various ARM Cortex-M3 microcontrollers.
|
Defined Constants and Types for the USB module More...
Defined Constants and Types for the USB module
LGPL License Terms libopencm3 License
Definition at line 29 of file usb_common.h.
#define USB_CTRL_DMPUAP (1 << 1) |
Definition at line 38 of file usb_common.h.
#define USB_DAINT MMIO32(USB_OTG_BASE + 0x818) |
Definition at line 89 of file usb_common.h.
#define USB_DAINTMSK MMIO32(USB_OTG_BASE + 0x81C) |
Definition at line 90 of file usb_common.h.
#define USB_DCFG MMIO32(USB_OTG_BASE + 0x800) |
Definition at line 84 of file usb_common.h.
#define USB_DCFG_DAD 0x07F0 |
Definition at line 268 of file usb_common.h.
#define USB_DCFG_DSPD 0x0003 |
Definition at line 266 of file usb_common.h.
#define USB_DCFG_NZLSOHSK 0x0004 |
Definition at line 267 of file usb_common.h.
#define USB_DCFG_PFIVL 0x1800 |
Definition at line 269 of file usb_common.h.
#define USB_DCTL MMIO32(USB_OTG_BASE + 0x804) |
Definition at line 85 of file usb_common.h.
#define USB_DCTL_CGONAK (1 << 10) |
Definition at line 256 of file usb_common.h.
#define USB_DCTL_GINSTS (1 << 2) |
Definition at line 261 of file usb_common.h.
#define USB_DCTL_GONSTS (1 << 3) |
Definition at line 260 of file usb_common.h.
#define USB_DCTL_POPRGDNE (1 << 11) |
Definition at line 255 of file usb_common.h.
#define USB_DCTL_RWUSIG (1 << 0) |
Definition at line 263 of file usb_common.h.
#define USB_DCTL_SDIS (1 << 1) |
Definition at line 262 of file usb_common.h.
#define USB_DCTL_SGINAK (1 << 8) |
Definition at line 258 of file usb_common.h.
#define USB_DCTL_SGONAK (1 << 9) |
Definition at line 257 of file usb_common.h.
#define USB_DCTL_TCTL_MASK (7 << 4) |
Definition at line 259 of file usb_common.h.
#define USB_DIEP0CTL USB_DIEPx_CTL(0) |
Definition at line 101 of file usb_common.h.
#define USB_DIEP0CTL_CNAK (1 << 26) |
Definition at line 303 of file usb_common.h.
#define USB_DIEP0CTL_EPDIS (1 << 30) |
Definition at line 299 of file usb_common.h.
#define USB_DIEP0CTL_EPENA (1 << 31) |
Definition at line 298 of file usb_common.h.
#define USB_DIEP0CTL_EPTYP_MASK (0x3 << 18) |
Definition at line 307 of file usb_common.h.
#define USB_DIEP0CTL_MPSIZ_16 (0x2 << 0) |
Definition at line 315 of file usb_common.h.
#define USB_DIEP0CTL_MPSIZ_32 (0x1 << 0) |
Definition at line 314 of file usb_common.h.
#define USB_DIEP0CTL_MPSIZ_64 (0x0 << 0) |
Definition at line 313 of file usb_common.h.
#define USB_DIEP0CTL_MPSIZ_8 (0x3 << 0) |
Definition at line 316 of file usb_common.h.
#define USB_DIEP0CTL_MPSIZ_MASK (0x3 << 0) |
Definition at line 312 of file usb_common.h.
#define USB_DIEP0CTL_NAKSTS (1 << 17) |
Definition at line 308 of file usb_common.h.
#define USB_DIEP0CTL_SD0PID (1 << 28) |
Definition at line 301 of file usb_common.h.
#define USB_DIEP0CTL_SNAK (1 << 27) |
Definition at line 302 of file usb_common.h.
#define USB_DIEP0CTL_STALL (1 << 21) |
Definition at line 305 of file usb_common.h.
#define USB_DIEP0CTL_TXFNUM_MASK (0xf << 22) |
Definition at line 304 of file usb_common.h.
#define USB_DIEP0CTL_USBAEP (1 << 15) |
Definition at line 310 of file usb_common.h.
#define USB_DIEP0INT USB_DIEPx_INT(0) |
Definition at line 103 of file usb_common.h.
#define USB_DIEP0TSIZ USB_DIEPx_TSIZ(0) |
Definition at line 102 of file usb_common.h.
#define USB_DIEP0TSIZ_PKTCNT (1 << 19) |
Definition at line 367 of file usb_common.h.
#define USB_DIEP0TSIZ_STUPCNT_1 (0x1 << 29) |
Definition at line 362 of file usb_common.h.
#define USB_DIEP0TSIZ_STUPCNT_2 (0x2 << 29) |
Definition at line 363 of file usb_common.h.
#define USB_DIEP0TSIZ_STUPCNT_3 (0x3 << 29) |
Definition at line 364 of file usb_common.h.
#define USB_DIEP0TSIZ_STUPCNT_MASK (0x3 << 29) |
Definition at line 365 of file usb_common.h.
#define USB_DIEP0TSIZ_XFRSIZ_MASK (0x7f << 0) |
Definition at line 369 of file usb_common.h.
#define USB_DIEP_INT_EPDISD (1 << 1) |
Definition at line 347 of file usb_common.h.
#define USB_DIEP_INT_INEPNE (1 << 6) |
Definition at line 342 of file usb_common.h.
#define USB_DIEP_INT_ITTXFE (1 << 4) |
Definition at line 344 of file usb_common.h.
#define USB_DIEP_INT_TOC (1 << 3) |
Definition at line 345 of file usb_common.h.
#define USB_DIEP_INT_TXFE (1 << 7) |
Definition at line 341 of file usb_common.h.
#define USB_DIEP_INT_XFRC (1 << 0) |
Definition at line 348 of file usb_common.h.
#define USB_DIEPEMPMSK MMIO32(USB_OTG_BASE + 0x834) |
Definition at line 93 of file usb_common.h.
#define USB_DIEPMSK MMIO32(USB_OTG_BASE + 0x810) |
Definition at line 87 of file usb_common.h.
#define USB_DIEPMSK_BIM (1 << 9) |
Definition at line 273 of file usb_common.h.
#define USB_DIEPMSK_EPDM (1 << 1) |
Definition at line 281 of file usb_common.h.
#define USB_DIEPMSK_INEPNEM (1 << 6) |
Definition at line 276 of file usb_common.h.
#define USB_DIEPMSK_INEPNMM (1 << 5) |
Definition at line 277 of file usb_common.h.
#define USB_DIEPMSK_ITTXFEMSK (1 << 4) |
Definition at line 278 of file usb_common.h.
#define USB_DIEPMSK_TOM (1 << 3) |
Definition at line 279 of file usb_common.h.
#define USB_DIEPMSK_TXFURM (1 << 8) |
Definition at line 274 of file usb_common.h.
#define USB_DIEPMSK_XFRCM (1 << 0) |
Definition at line 282 of file usb_common.h.
#define USB_DIEPTXF | ( | x | ) | MMIO32(USB_OTG_BASE + 0x104 + (4 * ((x) - 1))) |
Definition at line 61 of file usb_common.h.
#define USB_DIEPx_CTL | ( | x | ) | MMIO32(USB_OTG_BASE + 0x900 + ((x) * 0x20)) |
Definition at line 95 of file usb_common.h.
#define USB_DIEPx_INT | ( | x | ) | MMIO32(USB_OTG_BASE + 0x908 + ((x) * 0x20)) |
Definition at line 97 of file usb_common.h.
#define USB_DIEPx_TSIZ | ( | x | ) | MMIO32(USB_OTG_BASE + 0x910 + ((x) * 0x20)) |
Definition at line 99 of file usb_common.h.
#define USB_DOEP0CTL USB_DOEPx_CTL(0) |
Definition at line 111 of file usb_common.h.
#define USB_DOEP0CTL_CNAK (1 << 26) |
Definition at line 324 of file usb_common.h.
#define USB_DOEP0CTL_EPDIS (1 << 30) |
Definition at line 320 of file usb_common.h.
#define USB_DOEP0CTL_EPENA (1 << 31) |
Definition at line 319 of file usb_common.h.
#define USB_DOEP0CTL_EPTYP_MASK (0x3 << 18) |
Definition at line 328 of file usb_common.h.
#define USB_DOEP0CTL_MPSIZ_16 (0x2 << 0) |
Definition at line 336 of file usb_common.h.
#define USB_DOEP0CTL_MPSIZ_32 (0x1 << 0) |
Definition at line 335 of file usb_common.h.
#define USB_DOEP0CTL_MPSIZ_64 (0x0 << 0) |
Definition at line 334 of file usb_common.h.
#define USB_DOEP0CTL_MPSIZ_8 (0x3 << 0) |
Definition at line 337 of file usb_common.h.
#define USB_DOEP0CTL_MPSIZ_MASK (0x3 << 0) |
Definition at line 333 of file usb_common.h.
#define USB_DOEP0CTL_NAKSTS (1 << 17) |
Definition at line 329 of file usb_common.h.
#define USB_DOEP0CTL_SD0PID (1 << 28) |
Definition at line 322 of file usb_common.h.
#define USB_DOEP0CTL_SNAK (1 << 27) |
Definition at line 323 of file usb_common.h.
#define USB_DOEP0CTL_SNPM (1 << 20) |
Definition at line 327 of file usb_common.h.
#define USB_DOEP0CTL_STALL (1 << 21) |
Definition at line 326 of file usb_common.h.
#define USB_DOEP0CTL_USBAEP (1 << 15) |
Definition at line 331 of file usb_common.h.
#define USB_DOEP0INT USB_DOEPx_INT(0) |
Definition at line 113 of file usb_common.h.
#define USB_DOEP0TSIZ USB_DOEPx_TSIZ(0) |
Definition at line 112 of file usb_common.h.
#define USB_DOEP_INT_B2BSTUP (1 << 6) |
Definition at line 352 of file usb_common.h.
#define USB_DOEP_INT_EPDISD (1 << 1) |
Definition at line 357 of file usb_common.h.
#define USB_DOEP_INT_OTEPDIS (1 << 4) |
Definition at line 354 of file usb_common.h.
#define USB_DOEP_INT_SETUP (1 << 3) |
Definition at line 355 of file usb_common.h.
#define USB_DOEP_INT_XFRC (1 << 0) |
Definition at line 358 of file usb_common.h.
#define USB_DOEPMSK MMIO32(USB_OTG_BASE + 0x814) |
Definition at line 88 of file usb_common.h.
#define USB_DOEPMSK_B2BSTUP (1 << 6) |
Definition at line 289 of file usb_common.h.
#define USB_DOEPMSK_BOIM (1 << 9) |
Definition at line 286 of file usb_common.h.
#define USB_DOEPMSK_EPDM (1 << 1) |
Definition at line 294 of file usb_common.h.
#define USB_DOEPMSK_OPEM (1 << 8) |
Definition at line 287 of file usb_common.h.
#define USB_DOEPMSK_OTEPDM (1 << 4) |
Definition at line 291 of file usb_common.h.
#define USB_DOEPMSK_STUPM (1 << 3) |
Definition at line 292 of file usb_common.h.
#define USB_DOEPMSK_XFRCM (1 << 0) |
Definition at line 295 of file usb_common.h.
#define USB_DOEPx_CTL | ( | x | ) | MMIO32(USB_OTG_BASE + 0xB00 + ((x) * 0x20)) |
Definition at line 105 of file usb_common.h.
#define USB_DOEPx_INT | ( | x | ) | MMIO32(USB_OTG_BASE + 0xB08 + ((x) * 0x20)) |
Definition at line 107 of file usb_common.h.
#define USB_DOEPx_TSIZ | ( | x | ) | MMIO32(USB_OTG_BASE + 0xB10 + ((x) * 0x20)) |
Definition at line 109 of file usb_common.h.
#define USB_DSTS MMIO32(USB_OTG_BASE + 0x808) |
Definition at line 86 of file usb_common.h.
#define USB_DVBUSDIS MMIO32(USB_OTG_BASE + 0x828) |
Definition at line 91 of file usb_common.h.
#define USB_DVBUSPULSE MMIO32(USB_OTG_BASE + 0x82C) |
Definition at line 92 of file usb_common.h.
#define USB_FIFOxD | ( | x | ) | (&MMIO32(USB_OTG_BASE + (((x) + 1) << 12))) |
Definition at line 119 of file usb_common.h.
#define USB_GAHBCFG MMIO32(USB_OTG_BASE + 0x008) |
Definition at line 49 of file usb_common.h.
#define USB_GAHBCFG_GLBLINTRMSK 0x0001 |
Definition at line 136 of file usb_common.h.
#define USB_GAHBCFG_PTXFELVL 0x0100 |
Definition at line 138 of file usb_common.h.
#define USB_GAHBCFG_TXFELVL 0x0080 |
Definition at line 137 of file usb_common.h.
#define USB_GCCFG_NOVBUSSENS (1 << 21) |
Definition at line 243 of file usb_common.h.
#define USB_GCCFG_PWRDWN (1 << 16) |
Definition at line 248 of file usb_common.h.
#define USB_GCCFG_SOFOUTEN (1 << 20) |
Definition at line 244 of file usb_common.h.
#define USB_GCCFG_VBUSASEN (1 << 18) |
Definition at line 246 of file usb_common.h.
#define USB_GCCFG_VBUSBSEN (1 << 19) |
Definition at line 245 of file usb_common.h.
#define USB_GDFIFOCFG MMIO32(USB_OTG_BASE + 0x05C) |
Definition at line 59 of file usb_common.h.
#define USB_GINTMSK MMIO32(USB_OTG_BASE + 0x018) |
Definition at line 53 of file usb_common.h.
#define USB_GINTMSK_CIDSCHGM 0x10000000 |
Definition at line 219 of file usb_common.h.
#define USB_GINTMSK_DISCINT 0x20000000 |
Definition at line 220 of file usb_common.h.
#define USB_GINTMSK_ENUMDNEM 0x00002000 |
Definition at line 207 of file usb_common.h.
#define USB_GINTMSK_EOPFM 0x00008000 |
Definition at line 209 of file usb_common.h.
#define USB_GINTMSK_EPMISM 0x00020000 |
Definition at line 210 of file usb_common.h.
#define USB_GINTMSK_ESUSPM 0x00000400 |
Definition at line 204 of file usb_common.h.
#define USB_GINTMSK_GINAKEFFM 0x00000040 |
Definition at line 202 of file usb_common.h.
#define USB_GINTMSK_GONAKEFFM 0x00000080 |
Definition at line 203 of file usb_common.h.
#define USB_GINTMSK_HCIM 0x02000000 |
Definition at line 217 of file usb_common.h.
#define USB_GINTMSK_IEPINT 0x00040000 |
Definition at line 211 of file usb_common.h.
#define USB_GINTMSK_IISOIXFRM 0x00100000 |
Definition at line 213 of file usb_common.h.
#define USB_GINTMSK_IISOOXFRM 0x00200000 |
Definition at line 214 of file usb_common.h.
#define USB_GINTMSK_IPXFRM 0x00200000 |
Definition at line 215 of file usb_common.h.
#define USB_GINTMSK_ISOODRPM 0x00004000 |
Definition at line 208 of file usb_common.h.
#define USB_GINTMSK_MMISM 0x00000002 |
Definition at line 197 of file usb_common.h.
#define USB_GINTMSK_NPTXFEM 0x00000020 |
Definition at line 201 of file usb_common.h.
#define USB_GINTMSK_OEPINT 0x00080000 |
Definition at line 212 of file usb_common.h.
#define USB_GINTMSK_OTGINT 0x00000004 |
Definition at line 198 of file usb_common.h.
#define USB_GINTMSK_PRTIM 0x01000000 |
Definition at line 216 of file usb_common.h.
#define USB_GINTMSK_PTXFEM 0x04000000 |
Definition at line 218 of file usb_common.h.
#define USB_GINTMSK_RXFLVLM 0x00000010 |
Definition at line 200 of file usb_common.h.
#define USB_GINTMSK_SOFM 0x00000008 |
Definition at line 199 of file usb_common.h.
#define USB_GINTMSK_SRQIM 0x40000000 |
Definition at line 221 of file usb_common.h.
#define USB_GINTMSK_USBRST 0x00001000 |
Definition at line 206 of file usb_common.h.
#define USB_GINTMSK_USBSUSPM 0x00000800 |
Definition at line 205 of file usb_common.h.
#define USB_GINTMSK_WUIM 0x80000000 |
Definition at line 222 of file usb_common.h.
#define USB_GINTSTS MMIO32(USB_OTG_BASE + 0x014) |
Definition at line 52 of file usb_common.h.
#define USB_GINTSTS_CIDSCHG (1 << 28) |
Definition at line 168 of file usb_common.h.
#define USB_GINTSTS_CMOD (1 << 0) |
Definition at line 194 of file usb_common.h.
#define USB_GINTSTS_DISCINT (1 << 29) |
Definition at line 167 of file usb_common.h.
#define USB_GINTSTS_ENUMDNE (1 << 13) |
Definition at line 182 of file usb_common.h.
#define USB_GINTSTS_EOPF (1 << 15) |
Definition at line 180 of file usb_common.h.
#define USB_GINTSTS_ESUSP (1 << 10) |
Definition at line 185 of file usb_common.h.
#define USB_GINTSTS_GINAKEFF (1 << 6) |
Definition at line 188 of file usb_common.h.
#define USB_GINTSTS_GONAKEFF (1 << 7) |
Definition at line 187 of file usb_common.h.
#define USB_GINTSTS_HCINT (1 << 25) |
Definition at line 171 of file usb_common.h.
#define USB_GINTSTS_HPRTINT (1 << 24) |
Definition at line 172 of file usb_common.h.
#define USB_GINTSTS_IEPINT (1 << 18) |
Definition at line 178 of file usb_common.h.
#define USB_GINTSTS_IISOIXFR (1 << 20) |
Definition at line 176 of file usb_common.h.
#define USB_GINTSTS_INCOMPISOOUT (1 << 21) |
Definition at line 175 of file usb_common.h.
#define USB_GINTSTS_IPXFR (1 << 21) |
Definition at line 174 of file usb_common.h.
#define USB_GINTSTS_ISOODRP (1 << 14) |
Definition at line 181 of file usb_common.h.
#define USB_GINTSTS_MMIS (1 << 1) |
Definition at line 193 of file usb_common.h.
#define USB_GINTSTS_NPTXFE (1 << 5) |
Definition at line 189 of file usb_common.h.
#define USB_GINTSTS_OEPINT (1 << 19) |
Definition at line 177 of file usb_common.h.
#define USB_GINTSTS_OTGINT (1 << 2) |
Definition at line 192 of file usb_common.h.
#define USB_GINTSTS_PTXFE (1 << 26) |
Definition at line 170 of file usb_common.h.
#define USB_GINTSTS_RXFLVL (1 << 4) |
Definition at line 190 of file usb_common.h.
#define USB_GINTSTS_SOF (1 << 3) |
Definition at line 191 of file usb_common.h.
#define USB_GINTSTS_SRQINT (1 << 30) |
Definition at line 166 of file usb_common.h.
#define USB_GINTSTS_USBRST (1 << 12) |
Definition at line 183 of file usb_common.h.
#define USB_GINTSTS_USBSUSP (1 << 11) |
Definition at line 184 of file usb_common.h.
#define USB_GINTSTS_WKUPINT (1 << 31) |
Definition at line 165 of file usb_common.h.
#define USB_GNPTXFSIZ MMIO32(USB_OTG_BASE + 0x028) |
Definition at line 57 of file usb_common.h.
#define USB_GNPTXSTS MMIO32(USB_OTG_BASE + 0x02C) |
Definition at line 58 of file usb_common.h.
#define USB_GOTGCTL MMIO32(USB_OTG_BASE + 0x000) |
Definition at line 47 of file usb_common.h.
#define USB_GOTGCTL_ASVLD (1 << 18) |
Definition at line 125 of file usb_common.h.
#define USB_GOTGCTL_BSVLD (1 << 19) |
Definition at line 124 of file usb_common.h.
#define USB_GOTGCTL_CIDSTS (1 << 16) |
Definition at line 127 of file usb_common.h.
#define USB_GOTGCTL_DBCT (1 << 17) |
Definition at line 126 of file usb_common.h.
#define USB_GOTGCTL_DHNPEN (1 << 11) |
Definition at line 128 of file usb_common.h.
#define USB_GOTGCTL_HNGSCS (1 << 8) |
Definition at line 131 of file usb_common.h.
#define USB_GOTGCTL_HNPRQ (1 << 9) |
Definition at line 130 of file usb_common.h.
#define USB_GOTGCTL_HSHNPEN (1 << 10) |
Definition at line 129 of file usb_common.h.
#define USB_GOTGCTL_SRQ (1 << 1) |
Definition at line 132 of file usb_common.h.
#define USB_GOTGCTL_SRQSCS (1 << 0) |
Definition at line 133 of file usb_common.h.
#define USB_GOTGINT MMIO32(USB_OTG_BASE + 0x004) |
Definition at line 48 of file usb_common.h.
#define USB_GRSTCTL MMIO32(USB_OTG_BASE + 0x010) |
Definition at line 51 of file usb_common.h.
#define USB_GRSTCTL_AHBIDL (1 << 31) |
Definition at line 154 of file usb_common.h.
#define USB_GRSTCTL_CSRST (1 << 0) |
Definition at line 162 of file usb_common.h.
#define USB_GRSTCTL_FCRST (1 << 2) |
Definition at line 160 of file usb_common.h.
#define USB_GRSTCTL_HSRST (1 << 1) |
Definition at line 161 of file usb_common.h.
#define USB_GRSTCTL_RXFFLSH (1 << 4) |
Definition at line 158 of file usb_common.h.
#define USB_GRSTCTL_TXFFLSH (1 << 5) |
Definition at line 157 of file usb_common.h.
#define USB_GRSTCTL_TXFNUM_MASK (0x1f << 6) |
Definition at line 156 of file usb_common.h.
#define USB_GRXFSIZ MMIO32(USB_OTG_BASE + 0x024) |
Definition at line 56 of file usb_common.h.
#define USB_GRXSTSP MMIO32(USB_OTG_BASE + 0x020) |
Definition at line 55 of file usb_common.h.
#define USB_GRXSTSP_BCNT_MASK (0x7ff << 4) |
Definition at line 238 of file usb_common.h.
#define USB_GRXSTSP_DPID_DATA0 (0x0 << 15) |
Definition at line 234 of file usb_common.h.
#define USB_GRXSTSP_DPID_DATA1 (0x2 << 15) |
Definition at line 235 of file usb_common.h.
#define USB_GRXSTSP_DPID_DATA2 (0x1 << 15) |
Definition at line 236 of file usb_common.h.
#define USB_GRXSTSP_DPID_MASK (0x3 << 15) |
Definition at line 233 of file usb_common.h.
#define USB_GRXSTSP_DPID_MDATA (0x3 << 15) |
Definition at line 237 of file usb_common.h.
#define USB_GRXSTSP_EPNUM_MASK (0xf << 0) |
Definition at line 239 of file usb_common.h.
#define USB_GRXSTSP_FRMNUM_MASK (0xf << 21) |
Definition at line 226 of file usb_common.h.
#define USB_GRXSTSP_PKTSTS_GOUTNAK (0x1 << 17) |
Definition at line 228 of file usb_common.h.
#define USB_GRXSTSP_PKTSTS_MASK (0xf << 17) |
Definition at line 227 of file usb_common.h.
#define USB_GRXSTSP_PKTSTS_OUT (0x2 << 17) |
Definition at line 229 of file usb_common.h.
#define USB_GRXSTSP_PKTSTS_OUT_COMP (0x3 << 17) |
Definition at line 230 of file usb_common.h.
#define USB_GRXSTSP_PKTSTS_SETUP (0x6 << 17) |
Definition at line 232 of file usb_common.h.
#define USB_GRXSTSP_PKTSTS_SETUP_COMP (0x4 << 17) |
Definition at line 231 of file usb_common.h.
#define USB_GRXSTSR MMIO32(USB_OTG_BASE + 0x01C) |
Definition at line 54 of file usb_common.h.
#define USB_GUSBCFG MMIO32(USB_OTG_BASE + 0x00C) |
Definition at line 50 of file usb_common.h.
#define USB_GUSBCFG_CTXPKT 0x80000000 |
Definition at line 150 of file usb_common.h.
#define USB_GUSBCFG_FDMOD 0x40000000 |
Definition at line 149 of file usb_common.h.
#define USB_GUSBCFG_FHMOD 0x20000000 |
Definition at line 148 of file usb_common.h.
#define USB_GUSBCFG_HNPCAP 0x00000200 |
Definition at line 143 of file usb_common.h.
#define USB_GUSBCFG_NPTXRWEN 0x00004000 |
Definition at line 147 of file usb_common.h.
#define USB_GUSBCFG_PHYSEL (1 << 7) |
Definition at line 151 of file usb_common.h.
#define USB_GUSBCFG_SRPCAP 0x00000100 |
Definition at line 142 of file usb_common.h.
#define USB_GUSBCFG_TOCAL 0x00000003 |
Definition at line 141 of file usb_common.h.
#define USB_GUSBCFG_TRDT_16BIT (0x5 << 10) |
Definition at line 145 of file usb_common.h.
#define USB_GUSBCFG_TRDT_8BIT (0x9 << 10) |
Definition at line 146 of file usb_common.h.
#define USB_GUSBCFG_TRDT_MASK (0xf << 10) |
Definition at line 144 of file usb_common.h.
#define USB_HAINT MMIO32(USB_OTG_BASE + 0x414) |
Definition at line 69 of file usb_common.h.
#define USB_HAINTMSK MMIO32(USB_OTG_BASE + 0x418) |
Definition at line 70 of file usb_common.h.
#define USB_HCFG MMIO32(USB_OTG_BASE + 0x400) |
Definition at line 65 of file usb_common.h.
#define USB_HCx_CHAR | ( | x | ) | MMIO32(USB_OTG_BASE + 0x500 + ((x) * 0x20)) |
Definition at line 72 of file usb_common.h.
#define USB_HCx_DMAADDR | ( | x | ) | MMIO32(USB_OTG_BASE + 0x514 + ((x) * 0x20)) |
Definition at line 80 of file usb_common.h.
#define USB_HCx_INT | ( | x | ) | MMIO32(USB_OTG_BASE + 0x508 + ((x) * 0x20)) |
Definition at line 74 of file usb_common.h.
#define USB_HCx_INTMSK | ( | x | ) | MMIO32(USB_OTG_BASE + 0x50C + ((x) * 0x20)) |
Definition at line 76 of file usb_common.h.
#define USB_HCx_TSIZ | ( | x | ) | MMIO32(USB_OTG_BASE + 0x510 + ((x) * 0x20)) |
Definition at line 78 of file usb_common.h.
#define USB_HFIR MMIO32(USB_OTG_BASE + 0x404) |
Definition at line 66 of file usb_common.h.
#define USB_HFNUM MMIO32(USB_OTG_BASE + 0x408) |
Definition at line 67 of file usb_common.h.
#define USB_HPRT MMIO32(USB_OTG_BASE + 0x440) |
Definition at line 71 of file usb_common.h.
#define USB_HPTXFSIZ MMIO32(USB_OTG_BASE + 0x100) |
Definition at line 60 of file usb_common.h.
#define USB_HPTXSTS MMIO32(USB_OTG_BASE + 0x410) |
Definition at line 68 of file usb_common.h.
Definition at line 34 of file usb_common.h.
Definition at line 31 of file usb_common.h.
Definition at line 33 of file usb_common.h.
Definition at line 32 of file usb_common.h.
#define USB_OTG_BASE (USB_BASE + 0x3C000) |
Definition at line 46 of file usb_common.h.
#define USB_PCGCCTL MMIO32(USB_OTG_BASE + 0xE00) |
Definition at line 116 of file usb_common.h.
Definition at line 35 of file usb_common.h.
#define USB_ROUTE_DMPUPEN (1 << 2) |
Definition at line 41 of file usb_common.h.
#define USB_ROUTE_PHYPEN (1 << 0) |
Definition at line 43 of file usb_common.h.
#define USB_ROUTE_VBUSENPEN (1 << 1) |
Definition at line 42 of file usb_common.h.
Definition at line 30 of file usb_common.h.