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:
parent
fad5c4465f
commit
ae6210e500
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue