summaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorSubrata Banik <subratabanik@google.com>2022-01-20 18:51:21 +0530
committerFelix Held <felix-coreboot@felixheld.de>2022-03-15 19:22:49 +0000
commitca82e6161af7a453b512f35dd695a98084a1d7cf (patch)
tree7885b23eb9eb70f8651a9c69d52e3f3ab1a31602 /util
parentd3b85223fdac1f9197c645f81d624d6a1f47b0bb (diff)
downloadcoreboot-ca82e6161af7a453b512f35dd695a98084a1d7cf.tar.gz
coreboot-ca82e6161af7a453b512f35dd695a98084a1d7cf.tar.bz2
coreboot-ca82e6161af7a453b512f35dd695a98084a1d7cf.zip
util/ifdtool: Add Meteor Lake platform support under IFDv2
BUG=b:224325352 TEST=Able to build ifdtool. Signed-off-by: Subrata Banik <subratabanik@google.com> Change-Id: I3564efa27d0271286435284e745458aada987008 Reviewed-on: https://review.coreboot.org/c/coreboot/+/61274 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Edward O'Callaghan <quasisec@chromium.org> Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
Diffstat (limited to 'util')
-rw-r--r--util/ifdtool/ifdtool.c5
-rw-r--r--util/ifdtool/ifdtool.h1
2 files changed, 6 insertions, 0 deletions
diff --git a/util/ifdtool/ifdtool.c b/util/ifdtool/ifdtool.c
index a5c0b6977aea..bc62b4859f18 100644
--- a/util/ifdtool/ifdtool.c
+++ b/util/ifdtool/ifdtool.c
@@ -248,6 +248,7 @@ static enum ich_chipset ifd2_platform_to_chipset(const int pindex)
case PLATFORM_TGL:
case PLATFORM_ADL:
case PLATFORM_IFD2:
+ case PLATFORM_MTL:
return CHIPSET_500_600_SERIES_TIGER_ALDER_POINT;
case PLATFORM_ICL:
return CHIPSET_400_SERIES_ICE_POINT;
@@ -281,6 +282,7 @@ static int is_platform_ifd_2(void)
PLATFORM_ADL,
PLATFORM_SKLKBL,
PLATFORM_IFD2,
+ PLATFORM_MTL,
};
unsigned int i;
@@ -1232,6 +1234,7 @@ static void lock_descriptor(const char *filename, char *image, int size)
case PLATFORM_EHL:
case PLATFORM_ADL:
case PLATFORM_IFD2:
+ case PLATFORM_MTL:
/* CPU/BIOS can read descriptor and BIOS. */
fmba->flmstr1 |= (1 << REGION_DESC) << rd_shift;
fmba->flmstr1 |= (1 << REGION_BIOS) << rd_shift;
@@ -1974,6 +1977,8 @@ int main(int argc, char *argv[])
platform = PLATFORM_ADL;
} else if (!strcmp(optarg, "ifd2")) {
platform = PLATFORM_IFD2;
+ } else if (!strcmp(optarg, "mtl")) {
+ platform = PLATFORM_MTL;
} else {
fprintf(stderr, "Unknown platform: %s\n", optarg);
exit(EXIT_FAILURE);
diff --git a/util/ifdtool/ifdtool.h b/util/ifdtool/ifdtool.h
index 67f31c38486e..1ee76f1447a6 100644
--- a/util/ifdtool/ifdtool.h
+++ b/util/ifdtool/ifdtool.h
@@ -61,6 +61,7 @@ enum platform {
PLATFORM_ADL,
PLATFORM_IFD2,
PLATFORM_DNV,
+ PLATFORM_MTL,
};
#define LAYOUT_LINELEN 80