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

static int setup_sio_gpio (u8 bsel)
 
static u8 msr_get_fsb (void)
 
void mainboard_late_rcba_config (void)
 
void mainboard_pre_raminit_config (int s3_resume)
 
void bootblock_mainboard_early_init (void)
 

Macro Definition Documentation

◆ GPIO_DEV

#define GPIO_DEV   PNP_DEV(0x2e, W83627DHG_GPIO2345_V)

Definition at line 17 of file early_init.c.

◆ SERIAL_DEV

#define SERIAL_DEV   PNP_DEV(0x2e, W83627DHG_SP1)

Definition at line 16 of file early_init.c.

Function Documentation

◆ bootblock_mainboard_early_init()

void bootblock_mainboard_early_init ( void  )

Definition at line 99 of file early_init.c.

References SERIAL_DEV, and winbond_enable_serial().

Here is the call graph for this function:

◆ mainboard_late_rcba_config()

void mainboard_late_rcba_config ( void  )

Definition at line 79 of file early_init.c.

References CG, and RCBA32.

◆ mainboard_pre_raminit_config()

void mainboard_pre_raminit_config ( int  s3_resume)

Definition at line 85 of file early_init.c.

References BIOS_DEBUG, full_reset(), msr_get_fsb(), 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 61 of file early_init.c.

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

Referenced by mainboard_pre_raminit_config().

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

◆ setup_sio_gpio()

static int setup_sio_gpio ( u8  bsel)
static

Definition at line 24 of file early_init.c.

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

Referenced by mainboard_pre_raminit_config().

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