From 461797e3ed8451f7d542af0b721ef1e1f2d9e00a Mon Sep 17 00:00:00 2001 From: Werner Zeh Date: Tue, 12 Sep 2017 07:58:14 +0200 Subject: 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 Reviewed-on: https://review.coreboot.org/21517 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin Reviewed-by: Paul Menzel --- src/vendorcode/siemens/hwilib/hwilib.c | 4 +++- src/vendorcode/siemens/hwilib/hwilib.h | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) (limited to 'src') 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 */ -- cgit v1.2.3