diff options
author | Johnny Lin <johnny_lin@wiwynn.com> | 2020-06-18 11:04:41 +0800 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2020-07-08 07:24:22 +0000 |
commit | 3d44c9925ff7ee20116f696a873770769feb27f6 (patch) | |
tree | d27c0480690b81f4558e2994b3411cd70d45efe0 /src/mainboard/ocp/deltalake/vpd.h | |
parent | cef108cc906b8276efdd005fc51fb1b180fb272b (diff) |
mb/ocp/deltalake: Configure IPMI FRB2 watchdog timer via VPD variables in romstage
Add VPD variables for enabling/disabling FRB2 watchdog timer and setting
the timer countdown value. By default it would start the timer and
trigger hard reset when it's expired. The timer is expected to be
stopped later by payload or OS.
Tested on OCP Delta Lake.
Change-Id: I3ce3bdc24a41d27eb1877655b3148ba02f7f5497
Signed-off-by: Johnny Lin <johnny_lin@wiwynn.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/42495
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Jonathan Zhang <jonzhang@fb.com>
Reviewed-by: Philipp Deppenwiese <zaolin.daisuki@gmail.com>
Diffstat (limited to 'src/mainboard/ocp/deltalake/vpd.h')
-rw-r--r-- | src/mainboard/ocp/deltalake/vpd.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/mainboard/ocp/deltalake/vpd.h b/src/mainboard/ocp/deltalake/vpd.h new file mode 100644 index 0000000000..65aae72895 --- /dev/null +++ b/src/mainboard/ocp/deltalake/vpd.h @@ -0,0 +1,14 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ + +#ifndef DELTALAKE_VPD_H +#define DELTALAKE_VPD_H + +/* VPD variable for enabling/disabling FRB2 timer. */ +#define FRB2_TIMER "frb2_timer" +/* VPD variable for setting FRB2 timer countdown value. */ +#define FRB2_COUNTDOWN "frb2_countdown" +#define VPD_LEN 10 +/* Default countdown is 15 minutes. */ +#define DEFAULT_COUNTDOWN 9000 + +#endif |