From 9bbc039c457774dbeb44ea37ecc6507144d49b61 Mon Sep 17 00:00:00 2001 From: Felix Singer Date: Thu, 30 Dec 2021 23:45:50 +0100 Subject: soc/intel/skylake: Hook up FSP hyper-threading setting to option API Hook up the hyper-threading setting from the FSP to the option API so that related mainboards don't have to do that. Unless otherwise configured (e.g. the CMOS setting or overriden by the mainboard code), the value from the Kconfig setting `FSP_HYPERTHREADING` is used. Also, remove related code from the mainboard kontron/bsl6, since it is obsolete now. Change-Id: I1023d1b94acb63f30455c56b394b68059deaaa16 Signed-off-by: Felix Singer Reviewed-on: https://review.coreboot.org/c/coreboot/+/60542 Tested-by: build bot (Jenkins) Reviewed-by: Nico Huber --- src/soc/intel/skylake/romstage/fsp_params.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/soc/intel/skylake') diff --git a/src/soc/intel/skylake/romstage/fsp_params.c b/src/soc/intel/skylake/romstage/fsp_params.c index d7e1157376..f24054a6b7 100644 --- a/src/soc/intel/skylake/romstage/fsp_params.c +++ b/src/soc/intel/skylake/romstage/fsp_params.c @@ -4,6 +4,7 @@ #include #include #include +#include #include #include #include @@ -101,7 +102,7 @@ static void soc_memory_init_params(FSP_M_CONFIG *m_cfg, /* HPET BDF already handled in coreboot code, so tell FSP to ignore UPDs */ m_cfg->PchHpetBdfValid = 0; - m_cfg->HyperThreading = CONFIG(FSP_HYPERTHREADING); + m_cfg->HyperThreading = get_uint_option("hyper_threading", CONFIG(FSP_HYPERTHREADING)); } static void soc_primary_gfx_config_params(FSP_M_CONFIG *m_cfg, -- cgit v1.2.3