mb/starlabs/*: Bind console serial output to EDK2_DEBUG

Configure the UART port but only enable UART debug for EDK2
debug builds.

Signed-off-by: Sean Rhodes <sean@starlabs.systems>
Change-Id: I54e1dc5768fd765254c7ede91eaa45842fed3bd6
Reviewed-on: https://review.coreboot.org/c/coreboot/+/69322
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
Sean Rhodes 2022-11-07 22:04:52 +00:00 committed by Martin L Roth
parent 8ab5e15aca
commit 1263622106
2 changed files with 8 additions and 0 deletions

View File

@ -8,6 +8,7 @@ config BOARD_STARLABS_LITE_SERIES
select HAVE_OPTION_TABLE select HAVE_OPTION_TABLE
select HAVE_INTEL_PTT select HAVE_INTEL_PTT
select INTEL_GMA_HAVE_VBT select INTEL_GMA_HAVE_VBT
select INTEL_LPSS_UART_FOR_CONSOLE
select CRB_TPM select CRB_TPM
select MAINBOARD_HAS_TPM2 select MAINBOARD_HAS_TPM2
select ONBOARD_VGA_IS_PRIMARY select ONBOARD_VGA_IS_PRIMARY
@ -37,6 +38,9 @@ config CMOS_DEFAULT_FILE
config CMOS_LAYOUT_FILE config CMOS_LAYOUT_FILE
default "src/mainboard/\$(CONFIG_MAINBOARD_DIR)/variants/\$(CONFIG_VARIANT_DIR)/cmos.layout" if BOARD_STARLABS_LITE_GLKR default "src/mainboard/\$(CONFIG_MAINBOARD_DIR)/variants/\$(CONFIG_VARIANT_DIR)/cmos.layout" if BOARD_STARLABS_LITE_GLKR
config CONSOLE_SERIAL
default n if !EDK2_DEBUG
config DEVICETREE config DEVICETREE
default "variants/\$(CONFIG_VARIANT_DIR)/devicetree.cb" default "variants/\$(CONFIG_VARIANT_DIR)/devicetree.cb"

View File

@ -8,6 +8,7 @@ config BOARD_STARLABS_STARBOOK_SERIES
select HAVE_CMOS_DEFAULT select HAVE_CMOS_DEFAULT
select HAVE_OPTION_TABLE select HAVE_OPTION_TABLE
select INTEL_GMA_HAVE_VBT select INTEL_GMA_HAVE_VBT
select INTEL_LPSS_UART_FOR_CONSOLE
select NO_UART_ON_SUPERIO select NO_UART_ON_SUPERIO
select SOC_INTEL_COMMON_BLOCK_HDA_VERB select SOC_INTEL_COMMON_BLOCK_HDA_VERB
select SYSTEM_TYPE_LAPTOP select SYSTEM_TYPE_LAPTOP
@ -86,6 +87,9 @@ config CMOS_DEFAULT_FILE
config CMOS_LAYOUT_FILE config CMOS_LAYOUT_FILE
default "src/mainboard/\$(CONFIG_MAINBOARD_DIR)/variants/\$(CONFIG_VARIANT_DIR)/cmos.layout" if BOARD_STARLABS_STARBOOK_TGL default "src/mainboard/\$(CONFIG_MAINBOARD_DIR)/variants/\$(CONFIG_VARIANT_DIR)/cmos.layout" if BOARD_STARLABS_STARBOOK_TGL
config CONSOLE_SERIAL
default n if !EDK2_DEBUG
config DEVICETREE config DEVICETREE
default "variants/\$(CONFIG_VARIANT_DIR)/devicetree.cb" default "variants/\$(CONFIG_VARIANT_DIR)/devicetree.cb"