diff options
author | Nick Sanders <nsanders@chromium.org> | 2016-08-02 19:35:44 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2016-09-01 22:56:22 -0700 |
commit | a4bfc663a3cd645b43963bb814269efe864f8d1e (patch) | |
tree | 185ab7cc413c4b580ea50845a024838aba577732 /include/usb_descriptor.h | |
parent | 54f4612764e07e5e3ccd8a4af04ee83a46454612 (diff) | |
download | chrome-ec-a4bfc663a3cd645b43963bb814269efe864f8d1e.tar.gz |
sweetberry: add dwc usb support
stm32f446 uses a synopsys designware USB block
rather than the typical ST one. This change adds driver support
for the new block, including usb console support.
BUG=chromium:608039
TEST=usb console works
BRANCH=None
Change-Id: I0e143758ae0b5285f1c94ea2ec5aee159e22e00c
Signed-off-by: Nick Sanders <nsanders@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/365448
Reviewed-by: Randall Spangler <rspangler@chromium.org>
Diffstat (limited to 'include/usb_descriptor.h')
-rw-r--r-- | include/usb_descriptor.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/include/usb_descriptor.h b/include/usb_descriptor.h index 22f2c08257..1920db7938 100644 --- a/include/usb_descriptor.h +++ b/include/usb_descriptor.h @@ -89,6 +89,20 @@ struct usb_contid_caps_descriptor { #define USB_DC_DTYPE_BILLBOARD 0x0d /* RESERVED 0x00, 0xOe - 0xff */ +/* Qualifier Descriptor */ +struct usb_qualifier_descriptor { + uint8_t bLength; + uint8_t bDescriptorType; + uint16_t bcdUSB; + uint8_t bDeviceClass; + uint8_t bDeviceSubClass; + uint8_t bDeviceProtocol; + uint8_t bMaxPacketSize0; + uint8_t bNumConfigurations; + uint8_t bReserved; +} __packed; +#define USB_DT_QUALIFIER_SIZE 10 + /* Configuration Descriptor */ struct usb_config_descriptor { uint8_t bLength; |