coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
util.c File Reference
#include <console/uart.h>
#include <types.h>
#include <timer.h>
Include dependency graph for util.c:

Go to the source code of this file.

Functions

unsigned int uart_baudrate_divisor (unsigned int baudrate, unsigned int refclk, unsigned int oversample)
 
unsigned int uart_input_clock_divider (void)
 
unsigned int uart_platform_refclk (void)
 
void uart_bitbang_tx_byte (unsigned char data, void(*set_tx)(int line_state))
 

Function Documentation

◆ uart_baudrate_divisor()

unsigned int uart_baudrate_divisor ( unsigned int  baudrate,
unsigned int  refclk,
unsigned int  oversample 
)

Definition at line 8 of file util.c.

Referenced by uart_init().

Here is the caller graph for this function:

◆ uart_bitbang_tx_byte()

void uart_bitbang_tx_byte ( unsigned char  data,
void(*)(int line_state)  set_tx 
)

Definition at line 48 of file util.c.

References get_uart_baudrate(), MHz, set_tx(), stopwatch_duration_usecs(), stopwatch_init(), and stopwatch_tick().

Referenced by uart_tx_byte().

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

◆ uart_input_clock_divider()

unsigned int uart_input_clock_divider ( void  )

Definition at line 15 of file util.c.

◆ uart_platform_refclk()

unsigned int uart_platform_refclk ( void  )

Definition at line 32 of file util.c.