coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
uart_console.c
Go to the documentation of this file.
1
/* SPDX-License-Identifier: GPL-2.0-only */
2
3
#include <
amdblocks/uart.h
>
4
#include <
console/uart.h
>
5
6
/*
7
* uart_platform_base and uart_platform_refclk are used by the console UART driver and need to
8
* be provided exactly once and only by the UART that is used for console.
9
*/
10
11
uintptr_t
uart_platform_base
(
unsigned
int
idx)
12
{
13
return
get_uart_base
(idx);
14
}
15
16
unsigned
int
uart_platform_refclk
(
void
)
17
{
18
return
48000000;
19
}
uart.h
get_uart_base
uintptr_t get_uart_base(unsigned int idx)
Definition:
uart.c:9
uart.h
uintptr_t
unsigned long uintptr_t
Definition:
stdint.h:21
uart_platform_base
uintptr_t uart_platform_base(unsigned int idx)
Definition:
uart_console.c:11
uart_platform_refclk
unsigned int uart_platform_refclk(void)
Definition:
uart_console.c:16
src
soc
amd
common
block
uart
uart_console.c
Generated by
1.9.1