misc.py: Resolve SPI support for MacBookAir6,x

This commit is contained in:
Mykola Grymalyuk
2024-03-07 17:00:52 -07:00
parent 321cc8dd68
commit f55598dac8
3 changed files with 6 additions and 4 deletions

View File

@@ -183,9 +183,9 @@ class BuildMiscellaneous:
USB/SPI Top Case Handler
"""
# macOS 14.4 Beta 1 strips SPI-based top case support for Broadwell through Kaby Lake MacBooks
# macOS 14.4 Beta 1 strips SPI-based top case support for Broadwell through Kaby Lake MacBooks (and MacBookAir6,x)
if self.model.startswith("MacBook") and self.model in smbios_data.smbios_dictionary:
if (cpu_data.CPUGen.broadwell <= smbios_data.smbios_dictionary[self.model]["CPU Generation"] <= cpu_data.CPUGen.kaby_lake):
if self.model.startswith("MacBookAir6") or (cpu_data.CPUGen.broadwell <= smbios_data.smbios_dictionary[self.model]["CPU Generation"] <= cpu_data.CPUGen.kaby_lake):
logging.info("- Enabling SPI-based top case support")
support.BuildSupport(self.model, self.constants, self.config).enable_kext("AppleHSSPISupport.kext", self.constants.apple_spi_version, self.constants.apple_spi_path)
support.BuildSupport(self.model, self.constants, self.config).enable_kext("AppleHSSPIHIDDriver.kext", self.constants.apple_spi_hid_version, self.constants.apple_spi_hid_path)