diff options
author | Subrata Banik <subrata.banik@intel.com> | 2020-08-26 15:43:51 +0530 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2020-09-02 07:17:33 +0000 |
commit | bd2da5a4b560b96501e343b04fb1e0e189da55cc (patch) | |
tree | 2f234ab845bd08086731c375b8fe8443f752b944 | |
parent | ac1b1dd83e0a509f94bd75f42128de469fd868d7 (diff) | |
download | coreboot-bd2da5a4b560b96501e343b04fb1e0e189da55cc.tar.xz |
util/ifdtool: Add FLMAP3 dump for Gen11 onwards PCH
BUG=b:153888802
TEST=Able to dump FLMAP3 for Volteer platform with TGP
> ifdtool -d coreboot.rom
FLMAP3: 0x00000000
Minor Revision ID: 0x0000
Major Revision ID: 0x0000
Signed-off-by: Subrata Banik <subrata.banik@intel.com>
Change-Id: I681abd6ae7b87f6638d4f6dc59168cf22b93c787
Reviewed-on: https://review.coreboot.org/c/coreboot/+/44818
Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
-rw-r--r-- | util/ifdtool/ifdtool.c | 6 | ||||
-rw-r--r-- | util/ifdtool/ifdtool.h | 1 |
2 files changed, 7 insertions, 0 deletions
diff --git a/util/ifdtool/ifdtool.c b/util/ifdtool/ifdtool.c index 93f29d4fc3..56e05fe21b 100644 --- a/util/ifdtool/ifdtool.c +++ b/util/ifdtool/ifdtool.c @@ -811,6 +811,12 @@ static void dump_fd(char *image, int size) printf(" FMSBA: 0x%x\n", ((fdb->flmap2) & 0xff) << 4); } + if (chipset == CHIPSET_500_SERIES_TIGER_POINT) { + printf("FLMAP3: 0x%08x\n", fdb->flmap3); + printf(" Minor Revision ID: 0x%04x\n", (fdb->flmap3 >> 14) & 0x7f); + printf(" Major Revision ID: 0x%04x\n", (fdb->flmap3 >> 21) & 0x7ff); + } + char *flumap = find_flumap(image, size); uint32_t flumap1 = *(uint32_t *)flumap; printf("FLUMAP1: 0x%08x\n", flumap1); diff --git a/util/ifdtool/ifdtool.h b/util/ifdtool/ifdtool.h index a113d2958c..fb3de2fb39 100644 --- a/util/ifdtool/ifdtool.h +++ b/util/ifdtool/ifdtool.h @@ -81,6 +81,7 @@ typedef struct { uint32_t flmap0; uint32_t flmap1; uint32_t flmap2; + uint32_t flmap3; // Exist for 500 series onwards } __attribute__((packed)) fdbar_t; // regions |