amdfwtool: Set the region_type as 0 for entry "BIOS level 2"

This region_type is actually not used. But we need to set it
explicitly as a known value.

We can refer "PSP spec #55758" or the link below:
   https://doc.coreboot.org/soc/amd/psp_integration.html

Change-Id: I8b914f9f02beecce707aba86248826cd9208e6c0
Signed-off-by: Zheng Bao <fishbaozi@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/54871
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Marshall Dawson <marshalldawson3rd@gmail.com>
This commit is contained in:
Zheng Bao 2021-05-24 16:11:12 +08:00 committed by Marshall Dawson
parent baf54ec272
commit e8e6043489
1 changed files with 1 additions and 0 deletions

View File

@ -1044,6 +1044,7 @@ static void integrate_bios_firmwares(context *ctx,
if (biosdir2) { if (biosdir2) {
biosdir->entries[count].type = AMD_BIOS_L2_PTR; biosdir->entries[count].type = AMD_BIOS_L2_PTR;
biosdir->entries[count].region_type = 0;
biosdir->entries[count].size = biosdir->entries[count].size =
+ MAX_BIOS_ENTRIES + MAX_BIOS_ENTRIES
* sizeof(bios_directory_entry); * sizeof(bios_directory_entry);