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 GLOBAL_DEV   PNP_DEV(0x2e, 0)
 
#define SERIAL_DEV   PNP_DEV(0x2e, NCT6776_SP1)
 
#define GPIO6789_DEV   PNP_DEV(0x2e, NCT6776_GPIO6789_V)
 

Enumerations

enum  cpu_fan_tach_src { CPU_FAN_HEADER_NONE , CPU_FAN_HEADER_1 , CPU_FAN_HEADER_2 , CPU_FAN_HEADER_BOTH }
 

Functions

static u8 get_cpufanin_gpio_config (void)
 
void bootblock_mainboard_early_init (void)
 
void mainboard_get_spd (spd_raw_data *spd, bool id_only)
 

Variables

const struct southbridge_usb_port mainboard_usb_ports []
 

Macro Definition Documentation

◆ GLOBAL_DEV

#define GLOBAL_DEV   PNP_DEV(0x2e, 0)

Definition at line 14 of file early_init.c.

◆ GPIO6789_DEV

#define GPIO6789_DEV   PNP_DEV(0x2e, NCT6776_GPIO6789_V)

Definition at line 16 of file early_init.c.

◆ SERIAL_DEV

#define SERIAL_DEV   PNP_DEV(0x2e, NCT6776_SP1)

Definition at line 15 of file early_init.c.

Enumeration Type Documentation

◆ cpu_fan_tach_src

Enumerator
CPU_FAN_HEADER_NONE 
CPU_FAN_HEADER_1 
CPU_FAN_HEADER_2 
CPU_FAN_HEADER_BOTH 

Definition at line 19 of file early_init.c.

Function Documentation

◆ bootblock_mainboard_early_init()

void bootblock_mainboard_early_init ( void  )

◆ get_cpufanin_gpio_config()

static u8 get_cpufanin_gpio_config ( void  )
static

Definition at line 52 of file early_init.c.

References CPU_FAN_HEADER_1, CPU_FAN_HEADER_2, CPU_FAN_HEADER_BOTH, CPU_FAN_HEADER_NONE, and get_uint_option().

Referenced by bootblock_mainboard_early_init().

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

◆ mainboard_get_spd()

void mainboard_get_spd ( spd_raw_data spd,
bool  id_only 
)

Definition at line 91 of file early_init.c.

References read_spd().

Here is the call graph for this function:

Variable Documentation

◆ mainboard_usb_ports

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

Definition at line 1 of file early_init.c.