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(X9SCL_NCT6776_PNP_BASE, NCT6776_SP1)
 
#define KCS_DEV   PNP_DEV(X9SCL_WPCM450_PNP_BASE, 0x11)
 
#define SUPERIO_INITVAL(reg, data)   {(reg), (data)}
 
#define SUPERIO_BANK(x)   SUPERIO_INITVAL(0x07, (x))
 

Functions

static void superio_init (void)
 
static void bmc_init (void)
 
void bootblock_mainboard_early_init (void)
 
void mainboard_get_spd (spd_raw_data *spd, bool id_only)
 
void mainboard_early_init (int s3resume)
 

Variables

const struct southbridge_usb_port mainboard_usb_ports []
 
static const uint8_t superio_initvals [][2]
 

Macro Definition Documentation

◆ KCS_DEV

#define KCS_DEV   PNP_DEV(X9SCL_WPCM450_PNP_BASE, 0x11)

Definition at line 18 of file early_init.c.

◆ SERIAL_DEV

#define SERIAL_DEV   PNP_DEV(X9SCL_NCT6776_PNP_BASE, NCT6776_SP1)

Definition at line 17 of file early_init.c.

◆ SUPERIO_BANK

#define SUPERIO_BANK (   x)    SUPERIO_INITVAL(0x07, (x))

Definition at line 21 of file early_init.c.

◆ SUPERIO_INITVAL

#define SUPERIO_INITVAL (   reg,
  data 
)    {(reg), (data)}

Definition at line 20 of file early_init.c.

Function Documentation

◆ bmc_init()

static void bmc_init ( void  )
static

Definition at line 85 of file early_init.c.

References KCS_DEV, PNP_IDX_IO0, PNP_IDX_IO1, PNP_IDX_IRQ0, pnp_set_enable(), pnp_set_iobase(), pnp_set_logical_device(), pnp_write_config(), and X9SCL_WPCM450_KCS_BASE.

Referenced by bootblock_mainboard_early_init().

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

◆ bootblock_mainboard_early_init()

void bootblock_mainboard_early_init ( void  )

Definition at line 99 of file early_init.c.

References bmc_init(), nuvoton_enable_serial(), SERIAL_DEV, and superio_init().

Here is the call graph for this function:

◆ mainboard_early_init()

void mainboard_early_init ( int  s3resume)

Definition at line 114 of file early_init.c.

References GGC, PCI_DEV, and pci_write_config16().

Here is the call graph for this function:

◆ mainboard_get_spd()

void mainboard_get_spd ( spd_raw_data spd,
bool  id_only 
)

Definition at line 106 of file early_init.c.

References read_spd().

Here is the call graph for this function:

◆ superio_init()

static void superio_init ( void  )
static

Definition at line 75 of file early_init.c.

References ARRAY_SIZE, nuvoton_pnp_enter_conf_state(), nuvoton_pnp_exit_conf_state(), PNP_DEV, pnp_write_config(), superio_initvals, and X9SCL_NCT6776_PNP_BASE.

Referenced by bootblock_mainboard_early_init().

Here is the call graph for this function:
Here is the caller 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, 0, 1 },
{ 1, 0, 1 },
{ 1, 0, 2 },
{ 1, 0, 2 },
{ 1, 0, 3 },
{ 1, 0, 3 },
{ 1, 0, 4 },
{ 1, 0, 4 },
{ 1, 0, 6 },
{ 1, 0, 5 },
{ 1, 0, 5 },
{ 1, 0, 6 },
}

Definition at line 1 of file early_init.c.

◆ superio_initvals

const uint8_t superio_initvals[][2]
static

Definition at line 40 of file early_init.c.

Referenced by superio_init().