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 CMOS_USB_RESET_DISABLE   (400 >> 3)
 
#define USB_RESET_DISABLE_MAGIC   (0xdd) /* Disable if set to this */
 
#define SUPERIO_DEV   PNP_DEV(0x2e, 0)
 
#define SERIAL_DEV   PNP_DEV(0x2e, IT8772F_SP1)
 
#define GPIO_DEV   PNP_DEV(0x2e, IT8772F_GPIO)
 

Functions

void mainboard_late_rcba_config (void)
 
static void setup_sio_gpios (void)
 
void mainboard_fill_pei_data (struct pei_data *pei_data)
 
void mainboard_get_spd (spd_raw_data *spd, bool id_only)
 
int mainboard_should_reset_usb (int s3resume)
 
void bootblock_mainboard_early_init (void)
 

Variables

const struct southbridge_usb_port mainboard_usb_ports []
 

Macro Definition Documentation

◆ CMOS_USB_RESET_DISABLE

#define CMOS_USB_RESET_DISABLE   (400 >> 3)

Definition at line 23 of file early_init.c.

◆ GPIO_DEV

#define GPIO_DEV   PNP_DEV(0x2e, IT8772F_GPIO)

Definition at line 29 of file early_init.c.

◆ SERIAL_DEV

#define SERIAL_DEV   PNP_DEV(0x2e, IT8772F_SP1)

Definition at line 28 of file early_init.c.

◆ SUPERIO_DEV

#define SUPERIO_DEV   PNP_DEV(0x2e, 0)

Definition at line 27 of file early_init.c.

◆ USB_RESET_DISABLE_MAGIC

#define USB_RESET_DISABLE_MAGIC   (0xdd) /* Disable if set to this */

Definition at line 25 of file early_init.c.

Function Documentation

◆ bootblock_mainboard_early_init()

void bootblock_mainboard_early_init ( void  )

◆ mainboard_fill_pei_data()

◆ mainboard_get_spd()

void mainboard_get_spd ( spd_raw_data spd,
bool  id_only 
)

Definition at line 143 of file early_init.c.

References read_spd().

Here is the call graph for this function:

◆ mainboard_late_rcba_config()

◆ mainboard_should_reset_usb()

int mainboard_should_reset_usb ( int  s3resume)

Definition at line 167 of file early_init.c.

References BIOS_DEBUG, cmos_read(), CMOS_USB_RESET_DISABLE, cmos_write(), printk, and USB_RESET_DISABLE_MAGIC.

Here is the call graph for this function:

◆ setup_sio_gpios()

static void setup_sio_gpios ( void  )
static

Definition at line 67 of file early_init.c.

References GPIO_DEV, IT8772F_GPIO_BLINK_FREQUENCY_1_HZ, it8772f_gpio_led(), it8772f_gpio_setup(), SIO_GPIO_BLINK_GPIO45, and SUPERIO_DEV.

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, 1, 0 },
{ 1, 0, 1 },
{ 1, 0, -1 },
{ 1, 0, -1 },
{ 1, 1, 2 },
{ 0, 0, -1 },
{ 0, 0, -1 },
{ 0, 0, -1 },
{ 1, 0, 4 },
{ 1, 0, -1 },
{ 1, 0, -1 },
{ 0, 0, -1 },
{ 1, 0, 6 },
{ 1, 0, 5 },
}

Definition at line 143 of file early_init.c.