summaryrefslogtreecommitdiff
path: root/src/soc
diff options
context:
space:
mode:
authorNaresh G Solanki <naresh.solanki@intel.com>2016-10-17 17:21:08 +0530
committerMartin Roth <martinroth@google.com>2016-10-19 17:32:56 +0200
commitfe517f635b85de64a7eff85bc9daf932ed211f6c (patch)
tree56f75c0c4ca5891cc362b4be4fcf0cd4f7e8cf3e /src/soc
parent09ec9e74a99521b4b4caab7a53b591db52be588b (diff)
downloadcoreboot-fe517f635b85de64a7eff85bc9daf932ed211f6c.tar.xz
soc/intel/skylake: Allow selecting FSP driver in Kconfig
Enable mainboard Kconfig to select between FSP 2.0 & 1.1 driver to be used. If mainboard Kconfig selects MAINBOARD_USES_FSP2_0 the FSP2_0 driver is used else FSP1_1. Change-Id: I724aaa87c2b0b8f6ddb18f61af9c37176ef632f2 Signed-off-by: Naresh G Solanki <naresh.solanki@intel.com> Signed-off-by: Rizwan Qureshi <rizwan.qureshi@intel.com> Reviewed-on: https://review.coreboot.org/17044 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Diffstat (limited to 'src/soc')
-rw-r--r--src/soc/intel/skylake/Kconfig12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/soc/intel/skylake/Kconfig b/src/soc/intel/skylake/Kconfig
index 3c843f505f..5a1d878f90 100644
--- a/src/soc/intel/skylake/Kconfig
+++ b/src/soc/intel/skylake/Kconfig
@@ -52,24 +52,26 @@ config CPU_SPECIFIC_OPTIONS
select TSC_SYNC_MFENCE
select UDELAY_TSC
-choice
- prompt "FSP Driver"
- default USE_FSP1_1_DRIVER
+config MAINBOARD_USES_FSP2_0
+ bool
+ default n
config USE_FSP2_0_DRIVER
bool "Build with FSP 2.0"
+ depends on MAINBOARD_USES_FSP2_0
+ default y if MAINBOARD_USES_FSP2_0
select PLATFORM_USES_FSP2_0
select ADD_VBT_DATA_FILE
select SOC_INTEL_COMMON_GFX_OPREGION
config USE_FSP1_1_DRIVER
bool "Build with FSP 1.1"
+ depends on !MAINBOARD_USES_FSP2_0
+ default y if !MAINBOARD_USES_FSP2_0
select PLATFORM_USES_FSP1_1
select GOP_SUPPORT
select DISPLAY_FSP_ENTRY_POINTS
-endchoice
-
config CHROMEOS
select CHROMEOS_RAMOOPS_DYNAMIC
select EC_SOFTWARE_SYNC if EC_GOOGLE_CHROMEEC