From d2d3993a25c3236d397209f9c2118c3b17ce4f95 Mon Sep 17 00:00:00 2001 From: Nico Huber Date: Fri, 18 Jan 2019 16:49:37 +0100 Subject: 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 Reviewed-on: https://review.coreboot.org/c/flashrom/+/30995 Tested-by: build bot (Jenkins) Reviewed-by: Angel Pons --- util/ich_descriptors_tool/ich_descriptors_tool.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'util') diff --git a/util/ich_descriptors_tool/ich_descriptors_tool.c b/util/ich_descriptors_tool/ich_descriptors_tool.c index aa857c88..2c7966d2 100644 --- a/util/ich_descriptors_tool/ich_descriptors_tool.c +++ b/util/ich_descriptors_tool/ich_descriptors_tool.c @@ -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); -- cgit v1.2.3