coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
|
#include <bootstate.h>
#include <console/console.h>
#include <device/mmio.h>
#include <device/device.h>
#include <intelblocks/acpi.h>
#include <intelblocks/pmc.h>
#include <intelblocks/pmclib.h>
#include <intelblocks/rtc.h>
#include <soc/pci_devs.h>
#include <soc/pm.h>
#include "chip.h"
Go to the source code of this file.
Functions | |
static void | pm1_enable_pwrbtn_smi (void *unused) |
BOOT_STATE_INIT_ENTRY (BS_PAYLOAD_LOAD, BS_ON_EXIT, pm1_enable_pwrbtn_smi, NULL) | |
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 | soc_pmc_read_resources (struct device *dev) |
static void | soc_pmc_enable (struct device *dev) |
static void | soc_pmc_init (struct device *dev) |
static void | pmc_fill_ssdt (const struct device *dev) |
static void | pmc_final (struct device *dev) |
Variables | |
struct device_operations | pmc_ops |
BOOT_STATE_INIT_ENTRY | ( | BS_PAYLOAD_LOAD | , |
BS_ON_EXIT | , | ||
pm1_enable_pwrbtn_smi | , | ||
NULL | |||
) |
|
static |
Definition at line 55 of file pmc.c.
References config_deep_sX(), S3_PWRGATE_POL, S3AC_GATE_SUS, and S3DC_GATE_SUS.
Referenced by soc_pmc_enable().
|
static |
Definition at line 46 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 soc_pmc_enable().
Definition at line 61 of file pmc.c.
References DSX_CFG, DSX_CFG_MASK, pmc_mmio_regs(), read32(), and write32().
Referenced by soc_pmc_enable().
Definition at line 31 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().
Definition at line 16 of file pmc.c.
References pmc_update_pm1_enable(), and PWRBTN_EN.
Definition at line 132 of file pmc.c.
References CONFIG, and generate_acpi_power_engine().
Definition at line 149 of file pmc.c.
References pmc_clear_pmcon_sts().
Definition at line 87 of file pmc.c.
References config, config_deep_s3(), config_deep_s5(), config_deep_sx(), config_of_soc, pmc_gpe_init(), pmc_set_power_failure_state(), and rtc_init().
Definition at line 101 of file pmc.c.
References ACPI_TIM_DIS, CONFIG, PCH_PWRM_ACPI_TMR_CTL, pmc_mmio_regs(), pmc_set_acpi_mode(), and setbits8.
Definition at line 72 of file pmc.c.
References ACPI_BASE_ADDRESS, ACPI_BASE_SIZE, resource::base, resource::flags, IORESOURCE_ASSIGNED, IORESOURCE_FIXED, IORESOURCE_IO, KiB, resource::limit, mmio_resource, new_resource(), PCH_PWRM_BASE_ADDRESS, PCH_PWRM_BASE_SIZE, and resource::size.
struct device_operations pmc_ops |