![]() |
coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
|
#include <acpi/acpigen.h>
#include <arch/cpu.h>
#include <bootstate.h>
#include <cbmem.h>
#include <console/console.h>
#include <crc_byte.h>
#include <device/device.h>
#include <device/dram/spd.h>
#include <drivers/intel/gma/opregion.h>
#include <gpio.h>
#include <intelblocks/gpio.h>
#include <intelblocks/pmclib.h>
#include <smbios.h>
#include <soc/gpio.h>
#include <types.h>
#include "eeprom.h"
Go to the source code of this file.
Functions | |
const char * | mainboard_vbt_filename (void) |
static void | mb_configure_dp1_pwr (bool enable) |
static void | mb_configure_dp2_pwr (bool enable) |
static void | mb_configure_dp3_pwr (bool enable) |
static void | mb_hda_amp_enable (bool enable) |
static void | mb_usb31_rp1_pwr_enable (bool enable) |
static void | mb_usb31_rp2_pwr_enable (bool enable) |
static void | mb_usb31_fp_pwr_enable (bool enable) |
static void | mb_usb2_fp1_pwr_enable (bool enable) |
static void | mb_usb2_fp2_pwr_enable (bool enable) |
static void | copy_meminfo (const struct dimm_info *dimm, union eeprom_dimm_layout *l) |
static void | update_board_layout (void) |
static void | mainboard_init (void *chip_info) |
static void | mainboard_final (struct device *dev) |
static void | mainboard_enable (struct device *dev) |
static void | mainboard_early (void *unused) |
BOOT_STATE_INIT_ENTRY (BS_PRE_DEVICE, BS_ON_EXIT, mainboard_early, NULL) | |
Variables | |
struct chip_operations | mainboard_ops |
BOOT_STATE_INIT_ENTRY | ( | BS_PRE_DEVICE | , |
BS_ON_EXIT | , | ||
mainboard_early | , | ||
NULL | |||
) |
|
static |
Definition at line 79 of file mainboard.c.
References dimm_info::bus_width, dimm_info::dimm_size, memset(), dimm_info::mod_id, dimm_info::module_part_number, dimm_info::rank_per_dimm, spd_manufacturer_name(), and strncpy().
Referenced by update_board_layout().
Definition at line 234 of file mainboard.c.
References board_cfg, check_signature(), config, config_of_soc, get_board_settings(), offsetof, and READ_EEPROM_FSP_S.
Definition at line 208 of file mainboard.c.
References device_operations::final, mainboard_final(), mb_configure_dp1_pwr(), mb_configure_dp2_pwr(), mb_configure_dp3_pwr(), mb_usb2_fp1_pwr_enable(), mb_usb2_fp2_pwr_enable(), mb_usb31_fp_pwr_enable(), mb_usb31_rp1_pwr_enable(), mb_usb31_rp2_pwr_enable(), and device::ops.
Definition at line 162 of file mainboard.c.
References board_cfg, get_board_settings(), pmc_soc_set_afterg3_en(), and update_board_layout().
Referenced by mainboard_enable().
Definition at line 148 of file mainboard.c.
References board_cfg, get_board_settings(), and mb_hda_amp_enable().
const char* mainboard_vbt_filename | ( | void | ) |
Definition at line 22 of file mainboard.c.
References eeprom_bmc_settings::efp3_displayport, and get_bmc_settings().
Definition at line 34 of file mainboard.c.
References gpio_output(), and GPP_K3.
Referenced by mainboard_enable().
Definition at line 39 of file mainboard.c.
References gpio_output(), and GPP_K4.
Referenced by mainboard_enable().
Definition at line 44 of file mainboard.c.
References gpio_output(), and GPP_K5.
Referenced by mainboard_enable().
Definition at line 49 of file mainboard.c.
References gpio_output(), and GPP_C19.
Referenced by mainboard_init().
Definition at line 69 of file mainboard.c.
References gpio_output(), and GPP_G3.
Referenced by mainboard_enable().
Definition at line 74 of file mainboard.c.
References gpio_output(), and GPP_G4.
Referenced by mainboard_enable().
Definition at line 64 of file mainboard.c.
References gpio_output(), and GPP_G2.
Referenced by mainboard_enable().
Definition at line 54 of file mainboard.c.
References gpio_output(), and GPP_G0.
Referenced by mainboard_enable().
Definition at line 59 of file mainboard.c.
References gpio_output(), and GPP_G1.
Referenced by mainboard_enable().
Definition at line 99 of file mainboard.c.
References all_devices, ARRAY_SIZE, BIOS_DEBUG, BIOS_ERR, BIOS_INFO, cbmem_find(), CBMEM_ID_MEMINFO, copy_meminfo(), eeprom_board_layout::cpu_count, eeprom_board_layout::cpu_max_non_turbo_frequency, eeprom_board_layout::cpu_name, cpuid_eax(), cpuid_get_max_func(), CRC, crc32_byte(), DEVICE_PATH_APIC, DEVICE_PATH_CPU_CLUSTER, eeprom_board_layout::dimm, memory_info::dimm, memory_info::dimm_cnt, MIN, device::next, eeprom_board_layout::pch_name, printk, eeprom_board_layout::raw_layout, eeprom_board_layout::signature, strcpy(), and write_board_settings().
Referenced by mainboard_final().
struct chip_operations mainboard_ops |
Definition at line 208 of file mainboard.c.