coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
pch.c File Reference
#include <console/console.h>
#include <device/pci_ops.h>
#include <device/device.h>
#include <device/pci.h>
#include <device/pci_def.h>
#include <soc/pch.h>
#include <soc/pci_devs.h>
#include <soc/rcba.h>
#include <soc/serialio.h>
#include <soc/spi.h>
#include <southbridge/intel/lynxpoint/iobp.h>
Include dependency graph for pch.c:

Go to the source code of this file.

Functions

u8 pch_revision (void)
 
u16 pch_type (void)
 
int pch_is_wpt (void)
 
int pch_is_wpt_ulx (void)
 
u32 pch_read_soft_strap (int id)
 
static void pch_enable_d3hot (struct device *dev)
 
static void rcba_function_disable (u32 reg, u32 bit)
 
void pch_disable_devfn (struct device *dev)
 
static void broadwell_pch_enable_dev (struct device *dev)
 

Variables

struct chip_operations soc_intel_broadwell_pch_ops
 

Function Documentation

◆ broadwell_pch_enable_dev()

◆ pch_disable_devfn()

void pch_disable_devfn ( struct device dev)

Definition at line 77 of file pch.c.

Referenced by broadwell_pch_enable_dev(), and pch_enable().

Here is the caller graph for this function:

◆ pch_enable_d3hot()

static void pch_enable_d3hot ( struct device dev)
static

Definition at line 64 of file pch.c.

References PCH_PCS, PCH_PCS_PS_D3HOT, and pci_or_config32().

Referenced by pch_disable_devfn().

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

◆ pch_is_wpt()

int pch_is_wpt ( void  )

Definition at line 26 of file pch.c.

References pch_type().

Referenced by adsp_init(), pch_cg_init(), pch_enable_mphy(), and pch_pm_init().

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

◆ pch_is_wpt_ulx()

int pch_is_wpt_ulx ( void  )

Definition at line 32 of file pch.c.

References lpcid, pch_type(), PCH_WPT_BDW_Y_BASE, PCH_WPT_BDW_Y_PREMIUM, and PCH_WPT_BDW_Y_SAMPLE.

Referenced by pch_enable_mphy().

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

◆ pch_read_soft_strap()

u32 pch_read_soft_strap ( int  id)

Definition at line 46 of file pch.c.

References SPIBAR32, SPIBAR_FDOC, and SPIBAR_FDOD.

Referenced by pch_enable_mphy().

Here is the caller graph for this function:

◆ pch_revision()

u8 pch_revision ( void  )

Definition at line 15 of file pch.c.

References PCH_DEV_LPC, pci_read_config8(), and PCI_REVISION_ID.

Referenced by report_pch_info().

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

◆ pch_type()

u16 pch_type ( void  )

Definition at line 20 of file pch.c.

References PCH_DEV_LPC, PCI_DEVICE_ID, and pci_read_config16().

Referenced by pch_is_wpt(), pch_is_wpt_ulx(), pch_silicon_type(), and report_pch_info().

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

◆ rcba_function_disable()

static void rcba_function_disable ( u32  reg,
u32  bit 
)
static

Definition at line 70 of file pch.c.

References RCBA32, and RCBA32_OR.

Referenced by pch_disable_devfn().

Here is the caller graph for this function:

Variable Documentation

◆ soc_intel_broadwell_pch_ops

struct chip_operations soc_intel_broadwell_pch_ops
Initial value:
= {
.enable_dev = &broadwell_pch_enable_dev,
}
static void broadwell_pch_enable_dev(struct device *dev)
Definition: pch.c:168

Definition at line 168 of file pch.c.