mirror of
https://review.coreboot.org/flashrom.git
synced 2025-07-01 14:11:15 +02:00
ichspi: Add Apollo Lake support
It's almost identical to 100 series PCHs and later. There are some additional FREGs (12..15). To not clutter the `if` conditions further, make more use of `switch` statements. Tested on Kontron mAL10. Mark it as DEP as usually the last sector is not covered by the descriptor layout and can't be read. Change-Id: I1c464b5b3d151e6d28d5db96495fe874a0a45718 Signed-off-by: Nico Huber <nico.huber@secunet.com> Reviewed-on: https://review.coreboot.org/c/flashrom/+/30995 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com>
This commit is contained in:
@ -126,6 +126,7 @@ static void usage(char *argv[], char *error)
|
||||
"\t- \"ich9\",\n"
|
||||
"\t- \"ich10\",\n"
|
||||
"\t- \"silvermont\" for chipsets from Intel's Silvermont architecture (e.g. Bay Trail),\n"
|
||||
"\t- \"apollo\" for Intel's Apollo Lake SoC.\n"
|
||||
"\t- \"5\" or \"ibex\" for Intel's 5 series chipsets,\n"
|
||||
"\t- \"6\" or \"cougar\" for Intel's 6 series chipsets,\n"
|
||||
"\t- \"7\" or \"panther\" for Intel's 7 series chipsets.\n"
|
||||
@ -220,6 +221,8 @@ int main(int argc, char *argv[])
|
||||
else if ((strcmp(csn, "100") == 0) ||
|
||||
(strcmp(csn, "sunrise") == 0))
|
||||
cs = CHIPSET_100_SERIES_SUNRISE_POINT;
|
||||
else if (strcmp(csn, "apollo") == 0)
|
||||
cs = CHIPSET_APOLLO_LAKE;
|
||||
}
|
||||
|
||||
ret = read_ich_descriptors_from_dump(buf, len, &cs, &desc);
|
||||
|
Reference in New Issue
Block a user