From c23336ed7778178008288b71256603ecb1574d37 Mon Sep 17 00:00:00 2001 From: Patrick Rudolph Date: Fri, 5 Jan 2024 15:43:01 +0100 Subject: [PATCH] mb/ibm/sbp1: Set FSP loglevel Change-Id: Ia97dbda30f657f0b1568364d712eaea8d134b3b0 Signed-off-by: Patrick Rudolph Reviewed-on: https://review.coreboot.org/c/coreboot/+/79791 Reviewed-by: Arthur Heymans Tested-by: build bot (Jenkins) --- src/mainboard/ibm/sbp1/romstage.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/mainboard/ibm/sbp1/romstage.c b/src/mainboard/ibm/sbp1/romstage.c index f5b081b3cd..5cda689162 100644 --- a/src/mainboard/ibm/sbp1/romstage.c +++ b/src/mainboard/ibm/sbp1/romstage.c @@ -279,8 +279,13 @@ void mainboard_memory_init_params(FSPM_UPD *mupd) /* Determines if warnings are promoted to system level. */ mupd->FspmConfig.promoteWarnings = 0x0; - /* Set FSP debug message to Disable */ - mupd->FspmConfig.serialDebugMsgLvl = 0x0; + if (CONFIG(DEFAULT_CONSOLE_LOGLEVEL_7) || + CONFIG(DEFAULT_CONSOLE_LOGLEVEL_8)) + mupd->FspmConfig.serialDebugMsgLvl = 3; + else if (CONFIG(DEFAULT_CONSOLE_LOGLEVEL_6)) + mupd->FspmConfig.serialDebugMsgLvl = 1; + else + mupd->FspmConfig.serialDebugMsgLvl = 0; /* Force 256MiB MMCONF (Segment0) only */ mupd->FspmConfig.mmCfgSize = 0x2;