Docs: Fix PNLF Windows compatibility and add CFL+ support
@@ -24,15 +24,15 @@ DefinitionBlock("", "SSDT", 2, "ACDT", "PNLF", 0)
External(RMCF.LEVW, IntObj)
External(RMCF.GRAN, IntObj)
External(RMCF.FBTP, IntObj)
+ External(_SB_.PCI0.GFX0, DeviceObj)
- External(_SB.PCI0.GFX0, DeviceObj)
- Scope(_SB.PCI0.GFX0)
+ If (_OSI ("Darwin")) {
+ Scope (\_SB.PCI0.GFX0)
{
- OperationRegion(RMP3, PCI_Config, 0, 0x14)
- }
+ OperationRegion (RMP3, PCI_Config, Zero, 0x14)
// For backlight control
- Device(_SB.PCI0.GFX0.PNLF)
+ Device(PNLF)
{
// Name(_ADR, Zero)
Name(_HID, EisaId("APP0002"))
@@ -46,17 +46,7 @@ DefinitionBlock("", "SSDT", 2, "ACDT", "PNLF", 0)
// 19: CoffeeLake 0xffff
// 99: Other (requires custom profile using WhateverGreen.kext via DeviceProperties applbkl-name and applbkl-data)
Name(_UID, 0)
- Method (_STA, 0, NotSerialized) // _STA: Status
- {
- If (_OSI ("Darwin"))
- {
- Return (0x0B)
- }
- Else
- {
- Return (Zero)
- }
- }
+ Name (_STA, 0x0B)
Field(^RMP3, AnyAcc, NoLock, Preserve)
{
@@ -182,11 +172,14 @@ DefinitionBlock("", "SSDT", 2, "ACDT", "PNLF", 0)
}
}
}
- // check CoffeeLake
+ // check CoffeeLake and later
ElseIf (FBTYPE_CFL == Local3 || Ones != Match(Package()
{
- // CoffeeLake identifiers from AppleIntelCFLGraphicsFramebuffer.kext
- 0x3e9b, 0x3ea5, 0x3e92, 0x3e91,
+ // CoffeeLake and Whiskey Lake and CometLake and IceLake
+ 0x3e9b, 0x3ea5, 0x3e92, 0x3e91, 0x3EA0, 0x3EA6, 0x3E98,
+ 0x9BC8, 0x9BC5, 0x9BC4, 0xFF05, 0x8A70, 0x8A71, 0x8A51,
+ 0x8A5C, 0x8A5D, 0x8A52, 0x8A53, 0x8A56, 0x8A5A, 0x8A5B,
+ 0x9B41, 0x9B21, 0x9BCA, 0x9BA4,
}, MEQ, Local0, MTR, 0, 0))
{
if (Ones == Local2) { Local2 = COFFEELAKE_PWMMAX }
@@ -264,3 +257,5 @@ DefinitionBlock("", "SSDT", 2, "ACDT", "PNLF", 0)
}
}
}
+ }
+}
