coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
romstage.c
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 
3 #include <soc/cnl_memcfg_init.h>
4 #include <variant/romstage.h>
5 
6 static const struct cnl_mb_cfg memcfg = {
7  .spd[0] = {
9  .spd_spec = {.spd_index = 0},
10  },
11  .spd[2] = {
12  .read_type = READ_SMBUS,
13  .spd_spec = {.spd_smbus_address = 0xa4},
14  },
15 
16  /* Values of the resistors connected to the DDR_RCOMP_[2:0] pins of the CPU */
17  .rcomp_resistor = { 121, 81, 100 },
18 
19  /* Rcomp target values */
20  .rcomp_targets = { 100, 40, 20, 20, 26 },
21 
22  /* Interleaved ("back-to-back") pin mapping */
23  .dq_pins_interleaved = 1,
24 
25  /*
26  * DDR4 Vref mapping
27  * VREF_CA goes to CH_A and VREF_DQ_B (DDR1_VREF_DQ) goes to CH_B.
28  */
29  .vref_ca_config = 2,
30 };
31 
32 void variant_configure_fspm(FSPM_UPD *memupd)
33 {
34  cannonlake_memcfg_init(&memupd->FspmConfig, &memcfg);
35 }
void cannonlake_memcfg_init(FSP_M_CONFIG *mem_cfg, const struct cnl_mb_cfg *cnl_cfg)
@ READ_SMBUS
@ READ_SPD_CBFS
static const struct cnl_mb_cfg memcfg
Definition: romstage.c:6
void variant_configure_fspm(FSPM_UPD *memupd)
Definition: romstage.c:32
struct spd_info spd[NUM_DIMM_SLOT]
enum mem_info_read_type read_type