![]() |
coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
|
#include <variant/variant.h>
#include <gpio.h>
#include <variant/gpio.h>
#include <baseboard/variants.h>
#include <string.h>
Go to the source code of this file.
Functions | |
const struct cnl_mb_cfg * | get_variant_memory_cfg (struct cnl_mb_cfg *mem_cfg) |
int | variant_memory_sku (void) |
Variables | |
static const int | spd_index [32] |
const struct cnl_mb_cfg* get_variant_memory_cfg | ( | struct cnl_mb_cfg * | mem_cfg | ) |
Definition at line 17 of file memory.c.
References baseboard_memcfg, DDR_CH0, DDR_CH1, mb_cfg::dqs_map, memcpy(), READ_SPD_CBFS, spd_info::read_type, cnl_mb_cfg::spd, spd_info::spd_data_by::spd_index, spd_info::spd_spec, and variant_memory_sku().
Referenced by mainboard_memory_init_params().
int variant_memory_sku | ( | void | ) |
Definition at line 61 of file memory.c.
References ARRAY_SIZE, gpio_base2_value(), GPIO_MEM_CONFIG_0, GPIO_MEM_CONFIG_1, GPIO_MEM_CONFIG_2, GPIO_MEM_CONFIG_3, GPIO_MEM_CONFIG_4, and spd_index.
|
static |
Definition at line 10 of file memory.c.
Referenced by fill_ddr4_memory_params(), fill_spd_for_index(), get_spd_data(), get_spd_index(), get_spd_pointer(), get_variant_spd_index(), is_dual_channel(), locate_spd(), mainboard_fill_spd_data(), mainboard_find_spd_data(), mainboard_get_spd(), mainboard_get_spd_data(), mainboard_get_spd_index(), mainboard_has_dual_channel_mem(), mainboard_memory_init_params(), meminit_cbfs_spd_index(), spd_cbfs_map(), spd_memory_init_params(), spd_read_from_cbfs(), variant_is_dual_channel(), variant_mainboard_read_spd(), variant_memory_init_params(), variant_memory_params(), and variant_memory_sku().