summaryrefslogtreecommitdiff
path: root/util/amdfwtool/data_parse.c
diff options
context:
space:
mode:
authorArthur Heymans <arthur@aheymans.xyz>2022-10-04 17:50:21 +0200
committerFelix Held <felix-coreboot@felixheld.de>2022-11-11 00:40:22 +0000
commit1f05c8044e8943c5e2f958e95d6fa3fbe47c5a90 (patch)
treeccbeb5df051cb4c0a726e0cd4fb2e55ab47d80da /util/amdfwtool/data_parse.c
parente4404036830044c8b7ac68ec17ed2cc66890c10a (diff)
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>
Diffstat (limited to 'util/amdfwtool/data_parse.c')
-rw-r--r--util/amdfwtool/data_parse.c39
1 files changed, 39 insertions, 0 deletions
diff --git a/util/amdfwtool/data_parse.c b/util/amdfwtool/data_parse.c
index 424a68a90c..17284c3a4e 100644
--- a/util/amdfwtool/data_parse.c
+++ b/util/amdfwtool/data_parse.c
@@ -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 */