diff options
author | Vipin KUMAR <vipin.kumar@st.com> | 2012-03-26 15:38:06 +0530 |
---|---|---|
committer | Marek Vasut <marek.vasut@gmail.com> | 2012-03-28 16:31:08 +0200 |
commit | f9da0f894328802cb8aaeb8a24660e37ff624d26 (patch) | |
tree | 5906cbda2eee776bc3200bf0e2c20e2378ddc42a /include/usbdescriptors.h | |
parent | 7cb30b13f12077c7eec8ce2419cd96cd65ace8e2 (diff) |
Enable high speed support for USB device framework and usbtty
This patch adds the support for high speed in usb device framework and usbtty
driver. This feature has been kept within a macro CONFIG_USBD_HS, so the board
configuration files have to define this macro to enable high speed support.
Along with that specific peripheral drivers also need to define a function to
let the framework know that the enumeration has happened at high speed.
This function prototype is "int is_usbd_high_speed(void)"
Signed-off-by: Vipin Kumar <vipin.kumar@st.com>
Signed-off-by: Amit Virdi <amit.virdi@st.com>
Diffstat (limited to 'include/usbdescriptors.h')
-rw-r--r-- | include/usbdescriptors.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/include/usbdescriptors.h b/include/usbdescriptors.h index 2dec3b93d65..de1069f0ea9 100644 --- a/include/usbdescriptors.h +++ b/include/usbdescriptors.h @@ -241,6 +241,21 @@ struct usb_device_descriptor { u8 bNumConfigurations; } __attribute__ ((packed)); +#if defined(CONFIG_USBD_HS) +struct usb_qualifier_descriptor { + u8 bLength; + u8 bDescriptorType; + + u16 bcdUSB; + u8 bDeviceClass; + u8 bDeviceSubClass; + u8 bDeviceProtocol; + u8 bMaxPacketSize0; + u8 bNumConfigurations; + u8 breserved; +} __attribute__ ((packed)); +#endif + struct usb_string_descriptor { u8 bLength; u8 bDescriptorType; /* 0x03 */ |