forked from RehabMan/OS-X-Clover-Laptop-Config
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add SSDT-USB.dsl; drop MCFG table; change to MacBookPro8,2
- Loading branch information
Showing
14 changed files
with
173 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
// Automatic injection of USB power properties for EH01/EH02/XHC | ||
|
||
DefinitionBlock("", "SSDT", 2, "hack", "EH01", 0) | ||
{ | ||
|
||
// inject properties for ECHI#1 | ||
External(_SB.PCI0.EH01, DeviceObj) | ||
if (CondRefOf(_SB.PCI0.EH01)) | ||
{ | ||
Method(_SB.PCI0.EH01._DSM, 4) | ||
{ | ||
If (!Arg2) { Return (Buffer() { 0x03 } ) } | ||
Return (Package() | ||
{ | ||
"subsystem-id", Buffer() { 0x70, 0x72, 0x00, 0x00 }, | ||
"subsystem-vendor-id", Buffer() { 0x86, 0x80, 0x00, 0x00 }, | ||
"AAPL,current-available", Buffer() { 0x34, 0x08, 0, 0 }, | ||
"AAPL,current-extra", Buffer() { 0x98, 0x08, 0, 0, }, | ||
"AAPL,current-extra-in-sleep", Buffer() { 0x40, 0x06, 0, 0, }, | ||
"AAPL,max-port-current-in-sleep", Buffer() { 0x34, 0x08, 0, 0 }, | ||
}) | ||
} | ||
} | ||
|
||
// inject properties for EHCI#2 | ||
External(_SB.PCI0.EH02, DeviceObj) | ||
if (CondRefOf(_SB.PCI0.EH02)) | ||
{ | ||
Method(_SB.PCI0.EH02._DSM, 4) | ||
{ | ||
If (!Arg2) { Return (Buffer() { 0x03 } ) } | ||
Return (Package() | ||
{ | ||
"subsystem-id", Buffer() { 0x70, 0x72, 0x00, 0x00 }, | ||
"subsystem-vendor-id", Buffer() { 0x86, 0x80, 0x00, 0x00 }, | ||
"AAPL,current-available", Buffer() { 0x34, 0x08, 0, 0 }, | ||
"AAPL,current-extra", Buffer() { 0x98, 0x08, 0, 0, }, | ||
"AAPL,current-extra-in-sleep", Buffer() { 0x40, 0x06, 0, 0, }, | ||
"AAPL,max-port-current-in-sleep", Buffer() { 0x34, 0x08, 0, 0 }, | ||
}) | ||
} | ||
} | ||
|
||
// inject properties for XHCI | ||
External(_SB.PCI0.XHC, DeviceObj) | ||
if (CondRefOf(_SB.PCI0.XHC)) | ||
{ | ||
Method(_SB.PCI0.XHC._DSM, 4) | ||
{ | ||
If (!Arg2) { Return (Buffer() { 0x03 } ) } | ||
Local0 = Package() | ||
{ | ||
"RM,pr2-force", Buffer() { 0, 0, 0, 0 }, | ||
"subsystem-id", Buffer() { 0x70, 0x72, 0x00, 0x00 }, | ||
"subsystem-vendor-id", Buffer() { 0x86, 0x80, 0x00, 0x00 }, | ||
"AAPL,current-available", Buffer() { 0x34, 0x08, 0, 0 }, | ||
"AAPL,current-extra", Buffer() { 0x98, 0x08, 0, 0, }, | ||
"AAPL,current-extra-in-sleep", Buffer() { 0x40, 0x06, 0, 0, }, | ||
"AAPL,max-port-current-in-sleep", Buffer() { 0x34, 0x08, 0, 0 }, | ||
} | ||
// force USB2 on XHC if EHCI is disabled | ||
If (CondRefOf(_SB.PCI0.RMD2)) | ||
{ | ||
CreateDWordField(DerefOf(Local0[1]), 0, PR2F) | ||
PR2F = 0x3fff | ||
} | ||
Return(Local0) | ||
} | ||
} | ||
} | ||
//EOF |