From 145a76182c58e2b83b2081d2545b5fa190e6930c Mon Sep 17 00:00:00 2001 From: Johnny Lin Date: Tue, 30 Jun 2020 17:36:36 +0800 Subject: 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 Reviewed-on: https://review.coreboot.org/c/coreboot/+/42903 Tested-by: build bot (Jenkins) Reviewed-by: Christian Walter Reviewed-by: insomniac --- src/mainboard/ocp/deltalake/vpd.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/mainboard/ocp/deltalake/vpd.h') 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 -- cgit v1.2.3