![]() |
coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
|
#include <arch/cpu.h>
#include <acpi/acpi_pm.h>
#include <console/console.h>
#include <cpu/intel/microcode.h>
#include <cpu/x86/cr.h>
#include <cpu/x86/msr.h>
#include <device/device.h>
#include <device/pci_def.h>
#include <device/pci_ops.h>
#include <intelblocks/acpi_wake_source.h>
#include <fsp/util.h>
#include <soc/gpio.h>
#include <soc/lpc.h>
#include <soc/msr.h>
#include <soc/pattrs.h>
#include <soc/pci_devs.h>
#include <soc/pm.h>
#include <soc/ramstage.h>
Go to the source code of this file.
Macros | |
#define | SHOW_PATTRS 1 |
Functions | |
static void | detect_num_cpus (struct pattrs *attrs) |
static void | fill_in_msr (msr_t *msr, int idx) |
static void | fill_in_pattrs (void) |
int | soc_fill_acpi_wake (const struct chipset_power_state *ps, uint32_t *pm1, uint32_t **gpe0) |
void | soc_init_pre_device (struct soc_intel_braswell_config *config) |
Variables | |
struct pattrs | __global_pattrs |
static const char *const | stepping_str [] |
#define SHOW_PATTRS 1 |
Definition at line 22 of file ramstage.c.
Definition at line 26 of file ramstage.c.
References attrs, cpuid_ext(), cpuid_result::ebx, and cpuid_result::ecx.
Referenced by fill_in_pattrs().
Definition at line 47 of file ramstage.c.
References BIOS_DEBUG, msr_struct::hi, msr_struct::lo, printk, rdmsr(), and SHOW_PATTRS.
Referenced by fill_in_pattrs().
Definition at line 60 of file ramstage.c.
References ARRAY_SIZE, attrs, BIOS_DEBUG, cpu_bus_freq_khz(), cpuid_eax(), detect_num_cpus(), fill_in_msr(), IA32_PLATFORM_ID, IACORE_LFM, IACORE_MAX, IACORE_MIN, IACORE_TURBO, intel_microcode_find(), msr_struct::lo, LPC_DEV, LPC_FUNC, MSR_IACORE_RATIOS, MSR_IACORE_TURBO_RATIOS, MSR_IACORE_TURBO_VIDS, MSR_IACORE_VIDS, MSR_PLATFORM_INFO, pattrs_get(), pci_read_config8(), pcidev_on_root(), printk, REVID, RID_A_STEPPING_START, RID_B_STEPPING_START, RID_C_STEPPING_START, RID_D_STEPPING_START, SHOW_PATTRS, STEP_A0, STEP_B0, STEP_C0, STEP_D1, and stepping_str.
Referenced by soc_init_pre_device().
int soc_fill_acpi_wake | ( | const struct chipset_power_state * | ps, |
uint32_t * | pm1, | ||
uint32_t ** | gpe0 | ||
) |
Definition at line 121 of file ramstage.c.
References chipset_power_state::gpe0_en, chipset_power_state::gpe0_sts, chipset_power_state::pm1_en, and chipset_power_state::pm1_sts.
Referenced by pm_fill_gnvs().
void soc_init_pre_device | ( | struct soc_intel_braswell_config * | config | ) |
Definition at line 133 of file ramstage.c.
References config, CR4_OSFXSR, CR4_OSXMMEXCPT, fill_in_pattrs(), gpio_config, intel_silicon_init(), mainboard_get_gpios(), read_cr4(), set_max_freq(), setup_soc_gpios(), and write_cr4().
struct pattrs __global_pattrs |
Definition at line 1 of file ramstage.c.
Referenced by pattrs_get().
|
static |
Definition at line 56 of file ramstage.c.
Referenced by fill_in_pattrs().