drives/spi/spi_flash: add option to not select all drivers

Add a new Kconfig option, SPI_FLASH_DONT_INCLUDE_ALL_DRIVERS,
to make it easier for other parts of the code base to indicate that
all spi flash drivers should not be included.

Change-Id: Ibf2c4f1d2b8a73cff14bb627ddf759d7970920ea
Signed-off-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/38362
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Furquan Shaikh <furquan@google.com>
This commit is contained in:
Aaron Durbin 2020-01-11 10:26:25 -07:00
parent fbd6869f91
commit 3e7f006280
3 changed files with 8 additions and 9 deletions

View File

@ -61,9 +61,14 @@ config BOOT_DEVICE_SPI_FLASH_RW_NOMMAP_EARLY
Include the common implementation in all stages, including the Include the common implementation in all stages, including the
early ones. early ones.
config SPI_FLASH_DONT_INCLUDE_ALL_DRIVERS
bool
default y if COMMON_CBFS_SPI_WRAPPER
default n
config SPI_FLASH_INCLUDE_ALL_DRIVERS config SPI_FLASH_INCLUDE_ALL_DRIVERS
bool bool
default n if COMMON_CBFS_SPI_WRAPPER default n if SPI_FLASH_DONT_INCLUDE_ALL_DRIVERS
default y default y
config SPI_FLASH_SMM config SPI_FLASH_SMM

View File

@ -106,6 +106,7 @@ config CPU_SPECIFIC_OPTIONS
select NO_UART_ON_SUPERIO select NO_UART_ON_SUPERIO
select INTEL_GMA_ACPI select INTEL_GMA_ACPI
select INTEL_GMA_SWSMISCI select INTEL_GMA_SWSMISCI
select SPI_FLASH_DONT_INCLUDE_ALL_DRIVERS
config CHROMEOS config CHROMEOS
select CHROMEOS_RAMOOPS_DYNAMIC select CHROMEOS_RAMOOPS_DYNAMIC
@ -341,10 +342,6 @@ config L2_CACHE_SIZE
default 0x400000 if SOC_INTEL_GLK default 0x400000 if SOC_INTEL_GLK
default 0x100000 default 0x100000
config SPI_FLASH_INCLUDE_ALL_DRIVERS
bool
default n
config SMM_RESERVED_SIZE config SMM_RESERVED_SIZE
hex hex
default 0x100000 default 0x100000

View File

@ -77,6 +77,7 @@ config CPU_SPECIFIC_OPTIONS
select TSC_SYNC_MFENCE select TSC_SYNC_MFENCE
select UDELAY_TSC select UDELAY_TSC
select UDK_2015_BINDING select UDK_2015_BINDING
select SPI_FLASH_DONT_INCLUDE_ALL_DRIVERS
config FSP_HYPERTHREADING config FSP_HYPERTHREADING
bool "Enable Hyper-Threading" bool "Enable Hyper-Threading"
@ -232,10 +233,6 @@ config FSP_FD_PATH
depends on FSP_USE_REPO depends on FSP_USE_REPO
default "3rdparty/fsp/KabylakeFspBinPkg/Fsp.fd" default "3rdparty/fsp/KabylakeFspBinPkg/Fsp.fd"
config SPI_FLASH_INCLUDE_ALL_DRIVERS
bool
default n
config MAX_ROOT_PORTS config MAX_ROOT_PORTS
int int
default 24 default 24