aboutsummaryrefslogtreecommitdiff
path: root/src/mainboard/google/dedede/romstage.c
blob: 9c220d4538f81ec4989de22e0c7984eabab3f761 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/*
 * This file is part of the coreboot project.
 *
 *
 * SPDX-License-Identifier: GPL-2.0-or-later
 */

#include <baseboard/variants.h>
#include <soc/meminit_jsl.h>
#include <soc/romstage.h>

void mainboard_memory_init_params(FSPM_UPD *memupd)
{
	const struct mb_cfg *board_cfg = variant_memcfg_config();
	const struct spd_info spd_info = {
		.read_type = READ_SPD_CBFS,
		.spd_spec.spd_index = variant_memory_sku(),
	};
	/* TODO: Read the resistor strap to get number of memory segments. */
	bool half_populated = 0;
	memcfg_init(&memupd->FspmConfig, board_cfg, &spd_info, half_populated);
}