coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
pch.c File Reference
#include <device/pci_ops.h>
#include <device/device.h>
#include <device/pci_def.h>
#include <intelblocks/fast_spi.h>
#include <intelblocks/gspi.h>
#include <intelblocks/itss.h>
#include <intelblocks/lpc_lib.h>
#include <intelblocks/p2sb.h>
#include <intelblocks/pcr.h>
#include <intelblocks/pmclib.h>
#include <intelblocks/rtc.h>
#include <soc/bootblock.h>
#include <soc/iomap.h>
#include <soc/p2sb.h>
#include <soc/pch.h>
#include <soc/pci_devs.h>
#include <soc/pcr_ids.h>
#include <soc/pm.h>
#include <soc/pmc.h>
#include "../chip.h"
Include dependency graph for pch.c:

Go to the source code of this file.

Macros

#define PCR_DMI_ACPIBA   0x27B4
 
#define PCR_DMI_ACPIBDID   0x27B8
 
#define PCR_DMI_PMBASEA   0x27AC
 
#define PCR_DMI_PMBASEC   0x27B0
 

Functions

void bootblock_pch_early_init (void)
 
static void soc_config_acpibase (void)
 
static void soc_config_pwrmbase (void)
 
void pch_early_iorange_init (void)
 
void bootblock_pch_init (void)
 

Macro Definition Documentation

◆ PCR_DMI_ACPIBA

#define PCR_DMI_ACPIBA   0x27B4

Definition at line 23 of file pch.c.

◆ PCR_DMI_ACPIBDID

#define PCR_DMI_ACPIBDID   0x27B8

Definition at line 24 of file pch.c.

◆ PCR_DMI_PMBASEA

#define PCR_DMI_PMBASEA   0x27AC

Definition at line 25 of file pch.c.

◆ PCR_DMI_PMBASEC

#define PCR_DMI_PMBASEC   0x27B0

Definition at line 26 of file pch.c.

Function Documentation

◆ bootblock_pch_early_init()

void bootblock_pch_early_init ( void  )

Definition at line 28 of file pch.c.

References fast_spi_early_init(), p2sb_configure_hpet(), p2sb_enable_bar(), and SPI_BASE_ADDRESS.

Here is the call graph for this function:

◆ bootblock_pch_init()

void bootblock_pch_init ( void  )

Definition at line 123 of file pch.c.

References enable_rtc_upper_bank(), gspi_early_bar_init(), pmc_gpe_init(), soc_config_acpibase(), and soc_config_pwrmbase().

Here is the call graph for this function:

◆ pch_early_iorange_init()

void pch_early_iorange_init ( void  )

◆ soc_config_acpibase()

static void soc_config_acpibase ( void  )
static

Definition at line 40 of file pch.c.

References ABASE, ACPI_BASE_ADDRESS, ACPI_EN, ACTL, CONFIG, PCH_DEV_PMC, pci_read_config32(), pci_write_config32(), PCR_DMI_ACPIBA, PCR_DMI_ACPIBDID, pcr_write32(), and PID_DMI.

Referenced by bootblock_pch_init().

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

◆ soc_config_pwrmbase()

static void soc_config_pwrmbase ( void  )
static

Definition at line 66 of file pch.c.

References ACTL, CONFIG, PCH_DEV_PMC, PCH_PWRM_BASE_ADDRESS, pci_read_config32(), pci_write_config32(), PCR_DMI_PMBASEA, PCR_DMI_PMBASEC, pcr_write32(), PID_DMI, PWRM_EN, and PWRMBASE.

Referenced by bootblock_pch_init().

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