summaryrefslogtreecommitdiff
path: root/src/vendorcode
diff options
context:
space:
mode:
authorWerner Zeh <werner.zeh@siemens.com>2017-09-12 07:58:14 +0200
committerAaron Durbin <adurbin@chromium.org>2017-09-13 16:22:26 +0000
commit461797e3ed8451f7d542af0b721ef1e1f2d9e00a (patch)
tree1a3b28a851492e06493e06509ecf30c329f9cfec /src/vendorcode
parent52f0871b23233ec7314cf778e5534d99dd85ff3d (diff)
vendorcode/siemens: Add LegacyDelay to hwilib
Add a new parameter to hwilib called LegacyDelay. It will be used to define a delay time to wait for legacy devices if coreboot is too fast for old and slow onboard devices. Change-Id: Id0386fdea0ecfb3c1ff6ec1c456071246529950a Signed-off-by: Werner Zeh <werner.zeh@siemens.com> Reviewed-on: https://review.coreboot.org/21517 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Aaron Durbin <adurbin@chromium.org> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Diffstat (limited to 'src/vendorcode')
-rw-r--r--src/vendorcode/siemens/hwilib/hwilib.c4
-rw-r--r--src/vendorcode/siemens/hwilib/hwilib.h4
2 files changed, 5 insertions, 3 deletions
diff --git a/src/vendorcode/siemens/hwilib/hwilib.c b/src/vendorcode/siemens/hwilib/hwilib.c
index 0d4a7a0774..4c0cd63b8e 100644
--- a/src/vendorcode/siemens/hwilib/hwilib.c
+++ b/src/vendorcode/siemens/hwilib/hwilib.c
@@ -385,7 +385,9 @@ static const struct param_info params[] = {
[FANSensorCfg7] = {
.pos[0] = {.blk_type = BLK_XIB, .offset = 0xd8, .len = 20},
.get_field = hwilib_read_bytes },
-
+ [LegacyDelay] = {
+ .pos[0] = {.blk_type = BLK_XIB, .offset = 0x20c, .len = 4},
+ .get_field = hwilib_read_bytes },
};
/** \brief This functions reads the given field from the first valid hwinfo
diff --git a/src/vendorcode/siemens/hwilib/hwilib.h b/src/vendorcode/siemens/hwilib/hwilib.h
index 9739cf3c5a..6850f070e5 100644
--- a/src/vendorcode/siemens/hwilib/hwilib.h
+++ b/src/vendorcode/siemens/hwilib/hwilib.h
@@ -115,8 +115,8 @@ typedef enum {
netKind7,
netKind8,
netKind9,
- netKind10
-
+ netKind10,
+ LegacyDelay
} hwinfo_field_t;
/* Define used values in supported fields */