mb/starlabs: Rename LabTop to StarBook
[coreboot.git] / src / mainboard / starlabs / starbook / variants / kbl / romstage.c
blob098f753f1de0586f6e7c41cda4b57ef5e970c120
1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #include <console/console.h>
4 #include <option.h>
5 #include <soc/romstage.h>
6 #include <spd_bin.h>
7 #include <string.h>
8 #include <types.h>
10 void mainboard_memory_init_params(FSPM_UPD *mupd)
12 FSP_M_CONFIG *mem_cfg = &mupd->FspmConfig;
13 const u16 rcomp_resistor[] = {121, 81, 100};
14 const u16 rcomp_target[] = {100, 40, 20, 20, 26};
16 memcpy(&mem_cfg->RcompResistor, rcomp_resistor, sizeof(rcomp_resistor));
17 memcpy(&mem_cfg->RcompTarget, rcomp_target, sizeof(rcomp_target));
19 mem_cfg->MemorySpdPtr00 = spd_cbfs_map(6);
20 mem_cfg->MemorySpdPtr10 = mem_cfg->MemorySpdPtr00;
21 mem_cfg->MemorySpdDataLen = CONFIG_DIMM_SPD_SIZE;
23 const uint8_t ht = get_uint_option("hyper_threading",
24 mupd->FspmConfig.HyperThreading);
25 mupd->FspmConfig.HyperThreading = ht;