mb/ocp: Provide better defaults for UART
The baudrate of the SOC console is always 57600 and on tiogapass the 0x2f8 COM port is also used by the SOL console. Change-Id: Ia7bf9fbe10ec66f49c2c7b41938a1a33967c131a Signed-off-by: Arthur Heymans <arthur@aheymans.xyz> Reviewed-on: https://review.coreboot.org/c/coreboot/+/70500 Reviewed-by: Jonathan Zhang <jonzhang@fb.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
committed by
Felix Held
parent
f339b63b02
commit
e0f08727e1
@@ -16,11 +16,15 @@ config BOARD_SPECIFIC_OPTIONS
|
||||
select IPMI_OCP
|
||||
select MEMORY_MAPPED_TPM
|
||||
select MAINBOARD_HAS_TPM2
|
||||
select UART_OVERRIDE_BAUDRATE
|
||||
|
||||
config UART_FOR_CONSOLE
|
||||
int
|
||||
default 1
|
||||
|
||||
config TTYS0_BAUD
|
||||
default 57600
|
||||
|
||||
config POWER_STATE_DEFAULT_ON_AFTER_FAILURE
|
||||
default n
|
||||
|
||||
|
@@ -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-$(CONFIG_CONSOLE_OVERRIDE_LOGLEVEL) += loglevel_vpd.c
|
||||
all-y += console.c
|
||||
CPPFLAGS_common += -I$(src)/mainboard/$(MAINBOARDDIR)/include
|
||||
|
9
src/mainboard/ocp/deltalake/console.c
Normal file
9
src/mainboard/ocp/deltalake/console.c
Normal file
@@ -0,0 +1,9 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
|
||||
#include <console/uart.h>
|
||||
|
||||
unsigned int get_uart_baudrate(void)
|
||||
{
|
||||
/* SOL console baud rate. */
|
||||
return 57600;
|
||||
}
|
@@ -13,6 +13,7 @@ config BOARD_SPECIFIC_OPTIONS
|
||||
select OCP_DMI
|
||||
select SOC_INTEL_SKYLAKE_SP
|
||||
select SUPERIO_ASPEED_AST2400
|
||||
select UART_OVERRIDE_BAUDRATE
|
||||
select VPD
|
||||
|
||||
config MAINBOARD_DIR
|
||||
@@ -28,4 +29,11 @@ config MAINBOARD_FAMILY
|
||||
config FMDFILE
|
||||
default "src/mainboard/\$(CONFIG_MAINBOARD_DIR)/board.fmd"
|
||||
|
||||
config UART_FOR_CONSOLE
|
||||
int
|
||||
default 1
|
||||
|
||||
config TTYS0_BAUD
|
||||
default 57600
|
||||
|
||||
endif # BOARD_OCP_TIOGAPASS
|
||||
|
@@ -4,4 +4,6 @@ bootblock-y += bootblock.c
|
||||
romstage-y += ipmi.c
|
||||
ramstage-y += ramstage.c ipmi.c
|
||||
|
||||
all-y += console.c
|
||||
|
||||
CPPFLAGS_common += -I$(src)/mainboard/$(MAINBOARDDIR)/include
|
||||
|
9
src/mainboard/ocp/tiogapass/console.c
Normal file
9
src/mainboard/ocp/tiogapass/console.c
Normal file
@@ -0,0 +1,9 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
|
||||
#include <console/uart.h>
|
||||
|
||||
unsigned int get_uart_baudrate(void)
|
||||
{
|
||||
/* SOL console baud rate. */
|
||||
return 57600;
|
||||
}
|
Reference in New Issue
Block a user