diff options
author | Mark Kettenis <kettenis@openbsd.org> | 2021-09-16 17:00:09 +0300 |
---|---|---|
committer | Marek Vasut <marex@denx.de> | 2021-09-22 22:29:56 +0300 |
commit | 53eed9adfac17921511ebf9e00c429bcb385d231 (patch) | |
tree | cd8be5e61c792ba194c2bcf4fd7f40c470455efa /drivers/usb | |
parent | 0f513c5975105a8cfdf80cc9862e4c65826ead84 (diff) | |
download | u-boot-53eed9adfac17921511ebf9e00c429bcb385d231.tar.xz |
usb: xhci-dwc3: Add support for USB 3.1 controllers
This adds support for the DWC_sub31 controllers such as those
found on Apple's M1 SoC. This version of the controller
seems to work fine with the existing driver.
Signed-off-by: Mark Kettenis <kettenis@openbsd.org>
Diffstat (limited to 'drivers/usb')
-rw-r--r-- | drivers/usb/host/xhci-dwc3.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/usb/host/xhci-dwc3.c b/drivers/usb/host/xhci-dwc3.c index 5b12d1358e..bec0d98081 100644 --- a/drivers/usb/host/xhci-dwc3.c +++ b/drivers/usb/host/xhci-dwc3.c @@ -74,7 +74,8 @@ int dwc3_core_init(struct dwc3 *dwc3_reg) revision = readl(&dwc3_reg->g_snpsid); /* This should read as U3 followed by revision number */ - if ((revision & DWC3_GSNPSID_MASK) != 0x55330000) { + if ((revision & DWC3_GSNPSID_MASK) != 0x55330000 && + (revision & DWC3_GSNPSID_MASK) != 0x33310000) { puts("this is not a DesignWare USB3 DRD Core\n"); return -1; } |