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/meminit.h>
4 #include <variant/romstage.h>
5 
6 void variant_configure_fspm(FSPM_UPD *memupd)
7 {
8  const struct mb_cfg board_cfg = {
10  };
11  const struct mem_spd spd_info = {
12  .topo = MEM_TOPO_MIXED,
13  .cbfs_index = 0,
14  .smbus[1] = { .addr_dimm[0] = 0x52, },
15  };
16  const bool half_populated = false;
17 
18  memcfg_init(memupd, &board_cfg, &spd_info, half_populated);
19 }
void memcfg_init(FSPM_UPD *memupd, const struct mb_cfg *mb_cfg, const struct mem_spd *spd_info, bool half_populated)
Definition: meminit.c:238
@ MEM_TYPE_DDR4
Definition: meminit.h:11
@ MEM_TOPO_MIXED
Definition: meminit.h:27
void variant_configure_fspm(FSPM_UPD *memupd)
Definition: romstage.c:32
static const struct mb_cfg board_cfg
Definition: romstage.c:8
Definition: meminit.h:71
enum mem_type type
Definition: meminit.h:72
Definition: spd.h:11