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-or-later */
2
3
#include <baseboard/gpio.h>
4
#include <baseboard/variants.h>
5
#include <gpio.h>
6
#include <soc/romstage.h>
7
8
static
const
struct
mb_cfg
ddr4_mem_config
= {
9
.
type
=
MEM_TYPE_DDR4
,
10
11
.rcomp = {
12
/* Baseboard uses only 100ohm Rcomp resistors */
13
.resistor = 100,
14
15
/* Baseboard Rcomp target values */
16
.targets = {50, 20, 25, 25, 25},
17
},
18
19
.ect = 1,
/* Early Command Training */
20
21
.UserBd =
BOARD_TYPE_MOBILE
,
22
23
.ddr_config = {
24
.dq_pins_interleaved =
false
,
25
},
26
};
27
28
const
struct
mb_cfg
*
variant_memory_params
(
void
)
29
{
30
return
&
ddr4_mem_config
;
31
}
MEM_TYPE_DDR4
@ MEM_TYPE_DDR4
Definition:
meminit.h:11
variant_memory_params
const struct mb_cfg *__weak variant_memory_params(void)
Definition:
memory.c:67
ddr4_mem_config
static const struct mb_cfg ddr4_mem_config
Definition:
memory.c:8
BOARD_TYPE_MOBILE
@ BOARD_TYPE_MOBILE
Definition:
romstage.h:14
mb_cfg
Definition:
meminit.h:71
mb_cfg::type
enum mem_type type
Definition:
meminit.h:72
src
mainboard
google
brya
variants
moli
memory.c
Generated by
1.9.1