aboutsummaryrefslogtreecommitdiff
path: root/src/mainboard/ocp/deltalake/vpd.h
diff options
context:
space:
mode:
authorJohnny Lin <johnny_lin@wiwynn.com>2020-06-30 17:36:36 +0800
committerPatrick Georgi <pgeorgi@google.com>2020-07-12 19:36:18 +0000
commit145a76182c58e2b83b2081d2545b5fa190e6930c (patch)
tree9e608f6d9f684f8081cfccb9ae89b6d452300ad5 /src/mainboard/ocp/deltalake/vpd.h
parent0ccb3828bc6464dc51ef5075d9cc050272e0f75a (diff)
mb/ocp/deltalake: Use VPD data to configure FSP UPD at romstage
Read VPD variable 'fsp_log_enable' to decide enabling FSP log or not. With VPD_RW_THEN_RO, VPD_RW takes precedence over VPD_RO, and would be set to enabled if both places cannot find it. Tested=On OCP Delta Lake, use vpd to create and set fsp_log_enable and verified the results are expected. Change-Id: I0b3463acedd90e8e17f7e4eedc2fab63644f87e1 Signed-off-by: Johnny Lin <johnny_lin@wiwynn.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/42903 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Christian Walter <christian.walter@9elements.com> Reviewed-by: insomniac <insomniac@slackware.it>
Diffstat (limited to 'src/mainboard/ocp/deltalake/vpd.h')
-rw-r--r--src/mainboard/ocp/deltalake/vpd.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mainboard/ocp/deltalake/vpd.h b/src/mainboard/ocp/deltalake/vpd.h
index 65aae72895..9e17bb9b80 100644
--- a/src/mainboard/ocp/deltalake/vpd.h
+++ b/src/mainboard/ocp/deltalake/vpd.h
@@ -11,4 +11,7 @@
/* Default countdown is 15 minutes. */
#define DEFAULT_COUNTDOWN 9000
+/* Define the VPD keys for UPD variables that can be overwritten */
+#define FSP_LOG "fsp_log_enable" /* 1 or 0: enable or disable FSP SOL log */
+
#endif