forked from xuos/xiuos
Modify xhci_legacy_init so that the xHCI can adapt to XiZi AIOT
This commit is contained in:
parent
eac58cedec
commit
e34d688cc3
|
@ -327,7 +327,8 @@ static void xhci_legacy_init ( struct xhci_host *xhci ) {
|
||||||
/* Check if legacy USB support is enabled */
|
/* 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));
|
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 = 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;
|
bios = (bios >> 16) & 0xffff;
|
||||||
if ( ! ( bios & XHCI_USBLEGSUP_BIOS_OWNED ) ) {
|
if ( ! ( bios & XHCI_USBLEGSUP_BIOS_OWNED ) ) {
|
||||||
/* Not an error; already owned by OS */
|
/* Not an error; already owned by OS */
|
||||||
|
|
Loading…
Reference in New Issue