diff options
author | Julien Viard de Galbert <jviarddegalbert@online.net> | 2018-02-22 14:22:15 +0100 |
---|---|---|
committer | Martin Roth <martinroth@google.com> | 2018-03-07 21:11:59 +0000 |
commit | ae6210e50072d851a50e3ed0c2b32cd1a1c8750b (patch) | |
tree | 350d14332da9244dc9f2d171a2791584ca021608 /src | |
parent | fad5c4465f601aa159cfbc5de00b7a0b8fc9e0ef (diff) | |
download | coreboot-ae6210e50072d851a50e3ed0c2b32cd1a1c8750b.tar.xz |
mb/scaleway/tagada: Override baudrate with bmcInfo
Change-Id: Idd93b64ef91a569127a0713fdb499dff2a1f11db
Signed-off-by: Julien Viard de Galbert <jviarddegalbert@online.net>
Reviewed-on: https://review.coreboot.org/23815
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Martin Roth <martinroth@google.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/mainboard/scaleway/tagada/Kconfig | 1 | ||||
-rw-r--r-- | src/mainboard/scaleway/tagada/bmcinfo.c | 10 |
2 files changed, 11 insertions, 0 deletions
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 <arch/early_variables.h> #include <console/console.h> +#include <console/uart.h> #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) |