summaryrefslogtreecommitdiff
path: root/drivers/serial/usbtty.h
diff options
context:
space:
mode:
authorVipin KUMAR <vipin.kumar@st.com>2012-03-26 15:38:06 +0530
committerMarek Vasut <marek.vasut@gmail.com>2012-03-28 16:31:08 +0200
commitf9da0f894328802cb8aaeb8a24660e37ff624d26 (patch)
tree5906cbda2eee776bc3200bf0e2c20e2378ddc42a /drivers/serial/usbtty.h
parent7cb30b13f12077c7eec8ce2419cd96cd65ace8e2 (diff)
downloadu-boot-imx-f9da0f894328802cb8aaeb8a24660e37ff624d26.zip
u-boot-imx-f9da0f894328802cb8aaeb8a24660e37ff624d26.tar.gz
u-boot-imx-f9da0f894328802cb8aaeb8a24660e37ff624d26.tar.bz2
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 'drivers/serial/usbtty.h')
-rw-r--r--drivers/serial/usbtty.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/serial/usbtty.h b/drivers/serial/usbtty.h
index 60347d7..eb670da 100644
--- a/drivers/serial/usbtty.h
+++ b/drivers/serial/usbtty.h
@@ -70,6 +70,10 @@
#define CONFIG_USBD_SERIAL_INT_PKTSIZE UDC_INT_PACKET_SIZE
#define CONFIG_USBD_SERIAL_BULK_PKTSIZE UDC_BULK_PACKET_SIZE
+#if defined(CONFIG_USBD_HS)
+#define CONFIG_USBD_SERIAL_BULK_HS_PKTSIZE UDC_BULK_HS_PACKET_SIZE
+#endif
+
#define USBTTY_DEVICE_CLASS COMMUNICATIONS_DEVICE_CLASS
#define USBTTY_BCD_DEVICE 0x00