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>
This commit is contained in:
parent
358c84a5a8
commit
0faba3cf23
@ -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")) {
|
||||
|
@ -46,6 +46,7 @@ enum ich_chipset {
|
||||
enum platform {
|
||||
PLATFORM_APL,
|
||||
PLATFORM_CNL,
|
||||
PLATFORM_EHL,
|
||||
PLATFORM_GLK,
|
||||
PLATFORM_ICL,
|
||||
PLATFORM_JSL,
|
||||
|
Loading…
x
Reference in New Issue
Block a user