Skip to contentSkip to conversation

x86: Correct usage of FSP_VERSION2

PATCH In review Tom Rini 1 participant 2 messages Mar 15, 2025 – May 9, 2025 x86

lore
Share & tools
lore

Tom Rini

author
#0 lore raw

PATCH 1/1 x86: Correct usage of FSP_VERSION2

As the code is today, we get a warning about "select" statements on "choice" options not doing anything. In this case, we move to having a "default FSP_VERSION2 if INTEL_APOLLOLAKE" in order to get the desired outcome.

---
 arch/x86/Kconfig                   | 1 +
 arch/x86/cpu/apollolake/Kconfig    | 1 -
 configs/chromebook_coral_defconfig | 1 -
 3 files changed, 1 insertion(+), 2 deletions(-)
arch/x86/Kconfig +1 -0
index 006a59d6fa63..9f33cc75501a 100644
@@ -382,6 +382,7 @@ config USE_CAR
 choice
 	prompt "FSP version"
 	depends on HAVE_FSP
+	default FSP_VERSION2 if INTEL_APOLLOLAKE
 	default FSP_VERSION1
 	help
 	  Selects the FSP version to use. Intel has published several versions
arch/x86/cpu/apollolake/Kconfig +0 -1
index c7f26d171cb0..5dd866ffcfe4 100644
@@ -5,7 +5,6 @@
 
 config INTEL_APOLLOLAKE
 	bool
-	select FSP_VERSION2
 	select HAVE_FSP
 	select ARCH_MISC_INIT
 	select USE_CAR
configs/chromebook_coral_defconfig +0 -1
index 93e3355219b7..3d5d3619a141 100644
@@ -16,7 +16,6 @@ CONFIG_DEBUG_UART_BOARD_INIT=y
 CONFIG_VENDOR_GOOGLE=y
 CONFIG_TARGET_CHROMEBOOK_CORAL=y
 CONFIG_DEBUG_UART=y
-CONFIG_FSP_VERSION2=y
 CONFIG_HAVE_ACPI_RESUME=y
 CONFIG_INTEL_CAR_CQOS=y
 CONFIG_X86_OFFSET_U_BOOT=0xffd00000
Signature · 1 line
2.43.0
author
#1 lore raw
Quoted 6 lines · Tom Rini

As the code is today, we get a warning about "select" statements on "choice" options not doing anything. In this case, we move to having a "default FSP_VERSION2 if INTEL_APOLLOLAKE" in order to get the desired outcome.

Applied to u-boot/master, thanks!

[1/1] x86: Correct usage of FSP_VERSION2

      commit: 06782314308424c80c666f42a460e05ac4419f95
Signature · 1 line
Tom