soc/intel/alderlake: Add option to make MRC log silent
commitb4a169a1e19969ef584e19a57df2a5cd0ae3b573
authorSubrata Banik <subratabanik@google.com>
Wed, 29 Dec 2021 18:36:23 +0000 (29 18:36 +0000)
committerNico Huber <nico.h@gmx.de>
Mon, 3 Jan 2022 15:07:00 +0000 (3 15:07 +0000)
treeb3d87fcaed76ca869d4c9fc347a663ae6d8848e6
parent627313081e74a3079ea02333f4a852a14cb3294d
soc/intel/alderlake: Add option to make MRC log silent

Typically, FSP-M aka MRC debug log level defaults to `3`
meaning prints all `Load, Error, Warnings & Info` messages.

Sometimes it's too much information to parse even when users
aren't required to have such detailed information hence,
implement `fsp_map_console_log_level()` that maps coreboot console
log level to FSP-M debug log level and suppress verbose MRC debug
messages unless caller selects `HAVE_DEBUG_RAM_SETUP` config and
then the user can enable `DEBUG_RAM_SETUP`.

TEST=FSP-M debug log suggested default `SerialDebugMrcLevel`
UPD value is `2`. While this patch selects `HAVE_DEBUG_RAM_SETUP`
and user to select `DEBUG_RAM_SETUP` config to override
`SerialDebugMrcLevel` UPD value to '5' aka verbose.

Signed-off-by: Subrata Banik <subratabanik@google.com>
Change-Id: Iea3b32feca0893a83fdf700798b0883d26ccc718
Reviewed-on: https://review.coreboot.org/c/coreboot/+/60441
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
Reviewed-by: Nico Huber <nico.h@gmx.de>
src/soc/intel/alderlake/Kconfig
src/soc/intel/alderlake/romstage/fsp_params.c