diff options
Diffstat (limited to 'include/libopencm3/usb/dwc/otg_hs.h')
-rw-r--r-- | include/libopencm3/usb/dwc/otg_hs.h | 27 |
1 files changed, 26 insertions, 1 deletions
diff --git a/include/libopencm3/usb/dwc/otg_hs.h b/include/libopencm3/usb/dwc/otg_hs.h index 7b5124cd..b85d7c61 100644 --- a/include/libopencm3/usb/dwc/otg_hs.h +++ b/include/libopencm3/usb/dwc/otg_hs.h @@ -141,7 +141,7 @@ #define OTG_DIEPEACHMSK1_INEPNMM (1 << 5) #define OTG_DIEPEACHMSK1_ITTXFEMSK (1 << 4) #define OTG_DIEPEACHMSK1_TOM (1 << 3) -/* Bit 2 - Reserved */ +/* Bit 2 - Reserved */ #define OTG_DIEPEACHMSK1_EPDM (1 << 1) #define OTG_DIEPEACHMSK1_XFRCM (1 << 0) @@ -170,4 +170,29 @@ #define OTG_HCSPLT_HUBADDR_MASK (0x7f << 7) #define OTG_HCSPLT_PORTADDR_MASK (0x7f << 0) +/* OTG USB configuration register (OTG_GUSBCFG) */ +#define OTG_GUSBCFG_ULPIIPD (1 << 25) +#define OTG_GUSBCFG_PTCI (1 << 24) +#define OTG_GUSBCFG_PCCI (1 << 23) +#define OTG_GUSBCFG_TSDPS (1 << 22) +#define OTG_GUSBCFG_ULPIEVBUSI (1 << 21) +#define OTG_GUSBCFG_ULPIEVBUSD (1 << 20) +#define OTG_GUSBCFG_ULPICSM (1 << 19) +#define OTG_GUSBCFG_ULPIAR (1 << 18) +#define OTG_GUSBCFG_ULPIFSLS (1 << 17) +#define OTG_GUSBCFG_PHYLPCS (1 << 15) + +/* OTG device configuration register (OTG_DCFG) */ +#define OTG_DCFG_DSPD_HS_EXT (0x0 << 0) +#define OTG_DCFG_DSPD_FS_EXT (0x1 << 0) + +/* OTG AHB configuration register (OTG_GAHBCFG) */ +#define OTG_GAHBCFG_HBSTLEN_MASK (0xf << 1) +#define OTG_GAHBCFG_HBSTLEN_SINGLE (0b0000 << 1) +#define OTG_GAHBCFG_HBSTLEN_INCR (0b0001 << 1) +#define OTG_GAHBCFG_HBSTLEN_INCR4 (0b0011 << 1) +#define OTG_GAHBCFG_HBSTLEN_INCR8 (0b0101 << 1) +#define OTG_GAHBCFG_HBSTLEN_INCR16 (0b0111 << 1) +#define OTG_GAHBCFG_DMAEN (1 << 5) + #endif |