forked from edk2-porting/edk2-rk3588
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This enables the first two DWC3 controllers in host mode (bottom USB-A and Type-C on the ROCK5B). SuperSpeed is disabled for now. Also switch to XhciDxe and EhciDxe from MdeModulePkg and disable OHCI.
- Loading branch information
1 parent
c82240a
commit 05ae220
Showing
9 changed files
with
626 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
/** @file | ||
* DWC3 XHCI Controllers. | ||
* | ||
* Copyright (c) 2023, Mario Bălănică <[email protected]> | ||
* | ||
* SPDX-License-Identifier: BSD-2-Clause-Patent | ||
**/ | ||
|
||
#include "AcpiTables.h" | ||
|
||
Device (XHC0) { | ||
Name (_HID, "PNP0D10") | ||
Name (_UID, Zero) | ||
Name (_CCA, Zero) | ||
|
||
Method (_CRS, 0x0, Serialized) { | ||
Name (RBUF, ResourceTemplate() { | ||
Memory32Fixed (ReadWrite, 0xfc000000, 0x400000) | ||
Interrupt (ResourceConsumer, Level, ActiveHigh, Exclusive) { 252 } | ||
}) | ||
Return (RBUF) | ||
} | ||
} | ||
|
||
Device (XHC1) { | ||
Name (_HID, "PNP0D10") | ||
Name (_UID, One) | ||
Name (_CCA, Zero) | ||
|
||
Method (_CRS, 0x0, Serialized) { | ||
Name (RBUF, ResourceTemplate() { | ||
Memory32Fixed (ReadWrite, 0xfc400000, 0x400000) | ||
Interrupt (ResourceConsumer, Level, ActiveHigh, Exclusive) { 253 } | ||
}) | ||
Return (RBUF) | ||
} | ||
} | ||
|
||
// TODO: This requires set up of the Naneng Combo PIPE PHY2 | ||
// USB2 DP / DM are connected to one of the EHCI controllers instead (EHC1 on ROCK 5B). | ||
/* | ||
Device (XHC2) { | ||
Name (_HID, "PNP0D10") | ||
Name (_UID, Two) | ||
Name (_CCA, Zero) | ||
Method (_CRS, 0x0, Serialized) { | ||
Name (RBUF, ResourceTemplate() { | ||
Memory32Fixed (ReadWrite, 0xfcd00000, 0x400000) | ||
Interrupt (ResourceConsumer, Level, ActiveHigh, Exclusive) { 254 } | ||
}) | ||
Return (RBUF) | ||
} | ||
}*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.