From 7d9d63b79f331d6a9c613bce03d6e09ef8745bbe Mon Sep 17 00:00:00 2001 From: Ravi Sarawadi Date: Tue, 22 Oct 2019 13:45:36 -0700 Subject: util/ifdtool: Add Tigerlake platform support under IFDv2 Signed-off-by: Ravi Sarawadi Change-Id: I3f9672053dcf0a4462ef6ab718af4f18fcfa7e14 Reviewed-on: https://review.coreboot.org/c/coreboot/+/36242 Tested-by: build bot (Jenkins) Reviewed-by: Subrata Banik --- util/ifdtool/ifdtool.c | 4 ++++ util/ifdtool/ifdtool.h | 1 + 2 files changed, 5 insertions(+) (limited to 'util') diff --git a/util/ifdtool/ifdtool.c b/util/ifdtool/ifdtool.c index 0e8f76d76b..a6d0ffa778 100644 --- a/util/ifdtool/ifdtool.c +++ b/util/ifdtool/ifdtool.c @@ -216,6 +216,7 @@ static int is_platform_ifd_2(void) PLATFORM_GLK, PLATFORM_CNL, PLATFORM_ICL, + PLATFORM_TGL, }; unsigned int i; @@ -1026,6 +1027,7 @@ static void lock_descriptor(const char *filename, char *image, int size) case PLATFORM_CNL: case PLATFORM_ICL: case PLATFORM_SKLKBL: + case PLATFORM_TGL: /* CPU/BIOS can read descriptor and BIOS. */ fmba->flmstr1 |= (1 << REGION_DESC) << rd_shift; fmba->flmstr1 |= (1 << REGION_BIOS) << rd_shift; @@ -1637,6 +1639,8 @@ int main(int argc, char *argv[]) platform = PLATFORM_ICL; } else if (!strcmp(optarg, "sklkbl")) { platform = PLATFORM_SKLKBL; + } else if (!strcmp(optarg, "tgl")) { + platform = PLATFORM_TGL; } else { fprintf(stderr, "Unknown platform: %s\n", optarg); exit(EXIT_FAILURE); diff --git a/util/ifdtool/ifdtool.h b/util/ifdtool/ifdtool.h index 195a09cce4..2f5b3c3f2e 100644 --- a/util/ifdtool/ifdtool.h +++ b/util/ifdtool/ifdtool.h @@ -58,6 +58,7 @@ enum platform { PLATFORM_GLK, PLATFORM_ICL, PLATFORM_SKLKBL, + PLATFORM_TGL, }; #define LAYOUT_LINELEN 80 -- cgit v1.2.3