From 0581bf6a75b2b0582930eeaf660d961c28dd78bd Mon Sep 17 00:00:00 2001 From: Marshall Dawson Date: Wed, 25 Sep 2019 11:03:53 -0600 Subject: util/amdfwtool: Add holding locations for more APCBs Increase the number of potential APCB images to 5 by adding to the amd_bios_table. New instance IDs are from 0 to 4. The backup APCB block (type 0x68) still supports only instance ID 0. Change-Id: Ib70dc6417fecf94549a0c7df36ea42f63331be26 Signed-off-by: Marshall Dawson Reviewed-on: https://review.coreboot.org/c/coreboot/+/36120 Tested-by: build bot (Jenkins) Reviewed-by: Martin Roth --- util/amdfwtool/amdfwtool.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'util/amdfwtool') diff --git a/util/amdfwtool/amdfwtool.c b/util/amdfwtool/amdfwtool.c index 2980622fc9..02564cf5ba 100644 --- a/util/amdfwtool/amdfwtool.c +++ b/util/amdfwtool/amdfwtool.c @@ -357,7 +357,11 @@ static amd_fw_entry amd_fw_table[] = { }; static amd_bios_entry amd_bios_table[] = { - { .type = AMD_BIOS_APCB, .level = BDT_BOTH }, + { .type = AMD_BIOS_APCB, .inst = 0, .level = BDT_BOTH }, + { .type = AMD_BIOS_APCB, .inst = 1, .level = BDT_BOTH }, + { .type = AMD_BIOS_APCB, .inst = 2, .level = BDT_BOTH }, + { .type = AMD_BIOS_APCB, .inst = 3, .level = BDT_BOTH }, + { .type = AMD_BIOS_APCB, .inst = 4, .level = BDT_BOTH }, { .type = AMD_BIOS_APCB_BK, .level = BDT_BOTH }, { .type = AMD_BIOS_APOB, .level = BDT_BOTH }, { .type = AMD_BIOS_BIN, -- cgit v1.2.3