coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
pmc.c File Reference
#include <bootstate.h>
#include <console/console.h>
#include <device/mmio.h>
#include <device/device.h>
#include <intelblocks/pmc.h>
#include <intelblocks/pmclib.h>
#include <intelblocks/rtc.h>
#include <soc/pci_devs.h>
#include <soc/pm.h>
#include <soc/soc_chip.h>
Include dependency graph for pmc.c:

Go to the source code of this file.

Functions

static void config_deep_sX (uint32_t offset, uint32_t mask, int sx, int enable)
 
static void config_deep_s5 (int on_ac, int on_dc)
 
static void config_deep_s3 (int on_ac, int on_dc)
 
static void config_deep_sx (uint32_t deepsx_config)
 
static void pmc_init (void *unused)
 
 BOOT_STATE_INIT_ENTRY (BS_DEV_INIT_CHIPS, BS_ON_EXIT, pmc_init, NULL)
 

Function Documentation

◆ BOOT_STATE_INIT_ENTRY()

BOOT_STATE_INIT_ENTRY ( BS_DEV_INIT_CHIPS  ,
BS_ON_EXIT  ,
pmc_init  ,
NULL   
)

◆ config_deep_s3()

static void config_deep_s3 ( int  on_ac,
int  on_dc 
)
static

Definition at line 38 of file pmc.c.

References config_deep_sX(), S3_PWRGATE_POL, S3AC_GATE_SUS, and S3DC_GATE_SUS.

Referenced by pmc_init().

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

◆ config_deep_s5()

static void config_deep_s5 ( int  on_ac,
int  on_dc 
)
static

Definition at line 29 of file pmc.c.

References config_deep_sX(), S4_PWRGATE_POL, S4AC_GATE_SUS, S4DC_GATE_SUS, S5_PWRGATE_POL, S5AC_GATE_SUS, and S5DC_GATE_SUS.

Referenced by pmc_init().

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

◆ config_deep_sx()

static void config_deep_sx ( uint32_t  deepsx_config)
static

Definition at line 44 of file pmc.c.

References DSX_CFG, DSX_CFG_MASK, pmc_mmio_regs(), read32(), and write32().

Referenced by pmc_init().

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

◆ config_deep_sX()

static void config_deep_sX ( uint32_t  offset,
uint32_t  mask,
int  sx,
int  enable 
)
static

Definition at line 14 of file pmc.c.

References BIOS_DEBUG, mask, offset, pmc_mmio_regs(), printk, read32(), and write32().

Referenced by config_deep_s3(), and config_deep_s5().

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

◆ pmc_init()