coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
memory.c
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 
3 #include <baseboard/variants.h>
4 #include <baseboard/gpio.h>
5 #include <soc/cnl_memcfg_init.h>
6 #include <string.h>
7 
8 static const struct cnl_mb_cfg baseboard_memcfg = {
9  /* Baseboard uses 121, 81 and 100 rcomp resistors */
10  .rcomp_resistor = {121, 81, 100},
11 
12  /* Baseboard Rcomp target values */
13  .rcomp_targets = {100, 40, 20, 20, 26},
14 
15  /* Set CaVref config to 2 */
16  .vref_ca_config = 2,
17 
18  /* Enable Early Command Training */
19  .ect = 1,
20 };
21 
23 {
24  memcpy(bcfg, &baseboard_memcfg, sizeof(baseboard_memcfg));
25 }
void * memcpy(void *dest, const void *src, size_t n)
Definition: memcpy.c:7
const struct mb_cfg *__weak variant_memory_params(void)
Definition: memory.c:67
static const struct cnl_mb_cfg baseboard_memcfg
Definition: memory.c:8
const struct smm_save_state_ops *legacy_ops __weak
Definition: save_state.c:8
uint16_t rcomp_resistor[3]