Skip to content

Commit

Permalink
add preliminary I2C support for 4x0 KabyLake (not tested)
Browse files Browse the repository at this point in the history
  • Loading branch information
RehabMan committed May 2, 2018
1 parent 69fc031 commit f8d5448
Show file tree
Hide file tree
Showing 8 changed files with 60 additions and 3 deletions.
2 changes: 2 additions & 0 deletions Patches.xcodeproj/project.pbxproj
Expand Up @@ -97,6 +97,7 @@
ED341D5F1FA370BC00455E78 /* SSDT-4230s.dsl */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; name = "SSDT-4230s.dsl"; path = "hotpatch/SSDT-4230s.dsl"; sourceTree = "<group>"; };
ED3717731D578CD700FC4CC3 /* layout7.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = layout7.plist; path = Resources_ProBook/layout7.plist; sourceTree = "<group>"; };
ED3717741D578CD700FC4CC3 /* layout6.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = layout6.plist; path = Resources_ProBook/layout6.plist; sourceTree = "<group>"; };
ED3BFB6620992CB9007D8439 /* disable_trackpad.asl */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; name = disable_trackpad.asl; path = hotpatch/include/disable_trackpad.asl; sourceTree = "<group>"; };
ED407DA41CF4FBA900A03010 /* config_HD4000_hdmi_audio.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = config_HD4000_hdmi_audio.plist; path = config_parts/config_HD4000_hdmi_audio.plist; sourceTree = "<group>"; };
ED407DA51CF4FC8B00A03010 /* config_Skylake_hdmi_audio.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = config_Skylake_hdmi_audio.plist; path = config_parts/config_Skylake_hdmi_audio.plist; sourceTree = "<group>"; };
ED407DA61CF4FC8B00A03010 /* config_Broadwell_hdmi_audio.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = config_Broadwell_hdmi_audio.plist; path = config_parts/config_Broadwell_hdmi_audio.plist; sourceTree = "<group>"; };
Expand Down Expand Up @@ -557,6 +558,7 @@
ED6354D31D38643B00C77357 /* standard_PS2K_data.asl */,
ED6354D21D38643B00C77357 /* key86_data.asl */,
ED63DC271FDED5310001E2F4 /* enable_mouse.asl */,
ED3BFB6620992CB9007D8439 /* disable_trackpad.asl */,
ED97E91D1CC75350006C757A /* disable_HECI.asl */,
ED97E9121CC75350006C757A /* layout3_HDAU.asl */,
ED97E9131CC75350006C757A /* layout3_HDEF.asl */,
Expand Down
28 changes: 28 additions & 0 deletions config_parts/config_master.plist
Expand Up @@ -655,6 +655,34 @@
<key>Replace</key>
<data>RiV1VHh4eHgA</data>
</dict>
<dict>
<key>Comment</key>
<string>Prevent Apple I2C kexts from attaching to I2C controllers, credit CoolStar</string>
<key>Disabled</key>
<false/>
<key>Name</key>
<string>com.apple.driver.AppleIntelLpssI2C</string>
<key>Find</key>
<data>SU9LaXQ=</data>
<key>Replace</key>
<data>SU9LaXM=</data>
<key>InfoPlistPatch</key>
<true/>
</dict>
<dict>
<key>Comment</key>
<string>Prevent Apple I2C kexts from attaching to I2C controllers, credit CoolStar</string>
<key>Disabled</key>
<false/>
<key>Name</key>
<string>com.apple.driver.AppleIntelLpssI2CController</string>
<key>Find</key>
<data>SU9LaXQ=</data>
<key>Replace</key>
<data>SU9LaXM=</data>
<key>InfoPlistPatch</key>
<true/>
</dict>
</array>
<key>KernelToPatch</key>
<array/>
Expand Down
1 change: 1 addition & 0 deletions download.sh
Expand Up @@ -64,6 +64,7 @@ download os-x-usb-inject-all RehabMan-USBInjectAll
#download os-x-acpi-debug RehabMan-Debug
download_latest_notbitbucket "https://github.com" "https://github.com/vit9696/Lilu/releases" "RELEASE" "nbb_vit9696-Lilu.zip"
download_latest_notbitbucket "https://github.com" "https://github.com/lvs1974/IntelGraphicsFixup/releases" "RELEASE" "nbb_lvs1974-IntelGraphicsFixup.zip"
download_latest_notbitbucket "https://github.com" "https://github.com/alexandred/VoodooI2C/releases" "VoodooI2C-v" "nbb_alexandred_VoodooI2C.zip"
cd ..

