Modify dwc3_generic_probe

This commit is contained in:
songyanguang 2024-09-12 18:50:59 +08:00
parent 43a771c15c
commit b51c911252
1 changed files with 6 additions and 0 deletions

View File

@ -25,6 +25,7 @@ int dwc3_generic_host_probe(uint32_t id)
{
struct dwc3 *dwc3;
USB_LOG_DBG("%s usb3.0 id=%d\r\n", __func__, id);
USB_ASSERT(id < CONFIG_USBHOST_XHCI_NUM);
dwc3 = &(dwc3_rk3568[id]);
memset(dwc3, 0, sizeof(*dwc3));
@ -46,6 +47,11 @@ int dwc3_generic_probe(struct dwc3 *dwc3)
dwc3_of_parse(dwc3);
/* TODO: */
rc = dwc3_setup_phy(NULL, NULL, NULL);
if (rc)
return rc;
base = usb_hc_get_register_base(dwc3->id);
base_vir = usb_hc_get_register_vir_base(dwc3->id);