blob: 83034727cd3074e9403b83601c2a0649c0325aa6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
/* SPDX-License-Identifier: GPL-2.0-only */
#include <console/console.h>
#include <drivers/vpd/vpd.h>
#include <console/uart.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;
}
|