From 3e7f00628018067c8152fe50b4873f0b31d27a25 Mon Sep 17 00:00:00 2001 From: Aaron Durbin Date: Sat, 11 Jan 2020 10:26:25 -0700 Subject: 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 Reviewed-on: https://review.coreboot.org/c/coreboot/+/38362 Tested-by: build bot (Jenkins) Reviewed-by: Furquan Shaikh --- src/drivers/spi/Kconfig | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/drivers/spi') diff --git a/src/drivers/spi/Kconfig b/src/drivers/spi/Kconfig index a4be84d814..c9d94d9f4b 100644 --- a/src/drivers/spi/Kconfig +++ b/src/drivers/spi/Kconfig @@ -61,9 +61,14 @@ config BOOT_DEVICE_SPI_FLASH_RW_NOMMAP_EARLY Include the common implementation in all stages, including the 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 bool - default n if COMMON_CBFS_SPI_WRAPPER + default n if SPI_FLASH_DONT_INCLUDE_ALL_DRIVERS default y config SPI_FLASH_SMM -- cgit v1.2.3