Skip to content

Commit

Permalink
installer: updated DW1820A drivers
Browse files Browse the repository at this point in the history
Updated BrcmPatchRAM to 2.5.2
Changed boot-args to DSDT injection
Fixes #125
Resolves #243
  • Loading branch information
osy committed May 1, 2020
1 parent 76e15b6 commit 1543052
Show file tree
Hide file tree
Showing 4 changed files with 66 additions and 7 deletions.
31 changes: 31 additions & 0 deletions ACPI/SSDT-BrcmFix.asl
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
/**
* DW1820A Property Injection
*/
DefinitionBlock ("", "SSDT", 2, "OSY86 ", "BrcmFix", 0x00001000)
{
External (DTGP, MethodObj) // 5 Arguments
External (OSDW, MethodObj) // 0 Arguments
External (\_SB.PCI0.RP03.PXSX, DeviceObj)

Scope (\_SB.PCI0.RP03.PXSX)
{
Method (_DSM, 4, NotSerialized) // _DSM: Device-Specific Method
{
If (OSDW ())
{
If ((Arg0 == ToUUID ("a0b5b7c6-1318-441c-b0c9-fe695eaf949b")))
{
Local0 = Package ()
{
"pci-aspm-default", Buffer() { 0x00 },
"brcmfx-country", Buffer() { "#a" },
}
DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
Return (Local0)
}
}

Return (Zero)
}
}
}
35 changes: 33 additions & 2 deletions Installer/Package.pkgproj
Original file line number Diff line number Diff line change
Expand Up @@ -5970,6 +5970,39 @@
<dict>
<key>CHILDREN</key>
<array>
<dict>
<key>CHILDREN</key>
<array>
<dict>
<key>CHILDREN</key>
<array/>
<key>GID</key>
<integer>0</integer>
<key>PATH</key>
<string>data/ACPI/SSDT-BrcmFix.aml</string>
<key>PATH_TYPE</key>
<integer>1</integer>
<key>PERMISSIONS</key>
<integer>420</integer>
<key>TYPE</key>
<integer>3</integer>
<key>UID</key>
<integer>0</integer>
</dict>
</array>
<key>GID</key>
<integer>0</integer>
<key>PATH</key>
<string>ACPI</string>
<key>PATH_TYPE</key>
<integer>2</integer>
<key>PERMISSIONS</key>
<integer>509</integer>
<key>TYPE</key>
<integer>2</integer>
<key>UID</key>
<integer>0</integer>
</dict>
<dict>
<key>CHILDREN</key>
<array>
Expand Down Expand Up @@ -6224,8 +6257,6 @@
</dict>
<key>PREINSTALL_PATH</key>
<dict>
<key>PATH</key>
<string>scripts/set_brcm.sh</string>
<key>PATH_TYPE</key>
<integer>1</integer>
</dict>
Expand Down
4 changes: 2 additions & 2 deletions Installer/data/BrcmPatchRAM/source.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
https://github.com/acidanthera/BrcmPatchRAM/releases/download/2.5.1/BrcmPatchRAM-2.5.1-RELEASE.zip
628e78da284af830b368b3006e2d5c910d5feb74cb121a8d522b7824654d184c
https://github.com/acidanthera/BrcmPatchRAM/releases/download/2.5.2/BrcmPatchRAM-2.5.2-RELEASE.zip
f86017d005ac166a5905d133add854620780ff6cc0cb9b0d4ae95d4ea75fc0f5
3 changes: 0 additions & 3 deletions Installer/scripts/set_brcm.sh

This file was deleted.

0 comments on commit 1543052

Please sign in to comment.