summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Singer <felixsinger@posteo.net>2021-12-30 23:57:58 +0100
committerFelix Singer <felixsinger@posteo.net>2022-05-26 11:48:18 +0000
commitedb1a4012700df227dcf5780b5f45fcf9c2a1625 (patch)
treeec0049239e41b8a1afe2ec106c650542af814e27
parentd3b550d47c658453f0775a3bbb071a4330d27398 (diff)
soc/intel/skylake: Move FSP_HYPERTHREADING to common Intel Kconfig
Move the Kconfig option `FSP_HYPERTHREADING` to common Intel Kconfig so that it can be reused by other SoCs. Since not all SoCs support hyperthreading, make it conditional on `HAVE_HYPERTHREADING`. SoCs supporting hyperthreading need to select it so that `FSP_HYPERTHREADING` is available. Change-Id: I892d48b488cbf828057f0e9be9edc4352c58bbe7 Signed-off-by: Felix Singer <felixsinger@posteo.net> Reviewed-on: https://review.coreboot.org/c/coreboot/+/60543 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Sean Rhodes <sean@starlabs.systems> Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
-rw-r--r--src/soc/intel/common/block/cpu/Kconfig8
-rw-r--r--src/soc/intel/skylake/Kconfig5
2 files changed, 9 insertions, 4 deletions
diff --git a/src/soc/intel/common/block/cpu/Kconfig b/src/soc/intel/common/block/cpu/Kconfig
index 17240ac91f..ea81457466 100644
--- a/src/soc/intel/common/block/cpu/Kconfig
+++ b/src/soc/intel/common/block/cpu/Kconfig
@@ -154,3 +154,11 @@ config SOC_INTEL_SET_MIN_CLOCK_RATIO
the lowest possible CPU clock. Enable this option if you need smallest
possible CPU clock. This setting can be overruled by the OS if it has an
p-state driver which can adjust the clock to its need.
+
+config HAVE_HYPERTHREADING
+ def_bool n
+
+config FSP_HYPERTHREADING
+ bool "Enable Hyper-Threading"
+ depends on HAVE_HYPERTHREADING
+ default y
diff --git a/src/soc/intel/skylake/Kconfig b/src/soc/intel/skylake/Kconfig
index a5f8a47d52..0db9c5cb64 100644
--- a/src/soc/intel/skylake/Kconfig
+++ b/src/soc/intel/skylake/Kconfig
@@ -35,6 +35,7 @@ config CPU_SPECIFIC_OPTIONS
select GENERIC_GPIO_LIB
select HAVE_FSP_GOP
select HAVE_FSP_LOGO_SUPPORT
+ select HAVE_HYPERTHREADING
select HAVE_INTEL_FSP_REPO
select INTEL_CAR_NEM_ENHANCED
select HAVE_SMI_HANDLER
@@ -99,10 +100,6 @@ config MAX_CPUS
default 16 if MAINBOARD_SUPPORTS_COFFEELAKE_CPU
default 8
-config FSP_HYPERTHREADING
- bool "Enable Hyper-Threading"
- default y
-
config ENABLE_SATA_TEST_MODE
bool "Enable SATA test mode"
default n