From 738aaa24d38385b9ba8078d452dbaa4f36cdf4e6 Mon Sep 17 00:00:00 2001 From: V Sowmya Date: Wed, 20 Jan 2021 07:15:37 +0530 Subject: mb/intel/shadowmountain: Add the romstage code This patch includes the romstage changes for the shadowmountain board. BUG=b:175808146 TEST= Build and boot shadowmountain board till early ramstage. Signed-off-by: V Sowmya Change-Id: Ifd0bbcea9d4916d82bb1e3c275dd79d97a79727a Reviewed-on: https://review.coreboot.org/c/coreboot/+/49731 Reviewed-by: Subrata Banik Reviewed-by: Aamir Bohra Reviewed-by: Angel Pons Tested-by: build bot (Jenkins) --- src/mainboard/intel/shadowmountain/romstage.c | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 src/mainboard/intel/shadowmountain/romstage.c (limited to 'src/mainboard/intel/shadowmountain/romstage.c') diff --git a/src/mainboard/intel/shadowmountain/romstage.c b/src/mainboard/intel/shadowmountain/romstage.c new file mode 100644 index 0000000000..1e29e8029d --- /dev/null +++ b/src/mainboard/intel/shadowmountain/romstage.c @@ -0,0 +1,23 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ +#include +#include +#include +#include +#include +#include +#include +#include +#include + +void mainboard_memory_init_params(FSPM_UPD *mupd) +{ + const struct mb_cfg *mem_config = variant_memory_params(); + const bool half_populated = false; + + const struct mem_spd lp5_spd_info = { + .topo = MEM_TOPO_MEMORY_DOWN, + .cbfs_index = variant_memory_sku(), + }; + + memcfg_init(&mupd->FspmConfig, mem_config, &lp5_spd_info, half_populated); +} -- cgit v1.2.3