util/ifdtool: Add Alderlake platform support under IFDv2

Change-Id: Ief8ab6ad280d8a2625404c19d57cd2a24f23cf13
Signed-off-by: Subrata Banik <subrata.banik@intel.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/39533
Reviewed-by: Wonkyu Kim <wonkyu.kim@intel.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
Subrata Banik 2020-03-14 15:01:42 +05:30
parent a717e2f896
commit 46f8073249
2 changed files with 5 additions and 0 deletions

View File

@ -210,6 +210,7 @@ static int is_platform_ifd_2(void)
PLATFORM_ICL, PLATFORM_ICL,
PLATFORM_TGL, PLATFORM_TGL,
PLATFORM_JSL, PLATFORM_JSL,
PLATFORM_ADL,
}; };
unsigned int i; unsigned int i;
@ -1018,6 +1019,7 @@ static void lock_descriptor(const char *filename, char *image, int size)
case PLATFORM_SKLKBL: case PLATFORM_SKLKBL:
case PLATFORM_TGL: case PLATFORM_TGL:
case PLATFORM_JSL: case PLATFORM_JSL:
case PLATFORM_ADL:
/* 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;
@ -1689,6 +1691,8 @@ int main(int argc, char *argv[])
platform = PLATFORM_SKLKBL; platform = PLATFORM_SKLKBL;
} else if (!strcmp(optarg, "tgl")) { } else if (!strcmp(optarg, "tgl")) {
platform = PLATFORM_TGL; platform = PLATFORM_TGL;
} else if (!strcmp(optarg, "adl")) {
platform = PLATFORM_ADL;
} else { } else {
fprintf(stderr, "Unknown platform: %s\n", optarg); fprintf(stderr, "Unknown platform: %s\n", optarg);
exit(EXIT_FAILURE); exit(EXIT_FAILURE);

View File

@ -48,6 +48,7 @@ enum platform {
PLATFORM_JSL, PLATFORM_JSL,
PLATFORM_SKLKBL, PLATFORM_SKLKBL,
PLATFORM_TGL, PLATFORM_TGL,
PLATFORM_ADL,
}; };
#define LAYOUT_LINELEN 80 #define LAYOUT_LINELEN 80