Skip to content

Commit

Permalink
Merge pull request #13 from kreizlie/0.6.7b
Browse files Browse the repository at this point in the history
0.6.7b
  • Loading branch information
kreizlie authored Mar 13, 2021
2 parents 3b58f4f + 05c4e90 commit 0882a7f
Show file tree
Hide file tree
Showing 60 changed files with 1,476 additions and 225 deletions.
Binary file modified ACPI/DSDT.aml
Binary file not shown.
1,276 changes: 1,209 additions & 67 deletions ACPI/DSDT.dsl

Large diffs are not rendered by default.

Binary file modified ACPI/origin/BGRT.aml
Binary file not shown.
Binary file modified ACPI/origin/DBGP.aml
Binary file not shown.
Binary file modified ACPI/origin/DSDT.aml
Binary file not shown.
251 changes: 127 additions & 124 deletions ACPI/origin/DumpLog.txt

Large diffs are not rendered by default.

Binary file modified ACPI/origin/FACP.aml
Binary file not shown.
Binary file modified ACPI/origin/FACS.aml
Binary file not shown.
Binary file modified ACPI/origin/FPDT.aml
Binary file not shown.
Binary file modified ACPI/origin/RSDP.aml
Binary file not shown.
Binary file modified ACPI/origin/RSDT.aml
Binary file not shown.
Binary file added ACPI/origin/SSDT-12-AMLY4ISH.aml
Binary file not shown.
Binary file removed ACPI/origin/SSDT-12-Wwan.aml
Binary file not shown.
Binary file added ACPI/origin/SSDT-13-Wwan.aml
Binary file not shown.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Binary file modified ACPI/origin/SSDT-2-SaSsdt.aml
Binary file not shown.
Binary file modified ACPI/origin/SSDT-5-DptfTabl.aml
Binary file not shown.
Binary file modified ACPI/origin/SSDT-7-CpuSsdt.aml
Binary file not shown.
Binary file modified ACPI/origin/XSDT.aml
Binary file not shown.
Binary file modified BIOS/HP/DEVFW/firmware.bin
Binary file not shown.
Empty file modified CLOVER/EFI/BOOT/BOOTX64.efi
100755 → 100644
Empty file.
Empty file modified CLOVER/EFI/CLOVER/CLOVERX64.efi
100755 → 100644
Empty file.
Empty file modified CLOVER/EFI/CLOVER/config.plist
100755 → 100644
Empty file.
Empty file modified CLOVER/EFI/CLOVER/drivers/BIOS/AudioDxe.efi
100755 → 100644
Empty file.
Empty file modified CLOVER/EFI/CLOVER/drivers/BIOS/FSInject.efi
100755 → 100644
Empty file.
Empty file modified CLOVER/EFI/CLOVER/drivers/BIOS/SMCHelper.efi
100755 → 100644
Empty file.
Empty file modified CLOVER/EFI/CLOVER/drivers/BIOS/XhciDxe.efi
100755 → 100644
Empty file.
Empty file modified CLOVER/EFI/CLOVER/drivers/UEFI/AudioDxe.efi
100755 → 100644
Empty file.
Empty file modified CLOVER/EFI/CLOVER/drivers/UEFI/FSInject.efi
100755 → 100644
Empty file.
Empty file modified CLOVER/EFI/CLOVER/drivers/UEFI/SMCHelper.efi
100755 → 100644
Empty file.
Empty file modified CLOVER/EFI/CLOVER/themes/embedded/screenshot.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified CLOVER/EFI/CLOVER/themes/embedded/theme.plist
100755 → 100644
Empty file.
Empty file modified CLOVER/EFI/CLOVER/themes/logo_main.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified CLOVER/EFI/CLOVER/themes/pointer-metal.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified CLOVER/EFI/CLOVER/themes/random/theme.plist
100755 → 100644
Empty file.
Empty file modified CLOVER/EFI/CLOVER/tools/Shell32.efi
100755 → 100644
Empty file.
Empty file modified CLOVER/EFI/CLOVER/tools/Shell64.efi
100755 → 100644
Empty file.
Empty file modified CLOVER/EFI/CLOVER/tools/Shell64U.efi
100755 → 100644
Empty file.
Empty file modified CLOVER/EFI/CLOVER/tools/bdmesg.efi
100755 → 100644
Empty file.
Binary file not shown.
1 change: 0 additions & 1 deletion USB-patching/SSDT-UIAC.dsl
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ DefinitionBlock ("", "SSDT", 2, "ACDT", "UIAC", 0x00000000)
Device (UIAC)
{
Name (_HID, "UIA00000") // _HID: Hardware ID

Name (RMCF, Package (0x02)
{
"XHC",
Expand Down
Binary file added chime/OCEFIAudio_VoiceOver_Boot.mp3
Binary file not shown.
Binary file modified hotpatch/SSDT-BAT.aml
100644 → 100755
Binary file not shown.
119 changes: 95 additions & 24 deletions hotpatch/SSDT-BAT.dsl
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
// SSDT-BAT
// For battery status
DefinitionBlock ("", "SSDT", 2, "ACDT", "BAT", 0x00001000)
{
External (_SB.NBST, PkgObj)
External (_SB.NBTI, PkgObj)
External (_SB.NDBS, PkgObj)
External (_SB.PCI0.LPCB.EC0, DeviceObj)
External (_SB.PCI0.LPCB.EC0.BSEL, FieldUnitObj)
External (_SB.PCI0.LPCB.EC0.BST, FieldUnitObj)
Expand All @@ -14,42 +12,60 @@ DefinitionBlock ("", "SSDT", 2, "ACDT", "BAT", 0x00001000)
External (_SB.PCI0.LPCB.EC0.ECRG, IntObj)
External (_SB.PCI0.LPCB.EC0.GACS, MethodObj) // 0 Arguments
External (_SB.PCI0.LPCB.EC0.GBSS, MethodObj) // 2 Arguments
External (_SB.PCI0.LPCB.EC0.NBGX, IntObj)
External (_SB.PCI0.LPCB.EC0.NDCB, IntObj)
External (_SB.PCI0.LPCB.EC0.NGBF, IntObj)
External (_SB.PCI0.LPCB.EC0.NGBT, IntObj)
External (_SB.PCI0.LPCB.EC0.NLB1, IntObj)
External (_SB.PCI0.LPCB.EC0.NLB2, IntObj)
External (_SB.PCI0.LPCB.EC0.NLO2, IntObj)

// Renamed methods in config.plist
External (_SB.PCI0.LPCB.EC0.XTIF, MethodObj) // 1 Arguments
External (_SB.PCI0.LPCB.EC0.XTST, MethodObj) // 2 Arguments
External (_SB.NBST, PkgObj)
External (_SB.NBTE, PkgObj)
External (_SB.NBTI, PkgObj)
External (_SB.NDBS, PkgObj)

External (BST, IntObj)
External (ECRG, IntObj)
External (NBGX, IntObj)
External (NDBS, IntObj)
External (NGBF, IntObj)
External (NGBT, IntObj)

// Renamed methods in config.plist
External (_SB.PCI0.LPCB.EC0.XTIF, MethodObj) // 1 Arguments
External (_SB.PCI0.LPCB.EC0.XTST, MethodObj) // 2 Arguments
External (_SB.PCI0.LPCB.EC0.ZTIX, MethodObj) // 1 Arguments

Scope (_SB.PCI0.LPCB.EC0)
{
// Replaces > 8 bits registers
// Replace >= 8 bits registers
OperationRegion (ECRR, EmbeddedControl, Zero, 0xFF)
Field (ECRR, ByteAcc, NoLock, Preserve)
{
Offset (0x8D),
BFC1, 8, BFC2, 8, // BFC
Offset (0x95),
BDV1, 8, BDV2, 8, // BDV
Offset (0x9D),
BPR1, 8, BPR2, 8, // BPR
Offset (0xA1),
BRC1, 8, BRC2, 8, // BCR
Offset (0xA5),
BPV1, 8, BPV2, 8, // BPV
Offset (0xC9),
BSN1, 8, BSN2, 8, // BSN
BDA1, 8, BDA2, 8, // BDAT
Offset (0x89),
BDC1, 8, // BDC
BDC2, 8,
Offset (0x8D),
BFC1, 8, // BFC
BFC2, 8,
Offset (0x95),
BDV1, 8, // BDV
BDV2, 8,
Offset (0x9D),
BPR1, 8, // BPR
BPR2, 8,
Offset (0xA1),
BRC1, 8, // BRC
BRC2, 8,
BCC1, 8, // BCC
BCC2, 8,
BPV1, 8, // BPV
BPV2, 8,
Offset (0xC9),
BSN1, 8, // BSN
BSN2, 8,
BDA1, 8, // BDAT
BDA2, 8,
Offset (0xFF)
}

Expand Down Expand Up @@ -80,9 +96,8 @@ DefinitionBlock ("", "SSDT", 2, "ACDT", "BAT", 0x00001000)
If (ECRG)
{
BSEL = Arg0
Local0 = B1B2 (BFC1, BFC2)
DerefOf (NBTI [Arg0]) [One] = Local0
DerefOf (NBTI [Arg0]) [0x02] = Local0
DerefOf (NBTI [Arg0]) [One] = B1B2 (BDC1, BDC2)
DerefOf (NBTI [Arg0]) [0x02] = B1B2 (BFC1, BFC2)
DerefOf (NBTI [Arg0]) [0x04] = B1B2 (BDV1, BDV2)
Local0 = (B1B2 (BFC1, BFC2) * NLB1) /* External reference */
Local4 = (Local0 / 0x64)
Expand All @@ -108,6 +123,61 @@ DefinitionBlock ("", "SSDT", 2, "ACDT", "BAT", 0x00001000)
}
}

Method (BTIX, 1, Serialized)
{
If (_OSI ("Darwin"))
{
Local7 = (One << Arg0)
BTDR (One)
If ((BSTA (Local7) == 0x0F))
{
Return (0xFF)
}

Acquire (BTMX, 0xFFFF)
Local0 = NBGX /* External reference */
Release (BTMX)
If (((Local0 & Local7) == Zero))
{
Return (Zero)
}

NBST [Arg0] = NDBS /* External reference */
Acquire (BTMX, 0xFFFF)
NGBT |= Local7
Release (BTMX)
Acquire (ECMX, 0xFFFF)
If (ECRG)
{
BSEL = Arg0
DerefOf (NBTE [Arg0]) [0x02] = B1B2 (BDC1, BDC2)
DerefOf (NBTE [Arg0]) [0x03] = B1B2 (BFC1, BFC2)
DerefOf (NBTE [Arg0]) [0x05] = B1B2 (BDV1, BDV2)
Local0 = (B1B2 (BFC1, BFC2) * NLB1) /* External reference */
Local4 = (Local0 / 0x64)
DerefOf (NBTE [Arg0]) [0x06] = Local4
Local0 = (B1B2 (BFC1, BFC2) * NLO2) /* External reference */
Local4 = (Local0 / 0x64)
DerefOf (NBTE [Arg0]) [0x07] = Local4
DerefOf (NBTE [Arg0]) [0x08] = B1B2 (BCC1, BCC2)
Local0 = B1B2 (BSN1, BSN2)
Local1 = B1B2 (BDA1, BDA2)
}

Release (ECMX)
Local2 = GBSS (Local0, Local1)
DerefOf (NBTE [Arg0]) [0x11] = Local2
Acquire (BTMX, 0xFFFF)
NBGX &= ~Local7
Release (BTMX)
Return (Zero)
}
Else
{
Return (\_SB.PCI0.LPCB.EC0.ZTIX (Arg0))
}
}

Method (BTST, 2, Serialized)
{
If (_OSI ("Darwin"))
Expand Down Expand Up @@ -209,3 +279,4 @@ DefinitionBlock ("", "SSDT", 2, "ACDT", "BAT", 0x00001000)
Return (Local0)
}
}

Empty file modified hotpatch/SSDT-CPU.aml
100644 → 100755
Empty file.
Binary file modified hotpatch/SSDT-EC.aml
100644 → 100755
Binary file not shown.
3 changes: 1 addition & 2 deletions hotpatch/SSDT-EC.dsl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SSDT-EC
// Fake EC device
// Create fake EC device, leave EC0 as is
DefinitionBlock ("", "SSDT", 2, "ACDT", "EC", 0x00001000)
{
External (_SB.PCI0.LPCB, DeviceObj)
Expand All @@ -9,7 +9,6 @@ DefinitionBlock ("", "SSDT", 2, "ACDT", "EC", 0x00001000)
Device (EC)
{
Name (_HID, "ACID0001") // _HID: Hardware ID

Method (_STA, 0, NotSerialized) // _STA: Status
{
If (_OSI ("Darwin"))
Expand Down
Binary file renamed hotpatch/SSDT-XPRW.aml → hotpatch/SSDT-GPRW.aml
100644 → 100755
Binary file not shown.
9 changes: 5 additions & 4 deletions hotpatch/SSDT-XPRW.dsl → hotpatch/SSDT-GPRW.dsl
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
// SSDT-XPRW
// Fixes instant-wake issue
DefinitionBlock ("", "SSDT", 2, "ACDT", "XPRW", 0x00000000)
// SSDT-GPRW
// Fixes instant wake issue
DefinitionBlock ("", "SSDT", 2, "ACDT", "GPRW", 0x00000000)
{
External (XPRW, MethodObj)
// Renamed method in config.plist
External (XPRW, MethodObj) // 2 Arguments

Method (GPRW, 2, NotSerialized)
{
Expand Down
Empty file modified hotpatch/SSDT-KBD.aml
100644 → 100755
Empty file.
2 changes: 1 addition & 1 deletion hotpatch/SSDT-KBD.dsl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SSDT-KBD
// Swaps Command and Option buttons on laptop keyboard
// Swaps Command and Option keys on laptop keyboard
DefinitionBlock ("", "SSDT", 2, "ACDT", "KBD", 0x00000000)
{
External (_SB.PCI0.LPCB.PS2K, DeviceObj)
Expand Down
Binary file modified hotpatch/SSDT-PNLF.aml
Binary file not shown.
Binary file added hotpatch/SSDT-RTC0.aml
Binary file not shown.
36 changes: 36 additions & 0 deletions hotpatch/SSDT-RTC0.dsl
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
// SSDT-RTC0
DefinitionBlock ("", "SSDT", 2, "ACDT", "RTC0", 0x00000000)
{
External (_SB.PCI0.LPCB, DeviceObj)

Scope (_SB.PCI0.LPCB)
{
Device (RTC0)
{
Name (_HID, EisaId ("PNP0B00") /* AT Real-Time Clock */) // _HID: Hardware ID
Name (_CRS, ResourceTemplate () // _CRS: Current Resource Settings
{
IO (Decode16,
0x0070, // Range Minimum
0x0070, // Range Maximum
0x01, // Alignment
0x08, // Length
)
IRQNoFlags ()
{8}
})

Method (_STA, 0, NotSerialized) // _STA: Status
{
If (_OSI ("Darwin"))
{
Return (0x0F)
}
Else
{
Return (Zero)
}
}
}
}
}
Empty file modified hotpatch/SSDT-XOSI.aml
100644 → 100755
Empty file.
Empty file modified hotpatch/SSDT-ZPTS.aml
100644 → 100755
Empty file.
4 changes: 2 additions & 2 deletions hotpatch/SSDT-ZPTS.dsl
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
// Simulates S5 call for proper shutdown
DefinitionBlock ("", "SSDT", 2, "ACDT", "ZPTS", 0x00000000)
{
External (_SB.PCI0.XHC_.PMEE, FieldUnitObj)
External (ZPTS, MethodObj)
External (_SB.PCI0.XHC.PMEE, FieldUnitObj)
External (ZPTS, MethodObj) // 1 Arguments

Method (_PTS, 1, NotSerialized) // _PTS: Prepare To Sleep
{
Expand Down

0 comments on commit 0882a7f

Please sign in to comment.