# download tools
Expand Down
13 changes: 12 additions & 1 deletion hotpatch/SSDT-4x0-G4-Kabylake.dsl
Expand Up @@ -5,10 +5,21 @@ DefinitionBlock ("", "SSDT", 2, "hack", "4x0g4k", 0)
#define OVERRIDE_XPEE 1
#include "SSDT-RMCF.asl"
#include "SSDT-RP01_PXSX_RDSS.asl"
#define SPOOF_WIN10
#include "SSDT-HACK.asl"
#include "include/layout20_HDEF.asl"
#include "include/disable_HECI.asl"
#include "include/key86_PS2K.asl"
//#include "include/key86_PS2K.asl"
External(\_SB.PCI0.LPCB.PS2K, DeviceObj)
Scope (\_SB.PCI0.LPCB.PS2K)
{
// overrides for VoodooPS2 configuration...
Name(RMCF, Package()
{
#include "include/disable_trackpad.asl"
#include "include/key86_data.asl"
})
}
#include "SSDT-KEY87.asl"
#include "SSDT-USB-4x0-G4.asl"
#include "SSDT-XHC.asl"
Expand Down
6 changes: 6 additions & 0 deletions hotpatch/SSDT-HACK.asl
Expand Up @@ -31,9 +31,15 @@
"Windows 2006 SP1", // Windows Vista SP1
"Windows 2006.1", // Windows Server 2008
"Windows 2009", // Windows 7/Windows Server 2008 R2
#ifndef SPOOF_WIN10
//"Windows 2012", // Windows 8/Windows Server 2012
//"Windows 2013", // Windows 8.1/Windows Server 2012 R2
//"Windows 2015", // Windows 10/Windows Server TP
#else
"Windows 2012", // Windows 8/Windows Server 2012
"Windows 2013", // Windows 8.1/Windows Server 2012 R2
"Windows 2015", // Windows 10/Windows Server TP
#endif
}
Return (Ones != Match(Local0, MEQ, Arg0, MTR, 0, 0))
}
Expand Down
9 changes: 9 additions & 0 deletions hotpatch/include/disable_trackpad.asl
@@ -0,0 +1,9 @@
// for including into RMCF at PCI0.LPCB.PS2K.RMCF
// this could be used for laptops with I2C trackpad...
// it disables the Synaptics PS2 trackpad kext

"Synaptics TouchPad", Package()
{
"DisableDevice", ">y",
},

2 changes: 1 addition & 1 deletion install_downloads.sh
Expand Up @@ -9,7 +9,7 @@ TAG=tag_file
TAGCMD=`pwd`/tools/tag
SLE=/System/Library/Extensions
LE=/Library/Extensions
EXCEPTIONS="Sensors|FakePCIID_BCM57XX|FakePCIID_AR9280|FakePCIID_Intel_GbX|BrcmPatchRAM|BrcmBluetoothInjector|BrcmFirmwareData|BrcmNonPatchRAM|USBInjectAll|Lilu|IntelGraphicsFixup"
EXCEPTIONS="Sensors|FakePCIID_BCM57XX|FakePCIID_AR9280|FakePCIID_Intel_GbX|BrcmPatchRAM|BrcmBluetoothInjector|BrcmFirmwareData|BrcmNonPatchRAM|USBInjectAll|Lilu|IntelGraphicsFixup|VoodooI2CELAN|VoodooI2CUPDDEngine"
ESSENTIAL="FakeSMC.kext SATA-100-series-unsupported.kext IntelMausiEthernet.kext RealtekRTL8111.kext USBInjectAll.kext Lilu.kext IntelGraphicsFixup.kext AppleBacklightInjector.kext IntelBacklight.kext VoodooPS2Controller.kext"

