diff options
author | hselasky <hselasky@FreeBSD.org> | 2015-03-05 10:04:34 +0000 |
---|---|---|
committer | hselasky <hselasky@FreeBSD.org> | 2015-03-05 10:04:34 +0000 |
commit | 559bd2313e8f55181115eaa9d88f07e3c2346dc1 (patch) | |
tree | eaf730eb7c262cea2df7887e7c8b882bba8038c0 /sys/dev/usb/controller/dwc_otgreg.h | |
parent | cce776ae0744f38846584229b374afb9d7fe8c11 (diff) | |
download | FreeBSD-src-559bd2313e8f55181115eaa9d88f07e3c2346dc1.zip FreeBSD-src-559bd2313e8f55181115eaa9d88f07e3c2346dc1.tar.gz |
MFC r279210:
Add support for the DWC OTG v2 chipset found in the STM32F4 series of
processors. Make sure we pullup the data lines in device mode when we
power on the port.
Diffstat (limited to 'sys/dev/usb/controller/dwc_otgreg.h')
-rw-r--r-- | sys/dev/usb/controller/dwc_otgreg.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sys/dev/usb/controller/dwc_otgreg.h b/sys/dev/usb/controller/dwc_otgreg.h index 344d36a..8ab3582 100644 --- a/sys/dev/usb/controller/dwc_otgreg.h +++ b/sys/dev/usb/controller/dwc_otgreg.h @@ -196,6 +196,14 @@ #define GUSBCFG_TOUTCAL_MASK 0x00000007 #define GUSBCFG_TOUTCAL_SHIFT 0 +/* STM32F4 */ +#define DOTG_GGPIO_NOVBUSSENS (1 << 21) +#define DOTG_GGPIO_SOFOUTEN (1 << 20) +#define DOTG_GGPIO_VBUSBSEN (1 << 19) +#define DOTG_GGPIO_VBUSASEN (1 << 18) +#define DOTG_GGPIO_I2CPADEN (1 << 17) +#define DOTG_GGPIO_PWRDWN (1 << 16) + #define GRSTCTL_AHBIDLE (1<<31) #define GRSTCTL_DMAREQ (1<<30) #define GRSTCTL_TXFNUM_MASK 0x000007c0 |