coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
chip.c File Reference
#include <console/console.h>
#include <device/device.h>
#include <device/pci.h>
#include <device/pci_ops.h>
#include <fsp/util.h>
#include <soc/pci_devs.h>
#include <soc/ramstage.h>
#include "chip.h"
Include dependency graph for chip.c:

Go to the source code of this file.

Functions

static void enable_dev (struct device *dev)
 
__weak void board_silicon_USB2_override (SILICON_INIT_UPD *params)
 
void soc_silicon_init_params (SILICON_INIT_UPD *params)
 
void soc_display_silicon_init_params (const SILICON_INIT_UPD *old, SILICON_INIT_UPD *new)
 
static void soc_init (void *chip_info)
 
int SocStepping (void)
 Return SoC stepping type. More...
 

Variables

static struct device_operations pci_domain_ops
 
static struct device_operations cpu_bus_ops
 
struct chip_operations soc_intel_braswell_ops
 
struct pci_operations soc_pci_ops
 

Function Documentation

◆ board_silicon_USB2_override()

__weak void board_silicon_USB2_override ( SILICON_INIT_UPD *  params)

Definition at line 43 of file chip.c.

Referenced by soc_silicon_init_params().

Here is the caller graph for this function:

◆ enable_dev()

static void enable_dev ( struct device dev)
static

◆ soc_display_silicon_init_params()

void soc_display_silicon_init_params ( const SILICON_INIT_UPD *  old,
SILICON_INIT_UPD *  new 
)

Definition at line 139 of file chip.c.

References BIOS_SPEW, fsp_display_upd_value(), and printk.

Referenced by fsp_run_silicon_init().

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

◆ soc_init()

static void soc_init ( void chip_info)
static

Definition at line 291 of file chip.c.

References soc_init_pre_device().

Here is the call graph for this function:

◆ soc_silicon_init_params()

void soc_silicon_init_params ( SILICON_INIT_UPD *  params)

Definition at line 47 of file chip.c.

References BIOS_DEBUG, BIOS_ERR, board_silicon_USB2_override(), config, config_of(), dev_path(), LPC_DEV, LPC_FUNC, params, pcidev_on_root(), and printk.

Referenced by fsp_run_silicon_init(), and platform_fsp_silicon_init_params_cb().

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

◆ SocStepping()

Variable Documentation

◆ cpu_bus_ops

struct device_operations cpu_bus_ops
static
Initial value:
= {
.read_resources = noop_read_resources,
.set_resources = noop_set_resources,
.init = mp_cpu_bus_init,
}
static void noop_read_resources(struct device *dev)
Standard device operations function pointers shims.
Definition: device.h:73
static void noop_set_resources(struct device *dev)
Definition: device.h:74
static void mp_cpu_bus_init(struct device *dev)
Definition: device.h:240

Definition at line 1 of file chip.c.

◆ pci_domain_ops

struct device_operations pci_domain_ops
static
Initial value:
= {
.read_resources = pci_domain_read_resources,
.set_resources = pci_domain_set_resources,
.scan_bus = pci_domain_scan_bus,
}
void pci_domain_read_resources(struct device *dev)
Definition: pci_device.c:547
void pci_domain_set_resources(struct device *dev)
Definition: pci_device.c:564
void pci_domain_scan_bus(struct device *dev)
Scan a PCI domain.
Definition: pci_device.c:1610

Definition at line 1 of file chip.c.

Referenced by enable_dev().

◆ soc_intel_braswell_ops

struct chip_operations soc_intel_braswell_ops
Initial value:
= {
.enable_dev = enable_dev,
.init = soc_init,
}
static void enable_dev(struct device *dev)
Definition: chip.c:25
static void soc_init(void *chip_info)
Definition: chip.c:291

Definition at line 291 of file chip.c.

◆ soc_pci_ops

struct pci_operations soc_pci_ops
Initial value:
= {
.set_subsystem = &pci_dev_set_subsystem,
}
void pci_dev_set_subsystem(struct device *dev, unsigned int vendor, unsigned int device)
Definition: pci_device.c:791

Definition at line 291 of file chip.c.