blob: 259870a8f470a9d5eb9c70922afb6d1f83c81473 [file] [log] [blame]
/* SPDX-License-Identifier: GPL-2.0-only */
#include <baseboard/variants.h>
#include <soc/meminit.h>
#include <soc/romstage.h>
void mainboard_memory_init_params(FSPM_UPD *memupd)
{
static struct spd_info spd_info;
const struct mb_cfg *board_cfg = variant_memcfg_config();
/* TODO: Read the resistor strap to get number of memory segments */
bool half_populated = false;
/* Initialize spd information for LPDDR4x board */
spd_info.read_type = READ_SPD_CBFS;
spd_info.spd_spec.spd_index = 0x00;
/* Initialize variant specific configurations */
memcfg_init(&memupd->FspmConfig, board_cfg, &spd_info, half_populated);
}