blob: 48c20db1ab72dc7fc16c11a00b3f94f123d81ddd [file] [log] [blame]
V Sowmya738aaa22021-01-20 07:15:37 +05301/* SPDX-License-Identifier: GPL-2.0-only */
Elyes HAOUASba6b06f32022-01-07 22:22:32 +01002
V Sowmya738aaa22021-01-20 07:15:37 +05303#include <assert.h>
V Sowmya738aaa22021-01-20 07:15:37 +05304#include <fsp/api.h>
5#include <soc/romstage.h>
6#include <spd_bin.h>
V Sowmya738aaa22021-01-20 07:15:37 +05307#include <soc/meminit.h>
8#include <baseboard/variants.h>
V Sowmya738aaa22021-01-20 07:15:37 +05309
Zhuohao Lee09f3b6c2022-01-20 21:30:12 +080010void mainboard_memory_init_params(FSPM_UPD *memupd)
V Sowmya738aaa22021-01-20 07:15:37 +053011{
Zhuohao Lee09f3b6c2022-01-20 21:30:12 +080012 FSP_M_CONFIG *m_cfg = &memupd->FspmConfig;
V Sowmya738aaa22021-01-20 07:15:37 +053013 const struct mb_cfg *mem_config = variant_memory_params();
14 const bool half_populated = false;
15
16 const struct mem_spd lp5_spd_info = {
17 .topo = MEM_TOPO_MEMORY_DOWN,
18 .cbfs_index = variant_memory_sku(),
19 };
20
Subrata Banik0007fa92021-06-23 15:27:43 +053021 memcfg_init(m_cfg, mem_config, &lp5_spd_info, half_populated);
V Sowmya738aaa22021-01-20 07:15:37 +053022}