mb/google/brya/var/uldrenite: update gpio settings
[coreboot2.git] / src / mainboard / google / brya / variants / gaelin / memory.c
blob9799ae089c1ed1239704ef2311cf325d413d7a41
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 #include <baseboard/gpio.h>
4 #include <baseboard/variants.h>
5 #include <gpio.h>
6 #include <soc/romstage.h>
8 static const struct mb_cfg ddr4_mem_config = {
9 .type = MEM_TYPE_DDR4,
11 .rcomp = {
12 /* Baseboard uses only 100ohm Rcomp resistors */
13 .resistor = 100,
15 /* Baseboard Rcomp target values */
16 .targets = {50, 20, 25, 25, 25},
19 .LpDdrDqDqsReTraining = 1,
21 .ect = 1, /* Early Command Training */
23 .UserBd = BOARD_TYPE_MOBILE,
25 .ddr_config = {
26 .dq_pins_interleaved = false,
30 const struct mb_cfg *variant_memory_params(void)
32 return &ddr4_mem_config;
35 void variant_get_spd_info(struct mem_spd *spd_info)
37 spd_info->topo = MEM_TOPO_DIMM_MODULE;
38 spd_info->smbus[0].addr_dimm[0] = 0x50;
39 spd_info->smbus[0].addr_dimm[1] = 0x51;
40 spd_info->smbus[1].addr_dimm[0] = 0x52;
41 spd_info->smbus[1].addr_dimm[1] = 0x53;