Skip to content

Commit

Permalink
Added failsafe versions of CML framebuffers
Browse files Browse the repository at this point in the history
  • Loading branch information
vit9696 committed May 28, 2020
1 parent 5bd095b commit 3ec7dca
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ Lilu Changelog
==============
#### v1.4.5
- Fixed newer CPU generation detection
- Added failsafe versions of CML framebuffers

#### v1.4.4
- Added new CFL connector-less framebuffers: 0x9BC80003, 0x9BC50003, 0x9BC40003
Expand Down
6 changes: 4 additions & 2 deletions Lilu/Sources/kern_devinfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ void DeviceInfo::updateFramebufferId() {
reportedFramebufferId = ConnectorLessKabyLakePlatformId2;
else if (gen == CPUInfo::CpuGeneration::CoffeeLake)
reportedFramebufferId = ConnectorLessCoffeeLakePlatformId2;
else if (gen == CPUInfo::CpuGeneration::CometLake)
reportedFramebufferId = ConnectorLessCoffeeLakePlatformId4;
else
reportedFramebufferId = DefaultVesaPlatformId;
} else {
Expand All @@ -78,7 +80,7 @@ void DeviceInfo::updateFramebufferId() {
reportedFramebufferId = 0x19160000;
else if (gen == CPUInfo::CpuGeneration::KabyLake)
reportedFramebufferId = 0x591B0000;
else if (gen == CPUInfo::CpuGeneration::CoffeeLake)
else if (gen == CPUInfo::CpuGeneration::CoffeeLake || gen == CPUInfo::CpuGeneration::CometLake)
reportedFramebufferId = 0x3EA50009;
else if (gen == CPUInfo::CpuGeneration::CannonLake)
reportedFramebufferId = 0x5A590000;
Expand All @@ -99,7 +101,7 @@ void DeviceInfo::updateFramebufferId() {
reportedFramebufferId = DefaultAppleSkylakePlatformId;
else if (gen == CPUInfo::CpuGeneration::KabyLake)
reportedFramebufferId = DefaultAppleKabyLakePlatformId;
else if (gen == CPUInfo::CpuGeneration::CoffeeLake)
else if (gen == CPUInfo::CpuGeneration::CoffeeLake || gen == CPUInfo::CpuGeneration::CometLake)
reportedFramebufferId = 0x3E9B0007;
else if (gen == CPUInfo::CpuGeneration::CannonLake)
reportedFramebufferId = DefaultAppleCannonLakePlatformId;
Expand Down

0 comments on commit 3ec7dca

Please sign in to comment.