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

Go to the source code of this file.

Functions

int pmc_soc_get_resources (struct pmc_resource_config *cfg)
 
static int choose_slp_s3_assertion_width (int width_usecs)
 
static void set_slp_s3_assertion_width (int width_usecs)
 
void pmc_soc_init (struct device *dev)
 

Function Documentation

◆ choose_slp_s3_assertion_width()

static int choose_slp_s3_assertion_width ( int  width_usecs)
static

Definition at line 27 of file pmc.c.

References ARRAY_SIZE, BIOS_DEBUG, printk, SLP_S3_ASSERT_1_MSEC, SLP_S3_ASSERT_2_SEC, SLP_S3_ASSERT_50_MSEC, SLP_S3_ASSERT_60_USEC, USECS_PER_MSEC, USECS_PER_SEC, and value.

Referenced by set_slp_s3_assertion_width().

Here is the caller graph for this function:

◆ pmc_soc_get_resources()

◆ pmc_soc_init()

◆ set_slp_s3_assertion_width()

static void set_slp_s3_assertion_width ( int  width_usecs)
static

Definition at line 68 of file pmc.c.

References choose_slp_s3_assertion_width(), GEN_PMCON3, read32p(), SLP_S3_ASSERT_MASK, SLP_S3_ASSERT_WIDTH_SHIFT, soc_read_pmc_base(), and write32p().

Referenced by pmc_soc_init().

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