diff options
author | Johnny Lin <johnny_lin@wiwynn.com> | 2021-06-22 11:26:46 +0800 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2021-06-26 10:05:53 +0000 |
commit | e273a02d259c25b5ab5885bcdfd5b1c2d226580a (patch) | |
tree | 14210343f6d5e573580cb70227abd4376e8790a3 /util/ifdtool | |
parent | 181fce25d98c6e8726db8816354db4a90a067289 (diff) |
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 <johnny_lin@wiwynn.com>
Signed-off-by: Arthur Heymans <arthur@aheymans.xyz>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/55745
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Subrata Banik <subrata.banik@intel.com>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Diffstat (limited to 'util/ifdtool')
-rw-r--r-- | util/ifdtool/ifdtool.c | 6 | ||||
-rw-r--r-- | util/ifdtool/ifdtool.h | 1 |
2 files changed, 7 insertions, 0 deletions
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, |