# extract minor version (eg. 10.9 vs. 10.10 vs. 10.11)
Expand Down
2 changes: 1 addition & 1 deletion makefile.d
Expand Up @@ -30,7 +30,7 @@ build/SSDT-4x0-G2-Haswell.aml : hotpatch/SSDT-4x0-G2-Haswell.dsl hotpatch/SSDT-R

build/SSDT-4x0-G3-Skylake.aml : hotpatch/SSDT-4x0-G3-Skylake.dsl hotpatch/SSDT-RMCF.asl hotpatch/SSDT-RP01_PEGP_RDSS.asl hotpatch/SSDT-HACK.asl hotpatch/include/layout7_HDEF.asl hotpatch/include/disable_HECI.asl hotpatch/include/key86_PS2K.asl hotpatch/include/standard_PS2K_data.asl hotpatch/include/key86_data.asl hotpatch/SSDT-KEY102.asl hotpatch/SSDT-USB-4x0-G3.asl hotpatch/SSDT-XHC.asl hotpatch/SSDT-BATT-G4.asl hotpatch/SSDT-USBX.asl hotpatch/SSDT-ALS0.asl

build/SSDT-4x0-G4-Kabylake.aml : hotpatch/SSDT-4x0-G4-Kabylake.dsl hotpatch/SSDT-RMCF.asl hotpatch/SSDT-RP01_PXSX_RDSS.asl hotpatch/SSDT-HACK.asl hotpatch/include/layout20_HDEF.asl hotpatch/include/disable_HECI.asl hotpatch/include/key86_PS2K.asl hotpatch/include/standard_PS2K_data.asl hotpatch/include/key86_data.asl hotpatch/SSDT-KEY87.asl hotpatch/SSDT-USB-4x0-G4.asl hotpatch/SSDT-XHC.asl hotpatch/SSDT-BATT-G4.asl hotpatch/SSDT-USBX.asl hotpatch/SSDT-ALS0.asl
build/SSDT-4x0-G4-Kabylake.aml : hotpatch/SSDT-4x0-G4-Kabylake.dsl hotpatch/SSDT-RMCF.asl hotpatch/SSDT-RP01_PXSX_RDSS.asl hotpatch/SSDT-HACK.asl hotpatch/include/layout20_HDEF.asl hotpatch/include/disable_HECI.asl hotpatch/include/key86_PS2K.asl hotpatch/include/standard_PS2K_data.asl hotpatch/include/key86_data.asl hotpatch/include/disable_trackpad.asl hotpatch/include/key86_data.asl hotpatch/SSDT-KEY87.asl hotpatch/SSDT-USB-4x0-G4.asl hotpatch/SSDT-XHC.asl hotpatch/SSDT-BATT-G4.asl hotpatch/SSDT-USBX.asl hotpatch/SSDT-ALS0.asl

build/SSDT-4x30s.aml : hotpatch/SSDT-4x30s.dsl hotpatch/SSDT-RMCF.asl hotpatch/SSDT-PEGP_DGFX_RDSS.asl hotpatch/SSDT-HACK.asl hotpatch/include/layout12_HDEF.asl hotpatch/include/standard_PS2K.asl hotpatch/include/standard_PS2K_data.asl hotpatch/SSDT-KEY102.asl hotpatch/SSDT-USB-4x30s.asl hotpatch/SSDT-EH01.asl hotpatch/SSDT-EH02.asl hotpatch/SSDT-BATT.asl

Expand Down

0 comments on commit f8d5448

Please sign in to comment.