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>
This commit is contained in:
Naresh G Solanki 2016-10-17 17:21:08 +05:30 committed by Martin Roth
parent 09ec9e74a9
commit fe517f635b
1 changed files with 7 additions and 5 deletions

View File

@ -52,24 +52,26 @@ config CPU_SPECIFIC_OPTIONS
select TSC_SYNC_MFENCE select TSC_SYNC_MFENCE
select UDELAY_TSC select UDELAY_TSC
choice config MAINBOARD_USES_FSP2_0
prompt "FSP Driver" bool
default USE_FSP1_1_DRIVER default n
config USE_FSP2_0_DRIVER config USE_FSP2_0_DRIVER
bool "Build with FSP 2.0" 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 PLATFORM_USES_FSP2_0
select ADD_VBT_DATA_FILE select ADD_VBT_DATA_FILE
select SOC_INTEL_COMMON_GFX_OPREGION select SOC_INTEL_COMMON_GFX_OPREGION
config USE_FSP1_1_DRIVER config USE_FSP1_1_DRIVER
bool "Build with FSP 1.1" 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 PLATFORM_USES_FSP1_1
select GOP_SUPPORT select GOP_SUPPORT
select DISPLAY_FSP_ENTRY_POINTS select DISPLAY_FSP_ENTRY_POINTS
endchoice
config CHROMEOS config CHROMEOS
select CHROMEOS_RAMOOPS_DYNAMIC select CHROMEOS_RAMOOPS_DYNAMIC
select EC_SOFTWARE_SYNC if EC_GOOGLE_CHROMEEC select EC_SOFTWARE_SYNC if EC_GOOGLE_CHROMEEC