blob: d2e052f93a3b9c07f2190a9079d132cb355d880e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
/* SPDX-License-Identifier: GPL-2.0-only */
#include <console/console.h>
#include <drivers/vpd/vpd.h>
#include <console/uart.h>
#include <string.h>
#include "vpd.h"
unsigned int get_uart_for_console(void)
{
int val_int = COREBOOT_UART_IO_DEFAULT;
if (vpd_get_int(COREBOOT_UART_IO, VPD_RW_THEN_RO, (int *const) &val_int)) {
if (val_int > 3)
val_int = COREBOOT_UART_IO_DEFAULT;
}
return val_int;
}
|