coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
finalize.c File Reference
#include <bootstate.h>
#include <commonlib/console/post_codes.h>
#include <console/console.h>
#include <cpu/x86/smm.h>
#include <device/mmio.h>
#include <device/pci.h>
#include <intelblocks/lpc_lib.h>
#include <intelblocks/pcr.h>
#include <intelblocks/pmclib.h>
#include <intelblocks/systemagent.h>
#include <intelblocks/tco.h>
#include <soc/p2sb.h>
#include <soc/pci_devs.h>
#include <soc/pcr_ids.h>
#include <soc/pm.h>
#include <soc/smbus.h>
#include <soc/soc_chip.h>
#include <soc/systemagent.h>
#include <spi-generic.h>
Include dependency graph for finalize.c:

Go to the source code of this file.

Macros

#define CAMERA1_CLK   0x8000 /* Camera 1 Clock */
 
#define CAMERA2_CLK   0x8080 /* Camera 2 Clock */
 
#define CAM_CLK_EN   (1 << 1)
 
#define MIPI_CLK   (1 << 0)
 
#define HDPLL_CLK   (0 << 0)
 

Functions

static void pch_enable_isclk (void)
 
static void pch_handle_sideband (config_t *config)
 
static void pch_finalize (void)
 
static void soc_finalize (void *unused)
 
 BOOT_STATE_INIT_ENTRY (BS_OS_RESUME, BS_ON_ENTRY, soc_finalize, NULL)
 
 BOOT_STATE_INIT_ENTRY (BS_PAYLOAD_LOAD, BS_ON_EXIT, soc_finalize, NULL)
 

Macro Definition Documentation

◆ CAM_CLK_EN

#define CAM_CLK_EN   (1 << 1)

Definition at line 25 of file finalize.c.

◆ CAMERA1_CLK

#define CAMERA1_CLK   0x8000 /* Camera 1 Clock */

Definition at line 23 of file finalize.c.

◆ CAMERA2_CLK

#define CAMERA2_CLK   0x8080 /* Camera 2 Clock */

Definition at line 24 of file finalize.c.

◆ HDPLL_CLK

#define HDPLL_CLK   (0 << 0)

Definition at line 27 of file finalize.c.

◆ MIPI_CLK

#define MIPI_CLK   (1 << 0)

Definition at line 26 of file finalize.c.

Function Documentation

◆ BOOT_STATE_INIT_ENTRY() [1/2]

BOOT_STATE_INIT_ENTRY ( BS_OS_RESUME  ,
BS_ON_ENTRY  ,
soc_finalize  ,
NULL   
)

◆ BOOT_STATE_INIT_ENTRY() [2/2]

BOOT_STATE_INIT_ENTRY ( BS_PAYLOAD_LOAD  ,
BS_ON_EXIT  ,
soc_finalize  ,
NULL   
)

◆ pch_enable_isclk()

static void pch_enable_isclk ( void  )
static

Definition at line 29 of file finalize.c.

References CAM_CLK_EN, CAMERA1_CLK, CAMERA2_CLK, MIPI_CLK, pcr_or32(), and PID_ISCLK.

Referenced by pch_handle_sideband().

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

◆ pch_finalize()

static void pch_finalize ( void  )
static

Definition at line 41 of file finalize.c.

References BIT, CNVIVNNAONREQQDIS, config, config_of_soc, CORE_SPARE_GCR_0, CPPMVRIC2, CPPMVRIC3, pch_handle_sideband(), pmc_clear_pmcon_sts(), pmc_mmio_regs(), read32(), setbits32, tco_lockdown(), USBSUSPGQDIS, and write32().

Referenced by soc_finalize().

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

◆ pch_handle_sideband()

static void pch_handle_sideband ( config_t config)
static

Definition at line 35 of file finalize.c.

References config, and pch_enable_isclk().

Referenced by pch_finalize().

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

◆ soc_finalize()

static void soc_finalize ( void unused)
static

Definition at line 73 of file finalize.c.

References APM_CNT_FINALIZE, apm_control(), BIOS_DEBUG, pch_finalize(), post_code, POST_OS_BOOT, and printk.

Here is the call graph for this function: