Allow override of default platform Hardware Info Config

New string debug variable HardwareInfoOverride is used to
specify new Hardware Info Config to be selected, for example 1x4x8.

Change-Id: I6d939608e6551e4a9102e5ab2e08255ee4982933
This commit is contained in:
Napiatek, Henryk J
2018-10-04 12:44:49 +02:00
parent 941b1e2ff0
commit 6d828e6653
37 changed files with 591 additions and 18 deletions

View File

@@ -287,7 +287,8 @@ int main(int argc, char **argv) {
platform.usRevId = (uint16_t)revisionId;
// set Gt and FeatureTable to initial state
hardwareInfoSetup[productFamily](&gtSystemInfo, &featureTable, setupFeatureTable);
std::string hwInfoConfig = "default";
hardwareInfoSetup[productFamily](&gtSystemInfo, &featureTable, setupFeatureTable, hwInfoConfig);
// and adjust dynamic values if not secified
sliceCount = sliceCount > 0 ? sliceCount : gtSystemInfo.SliceCount;
subSliceCount = subSliceCount > 0 ? subSliceCount : gtSystemInfo.SubSliceCount;