From 75191be8d415a1364556b0c0f9b55f5f25296c03 Mon Sep 17 00:00:00 2001 From: Fred Reitberger Date: Tue, 7 Mar 2023 11:00:49 -0500 Subject: amdfwtool: Support multiple inst entries Use the inst field when adding entries to the psp tables. Otherwise, entries that differ by the inst field will appear as duplicates with an inst of 0. Signed-off-by: Fred Reitberger Change-Id: I4a84a0730976f4c65902b5c24ed13e21e95b03bb Reviewed-on: https://review.coreboot.org/c/coreboot/+/73522 Tested-by: build bot (Jenkins) Reviewed-by: Martin Roth --- util/amdfwtool/amdfwtool.c | 1 + 1 file changed, 1 insertion(+) (limited to 'util/amdfwtool/amdfwtool.c') diff --git a/util/amdfwtool/amdfwtool.c b/util/amdfwtool/amdfwtool.c index 9b913865cb..5d61685b75 100644 --- a/util/amdfwtool/amdfwtool.c +++ b/util/amdfwtool/amdfwtool.c @@ -1439,6 +1439,7 @@ static void integrate_psp_firmwares(context *ctx, pspdir->entries[count].type = fw_table[i].type; pspdir->entries[count].subprog = fw_table[i].subprog; pspdir->entries[count].rsvd = 0; + pspdir->entries[count].inst = fw_table[i].inst; pspdir->entries[count].size = (uint32_t)bytes; count++; -- cgit v1.2.3