From e273a02d259c25b5ab5885bcdfd5b1c2d226580a Mon Sep 17 00:00:00 2001 From: Johnny Lin Date: Tue, 22 Jun 2021 11:26:46 +0800 Subject: util/ifdtool: Add Xeon SP Lewisburg PCH platform support under IFDv2 After commit 8c082e5fe (util/ifdtool: Use -p platform name to detect IFDv2 platform and chipset) w/o this xeon_sp/cpx would be detected as IFDv1 and see build error. Fixes: 8c082e5fe ("util/ifdtool: Use -p platform name to detect IFDv2 platform and chipset") Change-Id: I444e7d35a85d9d42fc25d654e57386f38cf1ec85 Signed-off-by: Johnny Lin Signed-off-by: Arthur Heymans Reviewed-on: https://review.coreboot.org/c/coreboot/+/55745 Tested-by: build bot (Jenkins) Reviewed-by: Subrata Banik Reviewed-by: Angel Pons --- util/ifdtool/ifdtool.c | 6 ++++++ util/ifdtool/ifdtool.h | 1 + 2 files changed, 7 insertions(+) (limited to 'util') diff --git a/util/ifdtool/ifdtool.c b/util/ifdtool/ifdtool.c index 923f77f60d..e99cdeca8c 100644 --- a/util/ifdtool/ifdtool.c +++ b/util/ifdtool/ifdtool.c @@ -226,6 +226,8 @@ static enum ich_chipset ifd2_platform_to_chipset(const int pindex) return CHIPSET_500_600_SERIES_TIGER_ALDER_POINT; case PLATFORM_ICL: return CHIPSET_400_SERIES_ICE_POINT; + case PLATFORM_LBG: + return CHIPSET_C620_SERIES_LEWISBURG; default: return CHIPSET_PCH_UNKNOWN; } @@ -242,6 +244,7 @@ static int is_platform_ifd_2(void) static const int ifd_2_platforms[] = { PLATFORM_GLK, PLATFORM_CNL, + PLATFORM_LBG, PLATFORM_ICL, PLATFORM_TGL, PLATFORM_JSL, @@ -1625,6 +1628,7 @@ static void print_usage(const char *name) " adl - Alder Lake\n" " aplk - Apollo Lake\n" " cnl - Cannon Lake\n" + " lbg - Lewisburg PCH\n" " ehl - Elkhart Lake\n" " glk - Gemini Lake\n" " icl - Ice Lake\n" @@ -1868,6 +1872,8 @@ int main(int argc, char *argv[]) platform = PLATFORM_APL; } else if (!strcmp(optarg, "cnl")) { platform = PLATFORM_CNL; + } else if (!strcmp(optarg, "lbg")) { + platform = PLATFORM_LBG; } else if (!strcmp(optarg, "ehl")) { platform = PLATFORM_EHL; } else if (!strcmp(optarg, "glk")) { diff --git a/util/ifdtool/ifdtool.h b/util/ifdtool/ifdtool.h index 6ef2815dcb..4f63e20c44 100644 --- a/util/ifdtool/ifdtool.h +++ b/util/ifdtool/ifdtool.h @@ -50,6 +50,7 @@ enum ich_chipset { enum platform { PLATFORM_APL, PLATFORM_CNL, + PLATFORM_LBG, PLATFORM_EHL, PLATFORM_GLK, PLATFORM_ICL, -- cgit v1.2.3