summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohnny Lin <johnny_lin@wiwynn.com>2020-10-30 08:50:03 +0800
committerDavid Hendricks <david.hendricks@gmail.com>2023-02-16 00:48:04 +0000
commitdb0946239fc5e7267c8cee7867ce85cbc5d313b4 (patch)
tree56fa544b1cc3422071cc6fddac838036151ba4bf
parent9fb89e33bc59b97c9d9314098288db7f6fb082c9 (diff)
mb/ocp/deltalake: Set SMM console log level via VPD
Select DEBUG_SMI and RUNTIME_CONFIGURABLE_SMM_LOGLEVEL. Tested=On OCP Delta Lake, SMM log level can be changed via VPD variable. Change-Id: I73afc944fbd6c21e884397f3049bd363e2c1ce2c Signed-off-by: Johnny Lin <johnny_lin@wiwynn.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/47006 Reviewed-by: David Hendricks <david.hendricks@gmail.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Jonathan Zhang <jonzhang@fb.com>
-rw-r--r--src/mainboard/ocp/deltalake/Kconfig4
-rw-r--r--src/mainboard/ocp/deltalake/Makefile.inc1
2 files changed, 5 insertions, 0 deletions
diff --git a/src/mainboard/ocp/deltalake/Kconfig b/src/mainboard/ocp/deltalake/Kconfig
index 6abffd4e69..191d89c83b 100644
--- a/src/mainboard/ocp/deltalake/Kconfig
+++ b/src/mainboard/ocp/deltalake/Kconfig
@@ -17,6 +17,7 @@ config BOARD_SPECIFIC_OPTIONS
select MEMORY_MAPPED_TPM
select MAINBOARD_HAS_TPM2
select UART_OVERRIDE_BAUDRATE
+ select RUNTIME_CONFIGURABLE_SMM_LOGLEVEL
config UART_FOR_CONSOLE
int
@@ -57,4 +58,7 @@ config CONSOLE_POST
bool
default y
+config DEBUG_SMI
+ default y
+
endif # BOARD_OCP_DELTALAKE
diff --git a/src/mainboard/ocp/deltalake/Makefile.inc b/src/mainboard/ocp/deltalake/Makefile.inc
index 1b05344abf..a6b6d37b66 100644
--- a/src/mainboard/ocp/deltalake/Makefile.inc
+++ b/src/mainboard/ocp/deltalake/Makefile.inc
@@ -8,4 +8,5 @@ romstage-$(CONFIG_IPMI_KCS_ROMSTAGE) += ipmi.c
ramstage-y += ramstage.c ipmi.c
ramstage-$(CONFIG_HAVE_ACPI_TABLES) += fadt.c
all-y += console.c
+smm-y += console.c
CPPFLAGS_common += -I$(src)/mainboard/$(MAINBOARDDIR)/include