coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
|
#include <device/mmio.h>
#include <boot/coreboot_tables.h>
#include <console/uart.h>
#include <drivers/uart/uart8250reg.h>
#include <stdint.h>
#include <soc/addressmap.h>
#include <soc/pll.h>
Go to the source code of this file.
Data Structures | |
struct | mtk_uart |
struct | mtk_peri_globalcon |
Functions | |
static void | mtk_uart_tx_flush (void) |
static int | mtk_uart_tst_byte (void) |
static void | mtk_uart_init (void) |
static void | mtk_uart_tx_byte (unsigned char data) |
static unsigned char | mtk_uart_rx_byte (void) |
void | uart_init (unsigned int idx) |
unsigned char | uart_rx_byte (unsigned int idx) |
void | uart_tx_byte (unsigned int idx, unsigned char data) |
void | uart_tx_flush (unsigned int idx) |
void | uart_fill_lb (void *data) |
Variables | |
struct mtk_uart | __packed |
static struct mtk_uart *const | uart_ptr = (void *)UART0_BASE |
Definition at line 72 of file uart.c.
References mtk_uart::dll, mtk_uart::dlm, mtk_uart::fcr, get_uart_baudrate(), mtk_uart::highspeed, mtk_uart::ier, mtk_uart::lcr, mtk_uart::mcr, mtk_uart_tx_flush(), UART8250_FCR_CLEAR_RCVR, UART8250_FCR_CLEAR_XMIT, UART8250_FCR_FIFO_EN, UART8250_LCR_DLAB, UART8250_LCR_WLS_8, UART8250_MCR_DTR, UART8250_MCR_RTS, UART_HZ, uart_ptr, and write8().
Referenced by uart_init().
Definition at line 130 of file uart.c.
References mtk_uart_tst_byte(), mtk_uart::rbr, read8(), and uart_ptr.
Referenced by uart_rx_byte().
|
static |
Definition at line 137 of file uart.c.
References mtk_uart::lsr, read8(), UART8250_LSR_DR, and uart_ptr.
Referenced by mtk_uart_rx_byte().
Definition at line 117 of file uart.c.
References mtk_uart::lsr, read8(), mtk_uart::thr, UART8250_LSR_THRE, uart_ptr, and write8().
Referenced by uart_tx_byte().
Definition at line 124 of file uart.c.
References mtk_uart::lsr, read8(), UART8250_LSR_TEMT, and uart_ptr.
Referenced by mtk_uart_init(), and uart_tx_flush().
Definition at line 162 of file uart.c.
References get_uart_baudrate(), lb_add_console(), lb_add_serial(), LB_SERIAL_TYPE_MEMORY_MAPPED, LB_TAG_CONSOLE_SERIAL8250MEM, serial, UART0_BASE, and UART_HZ.
Definition at line 142 of file uart.c.
References mtk_uart_init().
Definition at line 147 of file uart.c.
References mtk_uart_rx_byte().
Definition at line 152 of file uart.c.
References mtk_uart_tx_byte().
Definition at line 157 of file uart.c.
References mtk_uart_tx_flush().
struct mtk_peri_globalcon __packed |
|
static |
Definition at line 67 of file uart.c.
Referenced by mtk_uart_init(), mtk_uart_rx_byte(), mtk_uart_tst_byte(), mtk_uart_tx_byte(), mtk_uart_tx_flush(), tegra124_uart_init(), tegra124_uart_rx_byte(), tegra124_uart_tst_byte(), tegra124_uart_tx_byte(), tegra124_uart_tx_flush(), uart_init(), uart_rx_byte(), uart_tx_byte(), and uart_tx_flush().