diff options
author | Werner Zeh <werner.zeh@siemens.com> | 2016-11-23 07:31:35 +0100 |
---|---|---|
committer | Martin Roth <martinroth@google.com> | 2016-11-24 19:23:50 +0100 |
commit | ba7525df182c87f941cec93867f3fa0e509c7131 (patch) | |
tree | 726984d59e3b87efafcef26f915f6040cb2e412a /src/vendorcode/siemens | |
parent | d83f9fc80e9bbeb76fb538a386e3692eed840b07 (diff) |
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@siemens.com>
Reviewed-on: https://review.coreboot.org/17575
Tested-by: build bot (Jenkins)
Reviewed-by: Mario Scheithauer <mario.scheithauer@siemens.com>
Diffstat (limited to 'src/vendorcode/siemens')
-rw-r--r-- | src/vendorcode/siemens/hwilib/hwilib.c | 4 | ||||
-rw-r--r-- | src/vendorcode/siemens/hwilib/hwilib.h | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/src/vendorcode/siemens/hwilib/hwilib.c b/src/vendorcode/siemens/hwilib/hwilib.c index b6cdd90b19..18880ff07e 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 fc083de213..001c958f19 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, |