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
22
void
__weak
variant_memory_params
(
struct
cnl_mb_cfg
*bcfg)
23
{
24
memcpy
(bcfg, &
baseboard_memcfg
,
sizeof
(
baseboard_memcfg
));
25
}
memcpy
void * memcpy(void *dest, const void *src, size_t n)
Definition:
memcpy.c:7
cnl_memcfg_init.h
variant_memory_params
const struct mb_cfg *__weak variant_memory_params(void)
Definition:
memory.c:67
baseboard_memcfg
static const struct cnl_mb_cfg baseboard_memcfg
Definition:
memory.c:8
__weak
const struct smm_save_state_ops *legacy_ops __weak
Definition:
save_state.c:8
string.h
cnl_mb_cfg
Definition:
cnl_memcfg_init.h:55
cnl_mb_cfg::rcomp_resistor
uint16_t rcomp_resistor[3]
Definition:
cnl_memcfg_init.h:90
src
mainboard
google
hatch
variants
baseboard
memory.c
Generated by
1.9.1