Set usb hc type USB_HC_XHCI in usb init
This commit is contained in:
@@ -845,6 +845,10 @@ int usbh_initialize(uint32_t id, struct usbh_bus *usb)
|
||||
usb->hub_class_head.next = NULL;
|
||||
usb->id = id;
|
||||
|
||||
if (USB3_0_ID == id || USB3_1_ID == id) {
|
||||
usb->usb_hc_type = USB_HC_XHCI;
|
||||
}
|
||||
|
||||
/* ep0_request_buffer allocate virtual address and physical address*/
|
||||
rc = naive_mmap(&vaddr, &paddr, CONFIG_USBHOST_REQUEST_BUFFER_LEN, false);
|
||||
if(rc != 0){
|
||||
|
||||
Reference in New Issue
Block a user