]> git.sur5r.net Git - u-boot/blobdiff - common/usb.c
OMAP5: Enable USB Ethernet support with LAN9730
[u-boot] / common / usb.c
index 8407974f773c69173354463ac24108a083bc5439..55fff5b1e8380c988baa7ceb89ab2a9e32aa0d76 100644 (file)
@@ -409,6 +409,11 @@ static int usb_parse_config(struct usb_device *dev,
                                        wMaxPacketSize);
                        debug("if %d, ep %d\n", ifno, epno);
                        break;
+               case USB_DT_SS_ENDPOINT_COMP:
+                       if_desc = &dev->config.if_desc[ifno];
+                       memcpy(&if_desc->ss_ep_comp_desc[epno],
+                               &buffer[index], buffer[index]);
+                       break;
                default:
                        if (head->bLength == 0)
                                return 1;
@@ -879,6 +884,11 @@ int usb_new_device(struct usb_device *dev)
        }
 
        dev->descriptor.bMaxPacketSize0 = desc->bMaxPacketSize0;
+       /*
+        * Fetch the device class, driver can use this info
+        * to differentiate between HUB and DEVICE.
+        */
+       dev->descriptor.bDeviceClass = desc->bDeviceClass;
 
        /* find the port number we're at */
        if (parent) {