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>
This commit is contained in:
Julien Viard de Galbert 2018-02-22 14:22:15 +01:00 committed by Martin Roth
parent fad5c4465f
commit ae6210e500
2 changed files with 11 additions and 0 deletions

View File

@ -22,6 +22,7 @@ config BOARD_SPECIFIC_OPTIONS
select BOARD_ROMSIZE_KB_16384 select BOARD_ROMSIZE_KB_16384
select HAVE_ACPI_TABLES select HAVE_ACPI_TABLES
select CONSOLE_OVERRIDE_LOGLEVEL select CONSOLE_OVERRIDE_LOGLEVEL
select UART_OVERRIDE_BAUDRATE
config MAINBOARD_DIR config MAINBOARD_DIR
string string

View File

@ -20,6 +20,7 @@
#include <arch/early_variables.h> #include <arch/early_variables.h>
#include <console/console.h> #include <console/console.h>
#include <console/uart.h>
#include "bmcinfo.h" #include "bmcinfo.h"
@ -190,6 +191,15 @@ int bmcinfo_disable_nic1(void)
/* Add override functions below */ /* 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__ #if __CONSOLE_ENABLE__
/* Override default console loglevel */ /* Override default console loglevel */
int get_console_loglevel(void) int get_console_loglevel(void)