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>
This commit is contained in:
Johnny Lin 2021-06-22 11:26:46 +08:00 committed by Patrick Georgi
parent 181fce25d9
commit e273a02d25
2 changed files with 7 additions and 0 deletions

View File

@ -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")) {

View File

@ -50,6 +50,7 @@ enum ich_chipset {
enum platform {
PLATFORM_APL,
PLATFORM_CNL,
PLATFORM_LBG,
PLATFORM_EHL,
PLATFORM_GLK,
PLATFORM_ICL,