-
Notifications
You must be signed in to change notification settings - Fork 92
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Expose USB EHCI + OHCI controllers in ACPI
- EHCI is exposed conditionally (via a user setting) and disabled by default due to Windows compatibility issues. - OHCI is exposed at all times. Windows on Arm does not have a driver for it.
- Loading branch information
1 parent
e762111
commit d999a44
Showing
39 changed files
with
512 additions
and
368 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
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
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
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
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
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
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
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
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
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
108 changes: 108 additions & 0 deletions
108
edk2-rockchip/Silicon/Rockchip/RK3588/AcpiTables/Usb1Host.asl
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,108 @@ | ||
/** @file | ||
* | ||
* USB 1.1 (OHCI) controllers. | ||
* | ||
* Copyright (c) 2022, Rockchip Electronics Co., Ltd | ||
* Copyright (c) 2023, Mario Bălănică <[email protected]> | ||
* | ||
* SPDX-License-Identifier: BSD-2-Clause-Patent | ||
* | ||
**/ | ||
|
||
#include "AcpiTables.h" | ||
|
||
Device (OHC0) { | ||
Name (_HID, "PRP0001") | ||
Name (_CLS, Package() { 0x0c, 0x03, 0x10 }) | ||
Name (_UID, Zero) | ||
Name (_CCA, Zero) | ||
|
||
Name (_DSD, Package () { | ||
ToUUID("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"), | ||
Package () { | ||
Package () { "compatible", "generic-ohci" }, | ||
} | ||
}) | ||
|
||
Method (_CRS, 0x0, Serialized) { | ||
Name (RBUF, ResourceTemplate() { | ||
Memory32Fixed (ReadWrite, 0xFC840000, 0x40000) | ||
Interrupt (ResourceConsumer, Level, ActiveHigh, Exclusive) { 248 } | ||
}) | ||
Return (RBUF) | ||
} | ||
|
||
Device (RHUB) { | ||
Name (_ADR, 0) | ||
Device (PRT1) { | ||
Name (_ADR, 1) | ||
Name (_UPC, Package() { | ||
0xFF, // Port is connectable | ||
0x00, // Connector type - Type 'A' | ||
0x00000000, // Reserved, must be zero | ||
0x00000000 // Reserved, must be zero | ||
}) | ||
Name (_PLD, Package (0x01) { | ||
ToPLD ( | ||
PLD_Revision = 0x2, | ||
PLD_IgnoreColor = 0x1, | ||
PLD_UserVisible = 0x1, | ||
PLD_Panel = "UNKNOWN", | ||
PLD_VerticalPosition = "UPPER", | ||
PLD_HorizontalPosition = "LEFT", | ||
PLD_Shape = "HORIZONTALRECTANGLE", | ||
PLD_Ejectable = 0x1, | ||
PLD_EjectRequired = 0x1, | ||
) | ||
}) | ||
} | ||
} | ||
} | ||
|
||
Device (OHC1) { | ||
Name (_HID, "PRP0001") | ||
Name (_CLS, Package() { 0x0c, 0x03, 0x10 }) | ||
Name (_UID, One) | ||
Name (_CCA, Zero) | ||
|
||
Name (_DSD, Package () { | ||
ToUUID("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"), | ||
Package () { | ||
Package () { "compatible", "generic-ohci" }, | ||
} | ||
}) | ||
|
||
Method (_CRS, 0x0, Serialized) { | ||
Name (RBUF, ResourceTemplate() { | ||
Memory32Fixed (ReadWrite, 0xFC8C0000, 0x40000) | ||
Interrupt (ResourceConsumer, Level, ActiveHigh, Exclusive) { 251 } | ||
}) | ||
Return (RBUF) | ||
} | ||
|
||
Device (RHUB) { | ||
Name (_ADR, 0) | ||
Device (PRT1) { | ||
Name (_ADR, 1) | ||
Name (_UPC, Package() { | ||
0xFF, // Port is connectable | ||
0x00, // Connector type - Type 'A' | ||
0x00000000, // Reserved, must be zero | ||
0x00000000 // Reserved, must be zero | ||
}) | ||
Name (_PLD, Package (0x01) { | ||
ToPLD ( | ||
PLD_Revision = 0x2, | ||
PLD_IgnoreColor = 0x1, | ||
PLD_UserVisible = 0x1, | ||
PLD_Panel = "UNKNOWN", | ||
PLD_VerticalPosition = "LOWER", | ||
PLD_HorizontalPosition = "LEFT", | ||
PLD_Shape = "HORIZONTALRECTANGLE", | ||
PLD_Ejectable = 0x1, | ||
PLD_EjectRequired = 0x1, | ||
) | ||
}) | ||
} | ||
} | ||
} |
Oops, something went wrong.