amdfwtool: Add phoenix and glinda in get_psp_fw_type

Change-Id: If80cc5396703cef41cc615008c9f0dac0b7bbb09
Signed-off-by: Zheng Bao <fishbaozi@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/72717
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Kangheui Won <khwon@chromium.org>
This commit is contained in:
Zheng Bao 2023-02-02 09:26:20 +08:00 committed by Felix Held
parent ba74a036d0
commit 4044e85938
1 changed files with 2 additions and 0 deletions

View File

@ -762,6 +762,8 @@ static uint16_t get_psp_fw_type(enum platform soc_id, struct amd_fw_header *head
{
switch (soc_id) {
case PLATFORM_MENDOCINO:
case PLATFORM_PHOENIX:
case PLATFORM_GLINDA:
/* Fallback to fw_type if fw_id is not populated, which serves the same
purpose on older SoCs. */
return header->fw_id ? header->fw_id : header->fw_type;