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 <assert.h>
4 #include <fsp/api.h>
5 #include <soc/romstage.h>
6 #include <spd_bin.h>
7 #include <soc/meminit.h>
8 #include <baseboard/variants.h>
9 
10 void mainboard_memory_init_params(FSPM_UPD *memupd)
11 {
12  const struct mb_cfg *mem_config = variant_memory_params();
13  const bool half_populated = false;
14 
15  const struct mem_spd lp5_spd_info = {
17  .cbfs_index = variant_memory_sku(),
18  };
19 
20  memcfg_init(memupd, mem_config, &lp5_spd_info, half_populated);
21 }
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_TOPO_MEMORY_DOWN
Definition: meminit.h:25
void mainboard_memory_init_params(FSPM_UPD *mupd)
Definition: romstage.c:22
const struct mb_cfg *__weak variant_memory_params(void)
Definition: memory.c:67
int __weak variant_memory_sku(void)
Definition: memory.c:74
static const struct mb_cfg mem_config
Definition: memory.c:11
Definition: meminit.h:71
enum mem_topology topo
Definition: meminit.h:38