coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
early_serial.c File Reference
#include <arch/io.h>
#include <device/pnp.h>
#include <stdint.h>
#include "lpc47n207.h"
Include dependency graph for early_serial.c:

Go to the source code of this file.

Data Structures

struct  uart_conf
 

Macros

#define CONF_ENABLE   0x55
 
#define CONF_DISABLE   0xaa
 

Functions

void try_enabling_LPC47N207_uart (void)
 

Variables

static const uart_conf uart_conf_data []
 

Macro Definition Documentation

◆ CONF_DISABLE

#define CONF_DISABLE   0xaa

◆ CONF_ENABLE

#define CONF_ENABLE   0x55

Function Documentation

◆ try_enabling_LPC47N207_uart()

void try_enabling_LPC47N207_uart ( void  )

Definition at line 31 of file early_serial.c.

References ARRAY_SIZE, CONF_DISABLE, CONF_ENABLE, uart_conf::conf_reg, inb(), mask, uart_conf::mask, outb(), uart_conf_data, value, and uart_conf::value.

Referenced by bootblock_mainboard_early_init().

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

Variable Documentation

◆ uart_conf_data

const uart_conf uart_conf_data[]
static
Initial value:
= {
{2, (1 << 3), (1 << 3)},
{0xc, (1 << 6), (1 << 6)},
{0x24, (CONFIG_TTYS0_BASE >> 3) << 1, 0xff},
}

Definition at line 25 of file early_serial.c.

Referenced by try_enabling_LPC47N207_uart().