util/amdfwtool: Add new types
These are used on newer platforms. Change-Id: I20dc77fb6f83dc813e3da5fe30f8f52068fc4662 Signed-off-by: Arthur Heymans <arthur@aheymans.xyz> Reviewed-on: https://review.coreboot.org/c/coreboot/+/68119 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Sean Rhodes <sean@starlabs.systems>
This commit is contained in:
committed by
Felix Held
parent
e440403683
commit
1f05c8044e
@ -331,6 +331,45 @@ static uint8_t find_register_fw_filename_psp_dir(char *fw_name, char *filename,
|
||||
} else if (strcmp(fw_name, "TA_IKEK_FILE") == 0) {
|
||||
fw_type = AMD_TA_IKEK;
|
||||
subprog = 0;
|
||||
} else if (strcmp(fw_name, "PSP_OEM_ABL_KEY_FILE") == 0) {
|
||||
fw_type = AMD_FW_ABL_PUBKEY;
|
||||
subprog = 0;
|
||||
} else if (strcmp(fw_name, "PSP_MP5FW_SUB0_FILE") == 0) {
|
||||
fw_type = AMD_FW_MP5;
|
||||
subprog = 0;
|
||||
} else if (strcmp(fw_name, "PSP_MP5FW_SUB1_FILE") == 0) {
|
||||
fw_type = AMD_FW_MP5;
|
||||
subprog = 1;
|
||||
} else if (strcmp(fw_name, "PSP_MP5FW_SUB2_FILE") == 0) {
|
||||
fw_type = AMD_FW_MP5;
|
||||
subprog = 2;
|
||||
} else if (strcmp(fw_name, "PSP_DXIOFW_FILE") == 0) {
|
||||
fw_type = AMD_FW_DXIO;
|
||||
subprog = 0;
|
||||
} 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) {
|
||||
fw_type = AMD_RIB;
|
||||
subprog = 0;
|
||||
} else if (strcmp(fw_name, "PSP_MPDMATFFW_FILE") == 0) {
|
||||
fw_type = AMD_FW_MPDMA_TF;
|
||||
subprog = 0;
|
||||
} else if (strcmp(fw_name, "PSP_GMI3PHYFW_FILE") == 0) {
|
||||
fw_type = AMD_FW_GMI3_PHY;
|
||||
subprog = 0;
|
||||
} else if (strcmp(fw_name, "PSP_MPDMAPMFW_FILE") == 0) {
|
||||
fw_type = AMD_FW_MPDMA_PM;
|
||||
subprog = 0;
|
||||
} else if (strcmp(fw_name, "PSP_TOKEN_UNLOCK_FILE") == 0) {
|
||||
fw_type = AMD_TOKEN_UNLOCK;
|
||||
subprog = 0;
|
||||
} else if (strcmp(fw_name, "SEV_DATA_FILE") == 0) {
|
||||
fw_type = AMD_SEV_DATA;
|
||||
subprog = 0;
|
||||
} else if (strcmp(fw_name, "SEV_CODE_FILE") == 0) {
|
||||
fw_type = AMD_SEV_CODE;
|
||||
subprog = 0;
|
||||
} else {
|
||||
fw_type = AMD_FW_INVALID;
|
||||
/* TODO: Add more */
|
||||
|
Reference in New Issue
Block a user