From ae6210e50072d851a50e3ed0c2b32cd1a1c8750b Mon Sep 17 00:00:00 2001 From: Julien Viard de Galbert Date: Thu, 22 Feb 2018 14:22:15 +0100 Subject: [PATCH] mb/scaleway/tagada: Override baudrate with bmcInfo Change-Id: Idd93b64ef91a569127a0713fdb499dff2a1f11db Signed-off-by: Julien Viard de Galbert Reviewed-on: https://review.coreboot.org/23815 Tested-by: build bot (Jenkins) Reviewed-by: Martin Roth --- src/mainboard/scaleway/tagada/Kconfig | 1 + src/mainboard/scaleway/tagada/bmcinfo.c | 10 ++++++++++ 2 files changed, 11 insertions(+) diff --git a/src/mainboard/scaleway/tagada/Kconfig b/src/mainboard/scaleway/tagada/Kconfig index 7b160e2d63..4d6a035753 100644 --- a/src/mainboard/scaleway/tagada/Kconfig +++ b/src/mainboard/scaleway/tagada/Kconfig @@ -22,6 +22,7 @@ config BOARD_SPECIFIC_OPTIONS select BOARD_ROMSIZE_KB_16384 select HAVE_ACPI_TABLES select CONSOLE_OVERRIDE_LOGLEVEL + select UART_OVERRIDE_BAUDRATE config MAINBOARD_DIR string diff --git a/src/mainboard/scaleway/tagada/bmcinfo.c b/src/mainboard/scaleway/tagada/bmcinfo.c index 9c58ac6b11..5ca736984d 100644 --- a/src/mainboard/scaleway/tagada/bmcinfo.c +++ b/src/mainboard/scaleway/tagada/bmcinfo.c @@ -20,6 +20,7 @@ #include #include +#include #include "bmcinfo.h" @@ -190,6 +191,15 @@ int bmcinfo_disable_nic1(void) /* Add override functions below */ +/* Override default uart baudrate */ +unsigned int get_uart_baudrate(void) +{ + int baudrate = bmcinfo_baudrate(); + if (baudrate) + return baudrate; + return 115200; +} + #if __CONSOLE_ENABLE__ /* Override default console loglevel */ int get_console_loglevel(void)