summaryrefslogtreecommitdiffstats
path: root/ich_descriptors.h
diff options
context:
space:
mode:
authorNico Huber <nico.huber@secunet.com>2017-06-17 00:09:31 +0200
committerNico Huber <nico.h@gmx.de>2017-07-28 12:26:01 +0000
commit1dc3d420831b0ee482aede5f46ba53a0d2de4b74 (patch)
tree2c42e68012e89e5dec203874eaa0b3e6e6e086e6 /ich_descriptors.h
parent0bb3f7142aecdf883cc28bd9b771bdba3da5d7d9 (diff)
downloadflashrom-1dc3d420831b0ee482aede5f46ba53a0d2de4b74.tar.gz
flashrom-1dc3d420831b0ee482aede5f46ba53a0d2de4b74.tar.bz2
flashrom-1dc3d420831b0ee482aede5f46ba53a0d2de4b74.zip
ich_descriptors: Add function to guess chipset version
Add guess_ich_chipset() that takes fields from a descriptor dump and returns the lowest possible chipset version. Intel did several incompatible changes to the descriptor through the years. However, they forgot to add a version number. So we have to apply some heuristics to detect the chipset version in case of exter- nal flashing. Change-Id: Ie1736663dc33801b19d3e695c072c61a6c6345a2 Signed-off-by: Nico Huber <nico.huber@secunet.com> Reviewed-on: https://review.coreboot.org/20246 Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org> Reviewed-by: David Hendricks <david.hendricks@gmail.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'ich_descriptors.h')
-rw-r--r--ich_descriptors.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/ich_descriptors.h b/ich_descriptors.h
index ec85e0c43..920e098c9 100644
--- a/ich_descriptors.h
+++ b/ich_descriptors.h
@@ -93,9 +93,10 @@ struct ich_desc_content {
union { /* 0x0c */
uint32_t FLMAP2;
struct {
- uint32_t FMSBA :8, /* Flash (G)MCH Strap Base Addr. */
- MSL :8, /* MCH Strap Length */
- :16;
+ uint32_t FMSBA :8, /* Flash (G)MCH Strap Base Addr. */
+ MSL :8, /* MCH Strap Length */
+ ICCRIBA :8, /* ICC Reg. Init Base Addr. (new since Sandy Bridge) */
+ RIL :8; /* Register Init Length (new since Hawell) */
};
};
};