Altamshali Hirani has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/62911 )
Change subject: Allow for the tool to support additional PSP entries ......................................................................
Allow for the tool to support additional PSP entries
Consolidate the MAX_BIOS_ENTRIES and MAX_PSP_ENTRIES definitions into one file
Signed-off-by: Altamshali Hirani al.hirani@amd.corp-partner.google.com Change-Id: Ie3c64a1875010e7fb368967283df6baf1cc7ba8d --- M util/amdfwtool/amdfwtool.c M util/amdfwtool/amdfwtool.h 2 files changed, 3 insertions(+), 4 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/11/62911/1
diff --git a/util/amdfwtool/amdfwtool.c b/util/amdfwtool/amdfwtool.c index f5b73d2..ed8137b 100644 --- a/util/amdfwtool/amdfwtool.c +++ b/util/amdfwtool/amdfwtool.c @@ -343,9 +343,6 @@ { .type = AMD_BIOS_INVALID }, };
- -#define MAX_BIOS_ENTRIES 0x2f - typedef struct _context { char *rom; /* target buffer, size of flash device */ uint32_t rom_size; /* size of flash device */ diff --git a/util/amdfwtool/amdfwtool.h b/util/amdfwtool/amdfwtool.h index 70afe3c..a6700a2 100644 --- a/util/amdfwtool/amdfwtool.h +++ b/util/amdfwtool/amdfwtool.h @@ -151,7 +151,7 @@ psp_directory_entry entries[]; } __attribute__((packed, aligned(16))) psp_directory_table;
-#define MAX_PSP_ENTRIES 0x1f +#define MAX_PSP_ENTRIES 0x2f
typedef struct _psp_combo_header { uint32_t cookie; @@ -210,6 +210,8 @@ bios_directory_entry entries[]; } bios_directory_table;
+#define MAX_BIOS_ENTRIES 0x2f + #define BDT_LVL1 (1 << 0) #define BDT_LVL2 (1 << 1) #define BDT_LVL1_AB (1 << 2)