diff options
author | Zheng Bao <fishbaozi@gmail.com> | 2023-01-30 13:52:30 +0800 |
---|---|---|
committer | Paul Fagerburg <pfagerburg@chromium.org> | 2023-02-04 01:42:13 +0000 |
commit | 85ee1fd571934d0f7895fa2af11057f54c265b6d (patch) | |
tree | 84679838e76ed58a4e75955f7b89c591eb576493 /util/amdfwtool/data_parse.c | |
parent | 48f0b1142be736b7a2d878a2a8371bafa780c7e0 (diff) |
amdfwtool: Add entry RIB whose subprog equals 1
For the PHX, it uses subprog 0.
For the PHX2, it uses subprog 1.
Change-Id: Ib013f264fc9940ad95e559fe19bba72c06a19625
Signed-off-by: Zheng Bao <fishbaozi@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/72507
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
Diffstat (limited to 'util/amdfwtool/data_parse.c')
-rw-r--r-- | util/amdfwtool/data_parse.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/util/amdfwtool/data_parse.c b/util/amdfwtool/data_parse.c index 8a336d90c6..8c22dc514c 100644 --- a/util/amdfwtool/data_parse.c +++ b/util/amdfwtool/data_parse.c @@ -411,9 +411,12 @@ static uint8_t find_register_fw_filename_psp_dir(char *fw_name, char *filename, } else if (strcmp(fw_name, "PSP_MPIOFW_FILE") == 0) { fw_type = AMD_FW_MPIO; subprog = 0; - } else if (strcmp(fw_name, "PSP_RIB_FILE") == 0) { + } else if (strcmp(fw_name, "PSP_RIB_FILE_SUB0") == 0) { fw_type = AMD_RIB; subprog = 0; + } else if (strcmp(fw_name, "PSP_RIB_FILE_SUB1") == 0) { + fw_type = AMD_RIB; + subprog = 1; } else if (strcmp(fw_name, "FEATURE_TABLE_FILE") == 0) { fw_type = AMD_FW_FCFG_TABLE; subprog = 0; |