coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
early_init.c File Reference
#include <arch/hpet.h>
#include <stdint.h>
#include <string.h>
#include <arch/io.h>
#include <bootblock_common.h>
#include <cbfs.h>
#include <console/console.h>
#include <bootmode.h>
#include <northbridge/intel/sandybridge/sandybridge.h>
#include <northbridge/intel/sandybridge/raminit.h>
#include <northbridge/intel/sandybridge/raminit_native.h>
#include <southbridge/intel/bd82x6x/pch.h>
#include <southbridge/intel/common/gpio.h>
#include <superio/smsc/lpc47n207/lpc47n207.h>
#include "option_table.h"
Include dependency graph for early_init.c:

Go to the source code of this file.

Functions

void bootblock_mainboard_early_init (void)
 
void mainboard_late_rcba_config (void)
 
static const uint8_tlocate_spd (void)
 
void mainboard_fill_pei_data (struct pei_data *pei_data)
 
void mainboard_get_spd (spd_raw_data *spd, bool id_only)
 
int mainboard_should_reset_usb (int s3resume)
 

Variables

const struct southbridge_usb_port mainboard_usb_ports []
 

Function Documentation

◆ bootblock_mainboard_early_init()

void bootblock_mainboard_early_init ( void  )

Definition at line 19 of file early_init.c.

References CONFIG, and try_enabling_LPC47N207_uart().

Here is the call graph for this function:

◆ locate_spd()

static const uint8_t* locate_spd ( void  )
static

Definition at line 64 of file early_init.c.

References BIOS_DEBUG, cbfs_map(), DEFAULT_GPIOBASE, die(), inl(), printk, spd_data, and spd_index.

Referenced by mainboard_fill_pei_data(), and mainboard_get_spd().

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

◆ mainboard_fill_pei_data()

◆ mainboard_get_spd()

void mainboard_get_spd ( spd_raw_data spd,
bool  id_only 
)

Definition at line 177 of file early_init.c.

References locate_spd(), memcpy(), and read_spd().

Here is the call graph for this function:

◆ mainboard_late_rcba_config()

◆ mainboard_should_reset_usb()

int mainboard_should_reset_usb ( int  s3resume)

Definition at line 185 of file early_init.c.

Variable Documentation

◆ mainboard_usb_ports

const struct southbridge_usb_port mainboard_usb_ports[]
Initial value:
= {
{ 1, 1, 0 },
{ 1, 1, 1 },
{ 1, 0, -1 },
{ 1, 0, -1 },
{ 0, 0, -1 },
{ 0, 0, -1 },
{ 0, 0, -1 },
{ 0, 0, -1 },
{ 1, 0, -1 },
{ 0, 0, -1 },
{ 0, 0, -1 },
{ 1, 0, -1 },
{ 0, 0, -1 },
{ 0, 0, -1 },
}

Definition at line 116 of file early_init.c.