diff options
author | Nico Huber <nico.huber@secunet.com> | 2019-01-18 16:49:37 +0100 |
---|---|---|
committer | Nico Huber <nico.h@gmx.de> | 2019-07-06 17:23:53 +0000 |
commit | d2d3993a25c3236d397209f9c2118c3b17ce4f95 (patch) | |
tree | 8c91f0f2d588e66963c13e48dd972de555985bf4 /util/ich_descriptors_tool | |
parent | 3750986348cb99b8f0d828b73972b545a2f9c878 (diff) | |
download | flashrom-d2d3993a25c3236d397209f9c2118c3b17ce4f95.tar.gz flashrom-d2d3993a25c3236d397209f9c2118c3b17ce4f95.tar.bz2 flashrom-d2d3993a25c3236d397209f9c2118c3b17ce4f95.zip |
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>
Diffstat (limited to 'util/ich_descriptors_tool')
-rw-r--r-- | util/ich_descriptors_tool/ich_descriptors_tool.c | 3 |
1 files changed, 3 insertions, 0 deletions
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); |