From e34d688cc35931dc7923903c5d94494a956c3028 Mon Sep 17 00:00:00 2001 From: xj Date: Mon, 1 Jul 2024 01:37:23 -0700 Subject: [PATCH] Modify xhci_legacy_init so that the xHCI can adapt to XiZi AIOT --- .../XiZi_AIoT/services/drivers/usb/components/port/xhci/xhci.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Ubiquitous/XiZi_AIoT/services/drivers/usb/components/port/xhci/xhci.c b/Ubiquitous/XiZi_AIoT/services/drivers/usb/components/port/xhci/xhci.c index accd06a45..a86acaf22 100644 --- a/Ubiquitous/XiZi_AIoT/services/drivers/usb/components/port/xhci/xhci.c +++ b/Ubiquitous/XiZi_AIoT/services/drivers/usb/components/port/xhci/xhci.c @@ -327,7 +327,8 @@ static void xhci_legacy_init ( struct xhci_host *xhci ) { /* Check if legacy USB support is enabled */ USB_LOG_DBG("XHCI %s bios offset 0x%x\n", xhci->name, (xhci->cap + legacy + XHCI_USBLEGSUP_BIOS)); /* bios = readb ( xhci->cap + legacy + XHCI_USBLEGSUP_BIOS ); cannot access offset 0x2, work around */ - bios = readl ( xhci->cap + legacy ); +// bios = readl ( xhci->cap + legacy ); + bios = readl ( xhci->cap_addr + legacy ); bios = (bios >> 16) & 0xffff; if ( ! ( bios & XHCI_USBLEGSUP_BIOS_OWNED ) ) { /* Not an error; already owned by OS */