util/ifdtool: Add Tigerlake platform support under IFDv2

Signed-off-by: Ravi Sarawadi <ravishankar.sarawadi@intel.com>
Change-Id: I3f9672053dcf0a4462ef6ab718af4f18fcfa7e14
Reviewed-on: https://review.coreboot.org/c/coreboot/+/36242
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Subrata Banik <subrata.banik@intel.com>
This commit is contained in:
Ravi Sarawadi 2019-10-22 13:45:36 -07:00 committed by Subrata Banik
parent 40964fb4dd
commit 7d9d63b79f
2 changed files with 5 additions and 0 deletions

View File

@ -216,6 +216,7 @@ static int is_platform_ifd_2(void)
PLATFORM_GLK, PLATFORM_GLK,
PLATFORM_CNL, PLATFORM_CNL,
PLATFORM_ICL, PLATFORM_ICL,
PLATFORM_TGL,
}; };
unsigned int i; unsigned int i;
@ -1026,6 +1027,7 @@ static void lock_descriptor(const char *filename, char *image, int size)
case PLATFORM_CNL: case PLATFORM_CNL:
case PLATFORM_ICL: case PLATFORM_ICL:
case PLATFORM_SKLKBL: case PLATFORM_SKLKBL:
case PLATFORM_TGL:
/* CPU/BIOS can read descriptor and BIOS. */ /* CPU/BIOS can read descriptor and BIOS. */
fmba->flmstr1 |= (1 << REGION_DESC) << rd_shift; fmba->flmstr1 |= (1 << REGION_DESC) << rd_shift;
fmba->flmstr1 |= (1 << REGION_BIOS) << rd_shift; fmba->flmstr1 |= (1 << REGION_BIOS) << rd_shift;
@ -1637,6 +1639,8 @@ int main(int argc, char *argv[])
platform = PLATFORM_ICL; platform = PLATFORM_ICL;
} else if (!strcmp(optarg, "sklkbl")) { } else if (!strcmp(optarg, "sklkbl")) {
platform = PLATFORM_SKLKBL; platform = PLATFORM_SKLKBL;
} else if (!strcmp(optarg, "tgl")) {
platform = PLATFORM_TGL;
} else { } else {
fprintf(stderr, "Unknown platform: %s\n", optarg); fprintf(stderr, "Unknown platform: %s\n", optarg);
exit(EXIT_FAILURE); exit(EXIT_FAILURE);

View File

@ -58,6 +58,7 @@ enum platform {
PLATFORM_GLK, PLATFORM_GLK,
PLATFORM_ICL, PLATFORM_ICL,
PLATFORM_SKLKBL, PLATFORM_SKLKBL,
PLATFORM_TGL,
}; };
#define LAYOUT_LINELEN 80 #define LAYOUT_LINELEN 80