summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsakumisu <[email protected]>2026-01-25 17:02:20 +0800
committersakumisu <[email protected]>2026-01-28 13:15:53 +0800
commit1a3343bc114b1db7f2aeed05ae0b047772b41888 (patch)
tree4a45c77ddea353a3c9c8cd4df188657e491adb07
parent0c86f1f5ff5f096138a6b6a12a3a5a272b552172 (diff)
update(port/ehci): set roothub speed to high
Signed-off-by: sakumisu <[email protected]>
-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);