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] = {
8
.
read_type
=
READ_SPD_CBFS
,
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
}
cannonlake_memcfg_init
void cannonlake_memcfg_init(FSP_M_CONFIG *mem_cfg, const struct cnl_mb_cfg *cnl_cfg)
Definition:
cnl_memcfg_init.c:108
cnl_memcfg_init.h
READ_SMBUS
@ READ_SMBUS
Definition:
cnl_memcfg_init.h:35
READ_SPD_CBFS
@ READ_SPD_CBFS
Definition:
cnl_memcfg_init.h:36
memcfg
static const struct cnl_mb_cfg memcfg
Definition:
romstage.c:6
variant_configure_fspm
void variant_configure_fspm(FSPM_UPD *memupd)
Definition:
romstage.c:32
cnl_mb_cfg
Definition:
cnl_memcfg_init.h:55
cnl_mb_cfg::spd
struct spd_info spd[NUM_DIMM_SLOT]
Definition:
cnl_memcfg_init.h:57
spd_info::read_type
enum mem_info_read_type read_type
Definition:
cnl_memcfg_init.h:41
src
mainboard
clevo
cml-u
variants
l140cu
romstage.c
Generated by
1.9.1