![]() |
coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
|
#include <types.h>
#include <console/uart.h>
#include <device/mmio.h>
#include <boot/coreboot_tables.h>
#include <soc/ti/am335x/uart.h>
Go to the source code of this file.
Macros | |
#define | EFR_ENHANCED_EN (1 << 4) |
#define | FCR_FIFO_EN (1 << 0) |
#define | MCR_TCR_TLR (1 << 6) |
#define | SYSC_SOFTRESET (1 << 1) |
#define | SYSS_RESETDONE (1 << 0) |
#define | LSR_RXFIFOE (1 << 0) |
#define | LSR_TXFIFOE (1 << 5) |
Functions | |
static void | am335x_uart_init (struct am335x_uart *uart, uint16_t div) |
static unsigned char | am335x_uart_rx_byte (struct am335x_uart *uart) |
static void | am335x_uart_tx_byte (struct am335x_uart *uart, unsigned char data) |
unsigned int | uart_platform_refclk (void) |
uintptr_t | uart_platform_base (unsigned int idx) |
void | uart_init (unsigned int idx) |
ipq40xx_uart_init - initializes UART More... | |
unsigned char | uart_rx_byte (unsigned int idx) |
ipq40xx_serial_getc - reads a character More... | |
void | uart_tx_byte (unsigned int idx, unsigned char data) |
msm_boot_uart_dm_read - reads a word from the RX FIFO. More... | |
void | uart_tx_flush (unsigned int idx) |
uart_tx_flush - transmits a string of data More... | |
void | uart_fill_lb (void *data) |
|
static |
Definition at line 22 of file uart.c.
References am335x_uart::dlh, am335x_uart::dll, am335x_uart::efr, EFR_ENHANCED_EN, am335x_uart::fcr, FCR_FIFO_EN, am335x_uart::ier, am335x_uart::lcr, am335x_uart::mcr, MCR_TCR_TLR, am335x_uart::mdr1, read16(), am335x_uart::sysc, SYSC_SOFTRESET, am335x_uart::syss, SYSS_RESETDONE, and write16().
Referenced by uart_init().
|
static |
Definition at line 116 of file uart.c.
References am335x_uart::lsr, LSR_RXFIFOE, read16(), read8(), and am335x_uart::rhr.
Referenced by uart_rx_byte().
|
static |
Definition at line 126 of file uart.c.
References am335x_uart::lsr, LSR_TXFIFOE, read16(), am335x_uart::thr, and write8().
Referenced by uart_tx_byte().
Definition at line 173 of file uart.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().
ipq40xx_uart_init - initializes UART
Initializes clocks, GPIO and UART controller.
ipq40xx_uart_init - initializes UART
Initializes clocks, GPIO and UART controller.
Definition at line 149 of file uart.c.
References am335x_uart_init(), get_uart_baudrate(), uart_baudrate_divisor(), uart_platform_baseptr(), and uart_platform_refclk().
Definition at line 138 of file uart.c.
References ARRAY_SIZE, and bases.
ipq40xx_serial_getc - reads a character
Returns the character read from serial port.
ipq40xx_serial_getc - reads a character
Returns 1 if data available, 0 otherwise ipq806x_serial_getc - reads a character
Returns the character read from serial port.
Definition at line 157 of file uart.c.
References am335x_uart_rx_byte(), and uart_platform_baseptr().
msm_boot_uart_dm_read - reads a word from the RX FIFO.
@data: location where the read data is stored @count: no of valid data in the FIFO @wait: indicates blocking call or not blocking call
Reads a word from the RX FIFO. If no data is available blocks if @wait is true, else returns MSM_BOOT_UART_DM_E_RX_NOT_READY.
Definition at line 163 of file uart.c.
References am335x_uart_tx_byte(), and uart_platform_baseptr().