coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
|
#include <cbmem.h>
#include <stdint.h>
#include <commonlib/helpers.h>
#include <arch/io.h>
#include <device/mmio.h>
#include <console/console.h>
#include <soc/iomap.h>
#include <soc/iosf.h>
#include <soc/romstage.h>
#include "../chip.h"
Go to the source code of this file.
Functions | |
static void | migrate_power_state (int is_recovery) |
ROMSTAGE_CBMEM_INIT_HOOK (migrate_power_state) | |
struct chipset_power_state * | fill_power_state (void) |
int | chipset_prev_sleep_state (const struct chipset_power_state *ps) |
void | soc_after_ram_init (struct romstage_params *params) |
void | soc_memory_init_params (struct romstage_params *params, MEMORY_INIT_UPD *upd) |
void | soc_display_memory_init_params (const MEMORY_INIT_UPD *old, MEMORY_INIT_UPD *new) |
Variables | |
static struct chipset_power_state | power_state |
int chipset_prev_sleep_state | ( | const struct chipset_power_state * | ps | ) |
Definition at line 60 of file romstage.c.
References ACPI_BASE_ADDRESS, ACPI_S0, ACPI_S3, ACPI_S5, CONFIG, chipset_power_state::gen_pmcon1, outl(), PM1_CNT, chipset_power_state::pm1_cnt, chipset_power_state::pm1_sts, prev_sleep_state(), PWR_FLR, SLP_TYP, SUS_PWR_FLR, and WAK_STS.
Referenced by fill_power_state().
struct chipset_power_state* fill_power_state | ( | void | ) |
Definition at line 31 of file romstage.c.
Referenced by cache_as_ram_stage_main(), and mainboard_romstage_entry().
|
static |
Definition at line 17 of file romstage.c.
References BIOS_DEBUG, cbmem_add(), CBMEM_ID_POWER_STATE, memcpy(), NULL, power_state, and printk.
ROMSTAGE_CBMEM_INIT_HOOK | ( | migrate_power_state | ) |
void soc_after_ram_init | ( | struct romstage_params * | params | ) |
Definition at line 87 of file romstage.c.
References BIOS_DEBUG, BUNIT_BMISC, iosf_bunit_read(), iosf_bunit_write(), printk, and value.
Referenced by cache_as_ram_stage_main().
void soc_display_memory_init_params | ( | const MEMORY_INIT_UPD * | old, |
MEMORY_INIT_UPD * | new | ||
) |
Definition at line 128 of file romstage.c.
References BIOS_SPEW, fsp_display_upd_value(), and printk.
Referenced by raminit().
void soc_memory_init_params | ( | struct romstage_params * | params, |
MEMORY_INIT_UPD * | upd | ||
) |
Definition at line 99 of file romstage.c.
References BIOS_DEBUG, BIOS_ERR, config, config_of(), LPC_DEV, LPC_FUNC, MiB, pcidev_on_root(), and printk.
Referenced by platform_fsp_memory_init_params_cb(), and raminit().
|
static |
Definition at line 1 of file romstage.c.
Referenced by fill_power_state(), and migrate_power_state().