[coreboot-gerrit] New patch to review for coreboot: vendorcode/siemens: Add HWID to hwilib
Werner Zeh (werner.zeh@siemens.com)
gerrit at coreboot.org
Wed Nov 23 08:09:38 CET 2016
Werner Zeh (werner.zeh at siemens.com) just uploaded a new patch set to gerrit, which you can find at https://review.coreboot.org/17575
-gerrit
commit b092bace56c9062fb21226fbe9b43fc308715469
Author: Werner Zeh <werner.zeh at siemens.com>
Date: Wed Nov 23 07:31:35 2016 +0100
vendorcode/siemens: Add HWID to hwilib
Add the location of HWID field so that hwilib supports this
value as well.
Change-Id: If6d4695f861232231ac8f9c247c0a10410dac1c5
Signed-off-by: Werner Zeh <werner.zeh at siemens.com>
---
src/vendorcode/siemens/hwilib/hwilib.c | 4 ++++
src/vendorcode/siemens/hwilib/hwilib.h | 1 +
2 files changed, 5 insertions(+)
diff --git a/src/vendorcode/siemens/hwilib/hwilib.c b/src/vendorcode/siemens/hwilib/hwilib.c
index b6cdd90..18880ff 100644
--- a/src/vendorcode/siemens/hwilib/hwilib.c
+++ b/src/vendorcode/siemens/hwilib/hwilib.c
@@ -107,6 +107,10 @@ static const struct param_info params[] = {
[SIB_HwRev] = {
.pos[0] = {.blk_type = BLK_SIB, .offset = 0xc8, .len = 2},
.get_field = hwilib_read_bytes },
+ [HWID] = {
+ .pos[0] = {.blk_type = BLK_HIB, .offset = 0x1a8, .len = 4},
+ .pos[1] = {.blk_type = BLK_SIB, .offset = 0xd0, .len = 4},
+ .get_field = hwilib_read_bytes },
[UniqueNum] = {
.pos[0] = {.blk_type = BLK_HIB, .offset = 0xa2, .len = 10},
.pos[1] = {.blk_type = BLK_SIB, .offset = 0xa2, .len = 10},
diff --git a/src/vendorcode/siemens/hwilib/hwilib.h b/src/vendorcode/siemens/hwilib/hwilib.h
index fc083de..001c958 100644
--- a/src/vendorcode/siemens/hwilib/hwilib.h
+++ b/src/vendorcode/siemens/hwilib/hwilib.h
@@ -26,6 +26,7 @@ typedef enum {
XIB_VerID,
HIB_HwRev,
SIB_HwRev,
+ HWID,
UniqueNum,
Mac1,
Mac2,
More information about the coreboot-gerrit
mailing list