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 SERIAL_DEV   PNP_DEV(0x2e, W83627DHG_SP1)
 
#define GPIO_DEV   PNP_DEV(0x2e, W83627DHG_GPIO2345_V)
 

Functions

void bootblock_mainboard_early_init (void)
 
static u8 msr_get_fsb (void)
 
static int setup_sio_gpio (void)
 
void mb_pre_raminit_setup (int s3_resume)
 
void mb_get_spd_map (u8 spd_map[4])
 

Macro Definition Documentation

◆ GPIO_DEV

#define GPIO_DEV   PNP_DEV(0x2e, W83627DHG_GPIO2345_V)

Definition at line 14 of file early_init.c.

◆ SERIAL_DEV

#define SERIAL_DEV   PNP_DEV(0x2e, W83627DHG_SP1)

Definition at line 13 of file early_init.c.

Function Documentation

◆ bootblock_mainboard_early_init()

void bootblock_mainboard_early_init ( void  )

Definition at line 16 of file early_init.c.

References SERIAL_DEV, and winbond_enable_serial().

Here is the call graph for this function:

◆ mb_get_spd_map()

void mb_get_spd_map ( u8  spd_map[4])

Definition at line 103 of file early_init.c.

◆ mb_pre_raminit_setup()

void mb_pre_raminit_setup ( int  s3_resume)

Definition at line 95 of file early_init.c.

References BIOS_DEBUG, full_reset(), printk, and setup_sio_gpio().

Here is the call graph for this function:

◆ msr_get_fsb()

static u8 msr_get_fsb ( void  )
static

Definition at line 21 of file early_init.c.

References cpuid_eax(), msr_struct::lo, MSR_EBC_FREQUENCY_ID, MSR_FSB_FREQ, and rdmsr().

Referenced by setup_sio_gpio().

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

◆ setup_sio_gpio()

static int setup_sio_gpio ( void  )
static

Definition at line 40 of file early_init.c.

References BIOS_WARNING, GPIO_DEV, msr_get_fsb(), pnp_enter_ext_func_mode(), pnp_exit_ext_func_mode(), pnp_read_config(), pnp_set_logical_device(), pnp_write_config(), and printk.

Referenced by mb_pre_raminit_setup().

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