coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
pl011.c File Reference
#include <device/mmio.h>
#include <boot/coreboot_tables.h>
#include <console/uart.h>
#include <drivers/uart/pl011.h>
Include dependency graph for pl011.c:

Go to the source code of this file.

Functions

void uart_init (unsigned int idx)
 
void uart_tx_byte (unsigned int idx, unsigned char data)
 
void uart_tx_flush (unsigned int idx)
 
unsigned char uart_rx_byte (unsigned int idx)
 
void uart_fill_lb (void *data)
 

Function Documentation

◆ uart_fill_lb()

void uart_fill_lb ( void data)

Definition at line 38 of file pl011.c.

References get_uart_baudrate(), lb_add_console(), lb_add_serial(), LB_SERIAL_TYPE_MEMORY_MAPPED, LB_TAG_CONSOLE_SERIAL8250MEM, serial, uart_platform_base(), and uart_platform_refclk().

Referenced by write_coreboot_table().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ uart_init()

void uart_init ( unsigned int  idx)

Definition at line 8 of file pl011.c.

Referenced by main().

Here is the caller graph for this function:

◆ uart_rx_byte()

unsigned char uart_rx_byte ( unsigned int  idx)

Definition at line 29 of file pl011.c.

References PL011_UARTFR_RXFE, read32(), read8(), and uart_platform_baseptr().

Here is the call graph for this function:

◆ uart_tx_byte()

void uart_tx_byte ( unsigned int  idx,
unsigned char  data 
)

Definition at line 12 of file pl011.c.

References uart_platform_baseptr(), uart_tx_flush(), and write8().

Here is the call graph for this function:

◆ uart_tx_flush()

void uart_tx_flush ( unsigned int  idx)

Definition at line 20 of file pl011.c.

References PL011_UARTFR_TXFE, read32(), and uart_platform_baseptr().

Referenced by uart_tx_byte().

Here is the call graph for this function:
Here is the caller graph for this function: