summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--port/ehci/usb_hc_ehci.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/port/ehci/usb_hc_ehci.c b/port/ehci/usb_hc_ehci.c
index e278f523..fd72907f 100644
--- a/port/ehci/usb_hc_ehci.c
+++ b/port/ehci/usb_hc_ehci.c
@@ -774,6 +774,8 @@ int usb_hc_init(struct usbh_bus *bus)
volatile uint32_t timeout = 0;
uint32_t regval;
+ bus->hcd.roothub.speed = USB_SPEED_HIGH;
+
memset(&g_ehci_hcd[bus->hcd.hcd_id], 0, sizeof(struct ehci_hcd));
memset(ehci_qh_pool[bus->hcd.hcd_id], 0, sizeof(struct ehci_qh_hw) * CONFIG_USB_EHCI_QH_NUM);
memset(ehci_qtd_pool[bus->hcd.hcd_id], 0, sizeof(struct ehci_qtd_hw) * CONFIG_USB_EHCI_QTD_NUM);