Julien Viard de Galbert has uploaded this change for review. ( https://review.coreboot.org/23815
Change subject: mb/scaleway/tagada: Override baudrate with bmcInfo ......................................................................
mb/scaleway/tagada: Override baudrate with bmcInfo
Change-Id: Idd93b64ef91a569127a0713fdb499dff2a1f11db Signed-off-by: Julien Viard de Galbert jviarddegalbert@online.net --- M src/mainboard/scaleway/tagada/Kconfig M src/mainboard/scaleway/tagada/bmcinfo.c 2 files changed, 11 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/15/23815/1
diff --git a/src/mainboard/scaleway/tagada/Kconfig b/src/mainboard/scaleway/tagada/Kconfig index 5045204..1a56440 100644 --- a/src/mainboard/scaleway/tagada/Kconfig +++ b/src/mainboard/scaleway/tagada/Kconfig @@ -21,6 +21,7 @@ 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 d844347..15f8513 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"
@@ -153,6 +154,15 @@ return 0; }
+/* Override default uart baudrate */ +unsigned int get_uart_baudrate(void) +{ + int baudrate = bmcInfoBaudrate(); + if (baudrate) + return baudrate; + return 115200; +} + #if __CONSOLE_ENABLE__ /* Override default console loglevel */ const int mainboard_override_console_loglevel(void)