summaryrefslogtreecommitdiff
path: root/include/usbdevice.h
diff options
context:
space:
mode:
authorJustin Waters <justin.waters@timesys.com>2013-04-24 17:41:45 -0400
committerJustin Waters <justin.waters@timesys.com>2013-04-24 17:41:45 -0400
commit18282017b14c0b32b4aa6fd05df58ba5cff0b472 (patch)
tree24344ef4d64f38baee4f5b56a9b44cc775ab4b62 /include/usbdevice.h
parent75c641ece39c136001340df61f0ad57028ce4ffc (diff)
LogicPD Support for OMAP3/DM3/AM3 boards 2.2 Update
Diffstat (limited to 'include/usbdevice.h')
-rw-r--r--include/usbdevice.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/include/usbdevice.h b/include/usbdevice.h
index 41716364b3..d46fa06789 100644
--- a/include/usbdevice.h
+++ b/include/usbdevice.h
@@ -291,8 +291,9 @@ struct usb_bus_instance;
* USB Spec Release number
*/
+#ifndef USB_BCD_VERSION
#define USB_BCD_VERSION 0x0110
-
+#endif
/*
* Device Requests (c.f Table 9-2)
@@ -467,7 +468,11 @@ typedef struct urb_link {
* function driver to inform it that data has arrived.
*/
+#if USB_BCD_VERSION == 0x0200
+#define URB_BUF_SIZE 2048
+#else
#define URB_BUF_SIZE 128 /* in linux we'd malloc this, but in u-boot we prefer static data */
+#endif
struct urb {
struct usb_endpoint_instance *endpoint;
@@ -595,6 +600,7 @@ struct usb_device_instance {
unsigned long usbd_rxtx_timestamp;
unsigned long usbd_last_rxtx_timestamp;
+ unsigned int speed;
};
/* Bus Interface configuration structure