diff options
author | erictian <erictian@6f19259b-4bc3-4df7-8a09-765794883524> | 2011-08-23 14:36:33 +0000 |
---|---|---|
committer | erictian <erictian@6f19259b-4bc3-4df7-8a09-765794883524> | 2011-08-23 14:36:33 +0000 |
commit | 92870c983c6d99d31f449d8dcd729090255dda49 (patch) | |
tree | e38460d4f6151ea738bd057c8938452c5cfb61ae /MdeModulePkg/Bus/Usb/UsbBusDxe/UsbDesc.c | |
parent | da910a42c0421a9895898537026276acf0935099 (diff) | |
download | edk2-platforms-92870c983c6d99d31f449d8dcd729090255dda49.tar.xz |
Enabling usb3.0 XHCI support.
Signed-off-by: erictian
Reviewed-by: jshi19
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12185 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Bus/Usb/UsbBusDxe/UsbDesc.c')
-rw-r--r-- | MdeModulePkg/Bus/Usb/UsbBusDxe/UsbDesc.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/MdeModulePkg/Bus/Usb/UsbBusDxe/UsbDesc.c b/MdeModulePkg/Bus/Usb/UsbBusDxe/UsbDesc.c index 55fe5c873c..529b136188 100644 --- a/MdeModulePkg/Bus/Usb/UsbBusDxe/UsbDesc.c +++ b/MdeModulePkg/Bus/Usb/UsbBusDxe/UsbDesc.c @@ -527,12 +527,14 @@ UsbGetMaxPacketSize0 ( // Get the first 8 bytes of the device descriptor which contains
// max packet size for endpoint 0, which is at least 8.
//
- UsbDev->MaxPacket0 = 8;
-
for (Index = 0; Index < 3; Index++) {
Status = UsbCtrlGetDesc (UsbDev, USB_DESC_TYPE_DEVICE, 0, 0, &DevDesc, 8);
if (!EFI_ERROR (Status)) {
+ if ((DevDesc.BcdUSB == 0x0300) && (DevDesc.MaxPacketSize0 == 9)) {
+ UsbDev->MaxPacket0 = 1 << 9;
+ return EFI_SUCCESS;
+ }
UsbDev->MaxPacket0 = DevDesc.MaxPacketSize0;
return EFI_SUCCESS;
}
|