diff options
author | Lean Sheng Tan <lean.sheng.tan@intel.com> | 2021-06-09 07:52:24 -0700 |
---|---|---|
committer | Werner Zeh <werner.zeh@siemens.com> | 2021-06-18 04:40:17 +0000 |
commit | 0faba3cf237df532dce8f61ca6a765c335093bbf (patch) | |
tree | b2c51f91169c00f128a101add267621fd9c22055 /util/ifdtool/ifdtool.c | |
parent | 358c84a5a8ac9119c2b73ff8c7ff13c6231e1786 (diff) |
util/ifdtool: Add Elkhart Lake platform support under IFDv2
Add EHL under same family tree as TGL & JSL, also fix a
spacing inconsistency line.
Signed-off-by: Lean Sheng Tan <lean.sheng.tan@intel.com>
Change-Id: Ice09861c104c4e339fc83631c75089fa069b3931
Reviewed-on: https://review.coreboot.org/c/coreboot/+/55357
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-by: Furquan Shaikh <furquan@google.com>
Reviewed-by: Werner Zeh <werner.zeh@siemens.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'util/ifdtool/ifdtool.c')
-rw-r--r-- | util/ifdtool/ifdtool.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/util/ifdtool/ifdtool.c b/util/ifdtool/ifdtool.c index 7dbed66df6..77fbd7ab66 100644 --- a/util/ifdtool/ifdtool.c +++ b/util/ifdtool/ifdtool.c @@ -242,6 +242,7 @@ static int is_platform_ifd_2(void) PLATFORM_ICL, PLATFORM_TGL, PLATFORM_JSL, + PLATFORM_EHL, PLATFORM_ADL, }; unsigned int i; @@ -1199,6 +1200,7 @@ static void lock_descriptor(const char *filename, char *image, int size) case PLATFORM_SKLKBL: case PLATFORM_TGL: case PLATFORM_JSL: + case PLATFORM_EHL: case PLATFORM_ADL: /* CPU/BIOS can read descriptor and BIOS. */ fmba->flmstr1 |= (1 << REGION_DESC) << rd_shift; @@ -1653,6 +1655,7 @@ static void print_usage(const char *name) " adl - Alder Lake\n" " aplk - Apollo Lake\n" " cnl - Cannon Lake\n" + " ehl - Elkhart Lake\n" " glk - Gemini Lake\n" " icl - Ice Lake\n" " jsl - Jasper Lake\n" @@ -1895,12 +1898,14 @@ int main(int argc, char *argv[]) platform = PLATFORM_APL; } else if (!strcmp(optarg, "cnl")) { platform = PLATFORM_CNL; + } else if (!strcmp(optarg, "ehl")) { + platform = PLATFORM_EHL; } else if (!strcmp(optarg, "glk")) { platform = PLATFORM_GLK; } else if (!strcmp(optarg, "icl")) { platform = PLATFORM_ICL; } else if (!strcmp(optarg, "jsl")) { - platform = PLATFORM_JSL; + platform = PLATFORM_JSL; } else if (!strcmp(optarg, "sklkbl")) { platform = PLATFORM_SKLKBL; } else if (!strcmp(optarg, "tgl")) { |