correct platform dat, thanks to andrey1970

Signed-off-by: SergeySlice <sergey.slice@gmail.com>
This commit is contained in:
SergeySlice 2020-06-12 08:23:30 +03:00
parent 65969fd0a4
commit ad0b325a04

View File

@ -914,7 +914,6 @@ VOID SetDMISettingsForModel(MACHINE_TYPES Model, BOOLEAN Redefine)
case iMac181: case iMac181:
case iMac182: case iMac182:
case iMac183: case iMac183:
case iMacPro11: // ' '
case MacPro71: case MacPro71:
gPlatformFeature = 0x00; gPlatformFeature = 0x00;
break; break;
@ -936,8 +935,6 @@ VOID SetDMISettingsForModel(MACHINE_TYPES Model, BOOLEAN Redefine)
case MacBookPro114: case MacBookPro114:
case MacBookPro115: case MacBookPro115:
case MacBookPro121: case MacBookPro121:
case MacBookPro151: // '2'
case MacBookPro152: // '2'
gPlatformFeature = 0x02; gPlatformFeature = 0x02;
break; break;
case MacMini71: case MacMini71:
@ -959,13 +956,17 @@ VOID SetDMISettingsForModel(MACHINE_TYPES Model, BOOLEAN Redefine)
case MacBookPro143: case MacBookPro143:
gPlatformFeature = 0x1A; gPlatformFeature = 0x1A;
break; break;
case iMacPro11:
case MacMini81: case MacMini81:
gPlatformFeature = 0x20;
break;
case iMac191: case iMac191:
case iMac192: case iMac192:
gPlatformFeature = 0x20; //0x22 gPlatformFeature = 0x20;
break; break;
case MacBookPro151:
case MacBookPro152:
case MacBookPro153:
case MacBookPro154:
case MacBookPro161:
case MacBookPro162: case MacBookPro162:
case MacBookPro163: case MacBookPro163:
gPlatformFeature = 0x32; gPlatformFeature = 0x32;
@ -976,19 +977,20 @@ VOID SetDMISettingsForModel(MACHINE_TYPES Model, BOOLEAN Redefine)
gPlatformFeature = 0x3A; gPlatformFeature = 0x3A;
break; break;
// It is nonsense, ASCII code сharacter "2" = 0x32 != 0x02. Don't use ioreg, so that not to be confused. Use dmidecode dump.
// Verified list from Users // Verified list from Users
case MacBookPro153: // case MacBookPro153:
case MacBookPro154: // case MacBookPro154:
case MacBookPro161: // case MacBookPro161:
gPlatformFeature = 0x02; // gPlatformFeature = 0x02;
break; // break;
default: default:
gPlatformFeature = 0xFFFF; // disabled gPlatformFeature = 0xFFFF; // disabled
break; break;
} }
if (Model > MacPro31) { if ((Model > MacPro31) && (Model < MacPro71)) {
gSettings.BoardType = BaseBoardTypeProcessorMemoryModule; //0xB; gSettings.BoardType = BaseBoardTypeProcessorMemoryModule; //0xB;
} else { } else {
gSettings.BoardType = BaseBoardTypeMotherBoard; //0xA; gSettings.BoardType = BaseBoardTypeMotherBoard; //0xA;