aboutsummaryrefslogtreecommitdiff
path: root/src/mainboard/intel/elkhartlake_crb/romstage_fsp_params.c
blob: 809ea1fbf65b2845355891eb954cfc3da5aa896d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* 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 ehlcrb_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 */
	ehlcrb_spd_info.read_type = READ_SPD_CBFS;
	ehlcrb_spd_info.spd_spec.spd_index = 0x00;

	/* Initialize variant specific configurations */
	memcfg_init(&memupd->FspmConfig, board_cfg, &ehlcrb_spd_info, half_populated);
}