coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
lockdown.c File Reference
#include <bootstate.h>
#include <intelblocks/cfg.h>
#include <intelblocks/fast_spi.h>
#include <intelblocks/lpc_lib.h>
#include <intelblocks/pcr.h>
#include <intelblocks/systemagent.h>
#include <intelpch/lockdown.h>
#include <intelblocks/gpmr.h>
#include <soc/pci_devs.h>
#include <soc/pcr_ids.h>
#include <soc/soc_chip.h>
Include dependency graph for lockdown.c:

Go to the source code of this file.

Functions

int get_lockdown_config (void)
 
static void gpmr_lockdown_cfg (void)
 
static void fast_spi_lockdown_cfg (int chipset_lockdown)
 
static void lpc_lockdown_config (int chipset_lockdown)
 
static void sa_lockdown_config (int chipset_lockdown)
 
static void platform_lockdown_config (void *unused)
 
 BOOT_STATE_INIT_ENTRY (BS_DEV_RESOURCES, BS_ON_EXIT, platform_lockdown_config, NULL)
 

Function Documentation

◆ BOOT_STATE_INIT_ENTRY()

BOOT_STATE_INIT_ENTRY ( BS_DEV_RESOURCES  ,
BS_ON_EXIT  ,
platform_lockdown_config  ,
NULL   
)

◆ fast_spi_lockdown_cfg()

◆ get_lockdown_config()

int get_lockdown_config ( void  )

Definition at line 22 of file lockdown.c.

References chip_get_common_soc_structure(), and soc_intel_common_config::chipset_lockdown.

Referenced by fill_fsps_chipset_lockdown_params(), lock_pam0123(), platform_fsp_silicon_init_params_cb(), and platform_lockdown_config().

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

◆ gpmr_lockdown_cfg()

static void gpmr_lockdown_cfg ( void  )
static

Definition at line 30 of file lockdown.c.

References GPMR_DMICTL, GPMR_DMICTL_SRLOCK, GPMR_GCS, GPMR_GCS_BILD, and gpmr_or32().

Referenced by platform_lockdown_config().

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

◆ lpc_lockdown_config()

static void lpc_lockdown_config ( int  chipset_lockdown)
static

Definition at line 93 of file lockdown.c.

References soc_intel_common_config::chipset_lockdown, CHIPSET_LOCKDOWN_COREBOOT, CONFIG, lpc_enable_wp(), lpc_set_bios_interface_lock_down(), lpc_set_eiss(), and lpc_set_lock_enable().

Referenced by platform_lockdown_config().

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

◆ platform_lockdown_config()

static void platform_lockdown_config ( void unused)
static

◆ sa_lockdown_config()

static void sa_lockdown_config ( int  chipset_lockdown)
static

Definition at line 111 of file lockdown.c.

References soc_intel_common_config::chipset_lockdown, CHIPSET_LOCKDOWN_COREBOOT, CONFIG, and sa_lock_pam().

Referenced by platform_lockdown_config().

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