summaryrefslogtreecommitdiff
path: root/util/amdfwtool
diff options
context:
space:
mode:
authorRob Barnes <robbarnes@google.com>2020-03-03 10:35:02 -0700
committerFelix Held <felix-coreboot@felixheld.de>2020-03-27 22:52:48 +0000
commit18fd26cb088560fe31c3a569eefe2638ed071fc9 (patch)
treebe44cf6e98cd172b91d315c54cebc652beab00b0 /util/amdfwtool
parentf0619f47c36cbf751e50dcd03b6e695e35ea8d02 (diff)
downloadcoreboot-18fd26cb088560fe31c3a569eefe2638ed071fc9.tar.xz
amdfwtool: Allow for up to 16 APCB entries
Increase the number of allowed APCB entries in amdfwtool. BUG=b:150455865 TEST=Boot Trembyle BRANCH=None Signed-off-by: Rob Barnes <robbarnes@google.com> Change-Id: Ibdd2f2b9766735bc9aba98b5216e589b6cace238 Reviewed-on: https://chromium-review.googlesource.com/2084944 Reviewed-by: Matt Papageorge <matt.papageorge@amd.corp-partner.google.com> Reviewed-by: Raul E Rangel <rrangel@chromium.org> Reviewed-on: https://review.coreboot.org/c/coreboot/+/39861 Reviewed-by: Matt Papageorge <matthewpapa07@gmail.com> Reviewed-by: Angel Pons <th3fanbus@gmail.com> Reviewed-by: Raul Rangel <rrangel@chromium.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'util/amdfwtool')
-rw-r--r--util/amdfwtool/amdfwtool.c27
1 files changed, 25 insertions, 2 deletions
diff --git a/util/amdfwtool/amdfwtool.c b/util/amdfwtool/amdfwtool.c
index 4f1e8ba0b7..9c50dbd94d 100644
--- a/util/amdfwtool/amdfwtool.c
+++ b/util/amdfwtool/amdfwtool.c
@@ -364,11 +364,33 @@ static amd_bios_entry amd_bios_table[] = {
{ .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, .inst = 5, .level = BDT_BOTH },
+ { .type = AMD_BIOS_APCB, .inst = 6, .level = BDT_BOTH },
+ { .type = AMD_BIOS_APCB, .inst = 7, .level = BDT_BOTH },
+ { .type = AMD_BIOS_APCB, .inst = 8, .level = BDT_BOTH },
+ { .type = AMD_BIOS_APCB, .inst = 9, .level = BDT_BOTH },
+ { .type = AMD_BIOS_APCB, .inst = 10, .level = BDT_BOTH },
+ { .type = AMD_BIOS_APCB, .inst = 11, .level = BDT_BOTH },
+ { .type = AMD_BIOS_APCB, .inst = 12, .level = BDT_BOTH },
+ { .type = AMD_BIOS_APCB, .inst = 13, .level = BDT_BOTH },
+ { .type = AMD_BIOS_APCB, .inst = 14, .level = BDT_BOTH },
+ { .type = AMD_BIOS_APCB, .inst = 15, .level = BDT_BOTH },
{ .type = AMD_BIOS_APCB_BK, .inst = 0, .level = BDT_BOTH },
{ .type = AMD_BIOS_APCB_BK, .inst = 1, .level = BDT_BOTH },
{ .type = AMD_BIOS_APCB_BK, .inst = 2, .level = BDT_BOTH },
{ .type = AMD_BIOS_APCB_BK, .inst = 3, .level = BDT_BOTH },
{ .type = AMD_BIOS_APCB_BK, .inst = 4, .level = BDT_BOTH },
+ { .type = AMD_BIOS_APCB_BK, .inst = 5, .level = BDT_BOTH },
+ { .type = AMD_BIOS_APCB_BK, .inst = 6, .level = BDT_BOTH },
+ { .type = AMD_BIOS_APCB_BK, .inst = 7, .level = BDT_BOTH },
+ { .type = AMD_BIOS_APCB_BK, .inst = 8, .level = BDT_BOTH },
+ { .type = AMD_BIOS_APCB_BK, .inst = 9, .level = BDT_BOTH },
+ { .type = AMD_BIOS_APCB_BK, .inst = 10, .level = BDT_BOTH },
+ { .type = AMD_BIOS_APCB_BK, .inst = 11, .level = BDT_BOTH },
+ { .type = AMD_BIOS_APCB_BK, .inst = 12, .level = BDT_BOTH },
+ { .type = AMD_BIOS_APCB_BK, .inst = 13, .level = BDT_BOTH },
+ { .type = AMD_BIOS_APCB_BK, .inst = 14, .level = BDT_BOTH },
+ { .type = AMD_BIOS_APCB_BK, .inst = 15, .level = BDT_BOTH },
{ .type = AMD_BIOS_APOB, .level = BDT_BOTH },
{ .type = AMD_BIOS_BIN,
.reset = 1, .copy = 1, .zlib = 1, .level = BDT_BOTH },
@@ -470,7 +492,7 @@ typedef struct _bios_directory_table {
bios_directory_entry entries[];
} bios_directory_table;
-#define MAX_BIOS_ENTRIES 0x1f
+#define MAX_BIOS_ENTRIES 0x22
typedef struct _context {
char *rom; /* target buffer, size of flash device */
@@ -1004,7 +1026,8 @@ static void integrate_bios_firmwares(context *ctx,
}
if (count > MAX_BIOS_ENTRIES) {
- printf("Error: BIOS entries exceeds max allowed items\n");
+ printf("Error: BIOS entries (%d) exceeds max allowed items "
+ "(%d)\n", count, MAX_BIOS_ENTRIES);
free(ctx->rom);
exit(1);
}