summaryrefslogtreecommitdiff
path: root/src/drivers/intel/fsp2_0/include
diff options
context:
space:
mode:
authorSubrata Banik <subratabanik@google.com>2021-12-29 18:24:07 +0000
committerNico Huber <nico.h@gmx.de>2022-01-03 15:07:26 +0000
commit69107c149b458be1ba7500d59686cdea066a0cae (patch)
treec12b32bfec4a1d74b56411951b965d330f137b0f /src/drivers/intel/fsp2_0/include
parentb4a169a1e19969ef584e19a57df2a5cd0ae3b573 (diff)
drivers/intel/fsp: Map FSP debug level to coreboot console level
This patch maps coreboot console level to FSP debug level. This is useful to suppress MRC (FSP-M) debug logs. Callers have to select HAVE_DEBUG_RAM_SETUP config to get verbose MRC debug log, Signed-off-by: Subrata Banik <subratabanik@google.com> Change-Id: I398d576fad68a0d0fc931c175bbc04fcbc2e54ec Reviewed-on: https://review.coreboot.org/c/coreboot/+/60471 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com> Reviewed-by: Nico Huber <nico.h@gmx.de> Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
Diffstat (limited to 'src/drivers/intel/fsp2_0/include')
-rw-r--r--src/drivers/intel/fsp2_0/include/fsp/debug.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/drivers/intel/fsp2_0/include/fsp/debug.h b/src/drivers/intel/fsp2_0/include/fsp/debug.h
index be7dd3a1a8..b6f982ac63 100644
--- a/src/drivers/intel/fsp2_0/include/fsp/debug.h
+++ b/src/drivers/intel/fsp2_0/include/fsp/debug.h
@@ -5,7 +5,17 @@
#include <fsp/util.h>
+enum fsp_log_level {
+ FSP_LOG_LEVEL_DISABLE = 0,
+ FSP_LOG_LEVEL_ERR,
+ FSP_LOG_LEVEL_ERR_WARN,
+ FSP_LOG_LEVEL_ERR_WARN_INFO,
+ FSP_LOG_LEVEL_ERR_WARN_INFO_EVENT,
+ FSP_LOG_LEVEL_VERBOSE
+};
+
/* FSP debug API */
+enum fsp_log_level fsp_map_console_log_level(void);
void fsp_debug_before_memory_init(fsp_memory_init_fn memory_init,
const FSPM_UPD *fspm_old_upd,
const FSPM_UPD *fspm_new_upd);