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 <soc/pci_devs.h>
#include <soc/pcr_ids.h>
#include <intelblocks/pcr.h>
#include <intelblocks/rtc.h>
#include <intelblocks/p2sb.h>
#include <soc/bootblock.h>
#include <soc/pch.h>
#include <soc/pmc.h>
#include <console/console.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_DMICTL   0x2234
 
#define PCR_DMI_DMICTL_SRLOCK   (1 << 31)
 
#define PCR_DMI_PMBASEA   0x27AC
 
#define PCR_DMI_PMBASEC   0x27B0
 

Functions

static void soc_config_acpibase (void)
 
void bootblock_pch_init (void)
 
void override_hpet_ioapic_bdf (void)
 
void pch_lock_dmictl (void)
 

Macro Definition Documentation

◆ PCR_DMI_ACPIBA

#define PCR_DMI_ACPIBA   0x27B4

Definition at line 14 of file pch.c.

◆ PCR_DMI_ACPIBDID

#define PCR_DMI_ACPIBDID   0x27B8

Definition at line 15 of file pch.c.

◆ PCR_DMI_DMICTL

#define PCR_DMI_DMICTL   0x2234

Definition at line 16 of file pch.c.

◆ PCR_DMI_DMICTL_SRLOCK

#define PCR_DMI_DMICTL_SRLOCK   (1 << 31)

Definition at line 17 of file pch.c.

◆ PCR_DMI_PMBASEA

#define PCR_DMI_PMBASEA   0x27AC

Definition at line 18 of file pch.c.

◆ PCR_DMI_PMBASEC

#define PCR_DMI_PMBASEC   0x27B0

Definition at line 19 of file pch.c.

Function Documentation

◆ bootblock_pch_init()

void bootblock_pch_init ( void  )

Definition at line 46 of file pch.c.

References soc_config_acpibase().

Here is the call graph for this function:

◆ override_hpet_ioapic_bdf()

void override_hpet_ioapic_bdf ( void  )

Definition at line 54 of file pch.c.

References p2sb_bdf::bus, HPET0_FUNC_NUM, HPET_BUS_NUM, HPET_DEV_NUM, p2sb_set_hpet_bdf(), p2sb_set_ioapic_bdf(), PCH_IOAPIC_BUS_NUMBER, PCH_IOAPIC_DEV_NUM, and PCH_IOAPIC_FUNC_NUM.

Referenced by chip_init(), and soc_init().

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

◆ pch_lock_dmictl()

void pch_lock_dmictl ( void  )

Definition at line 71 of file pch.c.

References PCR_DMI_DMICTL, PCR_DMI_DMICTL_SRLOCK, pcr_read32(), pcr_write32(), and PID_DMI.

Referenced by chip_init(), and soc_init().

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

◆ soc_config_acpibase()

static void soc_config_acpibase ( void  )
static

Definition at line 21 of file pch.c.

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

Referenced by bootblock_pch_init().

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