commit | 365250e61ec8b87a4355fca8cea32c9ae57eca05 | [log] [tgz] |
---|---|---|
author | huang lin <hl@rock-chips.com> | Wed Aug 06 16:43:43 2014 +0800 |
committer | Patrick Georgi <pgeorgi@google.com> | Tue Apr 14 10:42:54 2015 +0200 |
tree | 86ba12488a4864966acb86a63575111bc0e2c866 | |
parent | fff922bd14bca42841df88e940680766cdcfb431 [diff] [blame] |
libpayload: Add dwc2 usb driver BUG=chrome-os-partner:29778 TEST=emerge-veyron libpayload Change-Id: I33f312a939e600b8f4e50a092bb61c5d6bc6d741 Signed-off-by: Patrick Georgi <pgeorgi@chromium.org> Original-Commit-Id: 39ffe53336a2a3b2baa067cdd3dccca5ae93f68e Original-Change-Id: Idad1ad165fd44df635a0cb13bfec6fada1378bc8 Original-Signed-off-by: huang lin <hl@rock-chips.com> Original-Reviewed-on: https://chromium-review.googlesource.com/211053 Original-Reviewed-by: Julius Werner <jwerner@chromium.org> Reviewed-on: http://review.coreboot.org/9453 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi <pgeorgi@google.com>
diff --git a/payloads/libpayload/drivers/usb/usbinit.c b/payloads/libpayload/drivers/usb/usbinit.c index 4225c3f..7a5828d 100644 --- a/payloads/libpayload/drivers/usb/usbinit.c +++ b/payloads/libpayload/drivers/usb/usbinit.c
@@ -34,6 +34,7 @@ #include "ohci.h" #include "ehci.h" #include "xhci.h" +#include "dwc2.h" #include <usb/usbdisk.h> #ifdef CONFIG_LP_USB_PCI @@ -182,6 +183,10 @@ case EHCI: return ehci_init((unsigned long)bar); #endif +#ifdef CONFIG_LP_USB_DWC2 + case DWC2: + return dwc2_init(bar); +#endif #ifdef CONFIG_LP_USB_XHCI case XHCI: return xhci_init((unsigned long)bar);