Skip to content

Commit 9cfb8fe

Browse files
karthikr-googleAnastasia Klimchuk
authored andcommitted
ich_descriptors: Guess Wildcat Lake from descriptor content
Panther Lake and Wildcat Lake chipsets share the same CPU Soft Strap Offseti (CSSO). They have different ICH Strap Length (ISL) as per the SPI Programming Guide. When ISL is 0x78, guess the chipset as Wildcat Lake. Otherwise guess the chipset as Panther Lake by default as done earlier. BUG=None TEST= meson compile -C builddir; meson test -C builddir; Change-Id: I4f84ce2501a5526bf0b5118249efbc07e9d9a2ab Signed-off-by: Karthikeyan Ramasubramanian <kramasub@google.com> Reviewed-on: https://review.coreboot.org/c/flashrom/+/92411 Reviewed-by: Anastasia Klimchuk <aklm@chromium.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
1 parent c332472 commit 9cfb8fe

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

ich_descriptors.c

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1094,8 +1094,14 @@ static enum ich_chipset guess_ich_chipset_from_content(const struct ich_desc_con
10941094
return CHIPSET_JASPER_LAKE;
10951095
else if (content->CSSO == 0x70)
10961096
return CHIPSET_METEOR_LAKE;
1097-
else if (content->CSSO == 0x60)
1098-
return CHIPSET_PANTHER_LAKE;
1097+
else if (content->CSSO == 0x60) {
1098+
switch (content->ISL) {
1099+
case 0x78:
1100+
return CHIPSET_WILDCAT_LAKE;
1101+
default:
1102+
return CHIPSET_PANTHER_LAKE;
1103+
}
1104+
}
10991105
}
11001106
msg_pwarn("Unknown flash descriptor, assuming 500 series compatibility.\n");
11011107
return CHIPSET_500_SERIES_TIGER_POINT;

0 commit comments

Comments
 (0)