coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
early_init.c File Reference
Include dependency graph for early_init.c:

Go to the source code of this file.

Macros

#define SPD_LEN   256
 

Functions

void mainboard_pch_lpc_setup (void)
 
void mainboard_get_spd (spd_raw_data *spd, bool id_only)
 

Variables

const struct southbridge_usb_port mainboard_usb_ports []
 
static const char * mainboard_spd_names [9]
 

Macro Definition Documentation

◆ SPD_LEN

#define SPD_LEN   256

Definition at line 13 of file early_init.c.

Function Documentation

◆ mainboard_get_spd()

void mainboard_get_spd ( spd_raw_data spd,
bool  id_only 
)

Definition at line 57 of file early_init.c.

References ARRAY_SIZE, BIOS_INFO, cbfs_map(), die(), get_gpios(), mainboard_spd_names, memcpy(), printk, spd_index, and SPD_LEN.

Here is the call graph for this function:

◆ mainboard_pch_lpc_setup()

void mainboard_pch_lpc_setup ( void  )

Definition at line 15 of file early_init.c.

References BIOS_DEC_EN1, CONFIG, ec_mm_set_bit, LGMR, PCH_LPC_DEV, pci_write_config16(), and pci_write_config32().

Here is the call graph for this function:

Variable Documentation

◆ mainboard_spd_names

const char* mainboard_spd_names[9]
static
Initial value:
= {
"ELPIDA 4GB",
"SAMSUNG 4GB",
"HYNIX 4GB",
"ELPIDA 8GB",
"SAMSUNG 8GB",
"HYNIX 8GB",
"ELPIDA 2GB",
"SAMSUNG 2GB",
"HYNIX 2GB",
}

Definition at line 45 of file early_init.c.

Referenced by mainboard_get_spd().

◆ mainboard_usb_ports

const struct southbridge_usb_port mainboard_usb_ports[]
Initial value:
= {
{ 1, 1, 0 },
{ 1, 0, 0 },
{ 1, 1, 1 },
{ 1, 0, 1 },
{ 1, 1, 2 },
{ 1, 0, 2 },
{ 0, 0, 3 },
{ 0, 1, 3 },
{ 1, 0, 4 },
{ 1, 1, 4 },
{ 1, 1, 5 },
{ 1, 1, 5 },
{ 1, 1, 6 },
{ 1, 1, 6 },
}

Definition at line 15 of file early_init.c.