coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
early_southbridge.c File Reference
#include <bootblock_common.h>
#include <stdint.h>
#include <cf9_reset.h>
#include <northbridge/intel/sandybridge/raminit_native.h>
#include <southbridge/intel/bd82x6x/pch.h>
#include "superio.h"
#include "thermal.h"
#include "usb.h"
Include dependency graph for early_southbridge.c:

Go to the source code of this file.

Macros

#define USB_CONFIG(enabled, current, ocpin)   { enabled, current, ocpin }
 

Functions

static void hwm_init (void)
 
static void superio_init (void)
 
void bootblock_mainboard_early_init (void)
 
void mainboard_get_spd (spd_raw_data *spd, bool id_only)
 

Variables

static const u16 hwm_initvals []
 
static const u16 superio_initvals []
 
const struct southbridge_usb_port mainboard_usb_ports []
 

Macro Definition Documentation

◆ USB_CONFIG

#define USB_CONFIG (   enabled,
  current,
  ocpin 
)    { enabled, current, ocpin }

Function Documentation

◆ bootblock_mainboard_early_init()

void bootblock_mainboard_early_init ( void  )

Definition at line 124 of file early_southbridge.c.

References hwm_init(), and superio_init().

Here is the call graph for this function:

◆ hwm_init()

static void hwm_init ( void  )
static

Definition at line 58 of file early_southbridge.c.

References ARRAY_SIZE, hwm_initvals, and HWM_WRITE_INITVAL.

Referenced by bootblock_mainboard_early_init().

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 130 of file early_southbridge.c.

References read_spd().

Here is the call graph for this function:

◆ superio_init()

static void superio_init ( void  )
static

Definition at line 116 of file early_southbridge.c.

References ARRAY_SIZE, superio_initvals, SUPERIO_LOCK, SUPERIO_UNLOCK, and SUPERIO_WRITE_INITVAL.

Referenced by bootblock_mainboard_early_init().

Here is the caller graph for this function:

Variable Documentation

◆ hwm_initvals

const u16 hwm_initvals[]
static

Definition at line 12 of file early_southbridge.c.

Referenced by hwm_init().

◆ mainboard_usb_ports

const struct southbridge_usb_port mainboard_usb_ports[]
Initial value:
= {
#define USB_CONFIG(enabled, current, ocpin)
}

Definition at line 130 of file early_southbridge.c.

◆ superio_initvals

const u16 superio_initvals[]
static

Definition at line 65 of file early_southbridge.c.

Referenced by superio_init().