psptool: Improve Zen generation parsing #79
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The tertiary directories (formally known as ISH structures) and combo directories contain PSP IDs that PSP checks to match the silicon supported by given directory. Extract the PSP IDs from the ISH structures and determine the Zen generation from the PSP ID. This change adds mainly the PSP IDs for AM5 platforms.
The code determining Zen generation has been moved to the directory class sources to let the tool determine it on directory creation happening in multiple places in the tool. The printed directories are now extended with the Zen generations and PSP IDs the directory supports. It has been noticed on AM5 BIOS images, that certain directory pointers in ISH structures may point to the same L2 directory, but have a different PSP ID only. Thus it is necessary to recursively update the Zen generation and supported PSP IDs to all directories underneath the one being detected and parsed.
TEST=Parse MSI PRO B850-P WIFI BIOS 7E56v2A75 and see the PSP IDs and Zen generation supported by L2 directories.