coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
bootblock.c File Reference
#include <bootblock_common.h>
#include <device/pci_def.h>
#include <device/pci_ops.h>
#include <intelblocks/lpc_lib.h>
#include <intelblocks/pcr.h>
#include <soc/intel/common/block/lpc/lpc_def.h>
#include <soc/pci_devs.h>
#include <soc/pcr_ids.h>
#include <superio/aspeed/ast2400/ast2400.h>
#include <superio/aspeed/common/aspeed.h>
#include <cpxsp_dl_gpio.h>
Include dependency graph for bootblock.c:

Go to the source code of this file.

Macros

#define ASPEED_SIO_PORT   0x2E
 
#define PCR_DMI_LPCIOD   0x2770
 
#define PCR_DMI_LPCIOE   0x2774
 

Functions

static void enable_espi_lpc_io_windows (void)
 
static uint8_t com_to_ast_sio (uint8_t com)
 
void bootblock_mainboard_early_init (void)
 

Macro Definition Documentation

◆ ASPEED_SIO_PORT

#define ASPEED_SIO_PORT   0x2E

Definition at line 15 of file bootblock.c.

◆ PCR_DMI_LPCIOD

#define PCR_DMI_LPCIOD   0x2770

Definition at line 16 of file bootblock.c.

◆ PCR_DMI_LPCIOE

#define PCR_DMI_LPCIOE   0x2774

Definition at line 17 of file bootblock.c.

Function Documentation

◆ bootblock_mainboard_early_init()

void bootblock_mainboard_early_init ( void  )

Definition at line 55 of file bootblock.c.

References ARRAY_SIZE, aspeed_enable_serial(), ASPEED_SIO_PORT, com_to_ast_sio(), early_gpio_table, enable_espi_lpc_io_windows(), gpio_configure_pads(), and PNP_DEV.

Here is the call graph for this function:

◆ com_to_ast_sio()

static uint8_t com_to_ast_sio ( uint8_t  com)
static

Definition at line 39 of file bootblock.c.

References AST2400_SUART1, AST2400_SUART2, AST2400_SUART3, and AST2400_SUART4.

Referenced by bootblock_mainboard_early_init().

Here is the caller graph for this function:

◆ enable_espi_lpc_io_windows()

static void enable_espi_lpc_io_windows ( void  )
static

Definition at line 19 of file bootblock.c.

References LPC_IO_DECODE, LPC_IO_ENABLES, LPC_IOD_COMA_RANGE, LPC_IOD_COMB_RANGE, LPC_IOE_COMA_EN, LPC_IOE_COMB_EN, LPC_IOE_SUPERIO_2E_2F, PCH_DEV_LPC, pci_write_config16(), PCR_DMI_LPCIOD, PCR_DMI_LPCIOE, pcr_or32(), and PID_DMI.

Referenced by bootblock_mainboard_early_init().

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