Subrata Banik submitted this change.

View Change

Approvals: build bot (Jenkins): Verified Wonkyu Kim: Looks good to me, approved
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>
---
M util/ifdtool/ifdtool.c
M util/ifdtool/ifdtool.h
2 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/util/ifdtool/ifdtool.c b/util/ifdtool/ifdtool.c
index f64dc7e..7f4753d 100644
--- a/util/ifdtool/ifdtool.c
+++ b/util/ifdtool/ifdtool.c
@@ -210,6 +210,7 @@
PLATFORM_ICL,
PLATFORM_TGL,
PLATFORM_JSL,
+ PLATFORM_ADL,
};
unsigned int i;

@@ -1018,6 +1019,7 @@
case PLATFORM_SKLKBL:
case PLATFORM_TGL:
case PLATFORM_JSL:
+ case PLATFORM_ADL:
/* CPU/BIOS can read descriptor and BIOS. */
fmba->flmstr1 |= (1 << REGION_DESC) << rd_shift;
fmba->flmstr1 |= (1 << REGION_BIOS) << rd_shift;
@@ -1689,6 +1691,8 @@
platform = PLATFORM_SKLKBL;
} else if (!strcmp(optarg, "tgl")) {
platform = PLATFORM_TGL;
+ } else if (!strcmp(optarg, "adl")) {
+ platform = PLATFORM_ADL;
} else {
fprintf(stderr, "Unknown platform: %s\n", optarg);
exit(EXIT_FAILURE);
diff --git a/util/ifdtool/ifdtool.h b/util/ifdtool/ifdtool.h
index 3b16d49..840d7fe 100644
--- a/util/ifdtool/ifdtool.h
+++ b/util/ifdtool/ifdtool.h
@@ -48,6 +48,7 @@
PLATFORM_JSL,
PLATFORM_SKLKBL,
PLATFORM_TGL,
+ PLATFORM_ADL,
};

#define LAYOUT_LINELEN 80

To view, visit change 39533. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Ief8ab6ad280d8a2625404c19d57cd2a24f23cf13
Gerrit-Change-Number: 39533
Gerrit-PatchSet: 6
Gerrit-Owner: Subrata Banik <subrata.banik@intel.com>
Gerrit-Reviewer: Furquan Shaikh <furquan@google.com>
Gerrit-Reviewer: Patrick Georgi <pgeorgi@google.com>
Gerrit-Reviewer: Stefan Reinauer <stefan.reinauer@coreboot.org>
Gerrit-Reviewer: Subrata Banik <subrata.banik@intel.com>
Gerrit-Reviewer: Wonkyu Kim <wonkyu.kim@intel.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply@coreboot.org>
Gerrit-CC: Angel Pons <th3fanbus@gmail.com>
Gerrit-MessageType: merged