[coreboot-gerrit] Patch set updated for coreboot: drivers/spi: provide option to not include all flash drivers

Aaron Durbin (adurbin@chromium.org) gerrit at coreboot.org
Fri Aug 12 23:28:44 CEST 2016


Aaron Durbin (adurbin at chromium.org) just uploaded a new patch set to gerrit, which you can find at https://review.coreboot.org/16187

-gerrit

commit 1d5e4db5c6b4323711a24063a1555f746d86a5c2
Author: Aaron Durbin <adurbin at chromium.org>
Date:   Thu Aug 11 09:42:27 2016 -0500

    drivers/spi: provide option to not include all flash drivers
    
    All flash drivers are automatically included in the build unless
    COMMON_CBFS_SPI_WRAPPER was selected. However, there are cases
    where these drivers are unnecessary such as certain intel platforms
    where spi controller uses hardware sequencing without any ability
    to manually probe the device. Therefore, provide an option that the
    SoC can set the default value for. The COMMON_CBFS_SPI_WRAPPER
    option is still honored by not including all drivers when that
    is selected.
    
    BUG=chrome-os-partner:56151
    
    Change-Id: Ie9aa447da450f7c8717545f05cff800139a9e2dd
    Signed-off-by: Aaron Durbin <adurbin at chromium.org>
---
 src/drivers/spi/Kconfig | 25 +++++++++++++++----------
 1 file changed, 15 insertions(+), 10 deletions(-)

diff --git a/src/drivers/spi/Kconfig b/src/drivers/spi/Kconfig
index a10ee83..194e61f 100644
--- a/src/drivers/spi/Kconfig
+++ b/src/drivers/spi/Kconfig
@@ -22,6 +22,11 @@ config SPI_FLASH
 
 if SPI_FLASH
 
+config SPI_FLASH_INCLUDE_ALL_DRIVERS
+	bool
+	default n if COMMON_CBFS_SPI_WRAPPER
+	default y
+
 config SPI_ATOMIC_SEQUENCING
 	bool
 	default y if ARCH_X86
@@ -55,70 +60,70 @@ config SPI_FLASH_NO_FAST_READ
 
 config SPI_FLASH_ADESTO
 	bool
-	default y if !COMMON_CBFS_SPI_WRAPPER
+	default y if SPI_FLASH_INCLUDE_ALL_DRIVERS
 	help
 	  Select this option if your chipset driver needs to store certain
 	  data in the SPI flash and your SPI flash is made by Adesto Technologies.
 
 config SPI_FLASH_AMIC
 	bool
-	default y if !COMMON_CBFS_SPI_WRAPPER
+	default y if SPI_FLASH_INCLUDE_ALL_DRIVERS
 	help
 	  Select this option if your chipset driver needs to store certain
 	  data in the SPI flash and your SPI flash is made by AMIC.
 
 config SPI_FLASH_ATMEL
 	bool
-	default y if !COMMON_CBFS_SPI_WRAPPER
+	default y if SPI_FLASH_INCLUDE_ALL_DRIVERS
 	help
 	  Select this option if your chipset driver needs to store certain
 	  data in the SPI flash and your SPI flash is made by Atmel.
 
 config SPI_FLASH_EON
 	bool
-	default y if !COMMON_CBFS_SPI_WRAPPER
+	default y if SPI_FLASH_INCLUDE_ALL_DRIVERS
 	help
 	  Select this option if your chipset driver needs to store certain
 	  data in the SPI flash and your SPI flash is made by EON.
 
 config SPI_FLASH_GIGADEVICE
 	bool
-	default y if !COMMON_CBFS_SPI_WRAPPER
+	default y if SPI_FLASH_INCLUDE_ALL_DRIVERS
 	help
 	  Select this option if your chipset driver needs to store certain
 	  data in the SPI flash and your SPI flash is made by Gigadevice.
 
 config SPI_FLASH_MACRONIX
 	bool
-	default y if !COMMON_CBFS_SPI_WRAPPER
+	default y if SPI_FLASH_INCLUDE_ALL_DRIVERS
 	help
 	  Select this option if your chipset driver needs to store certain
 	  data in the SPI flash and your SPI flash is made by Macronix.
 
 config SPI_FLASH_SPANSION
 	bool
-	default y if !COMMON_CBFS_SPI_WRAPPER
+	default y if SPI_FLASH_INCLUDE_ALL_DRIVERS
 	help
 	  Select this option if your chipset driver needs to store certain
 	  data in the SPI flash and your SPI flash is made by Spansion.
 
 config SPI_FLASH_SST
 	bool
-	default y if !COMMON_CBFS_SPI_WRAPPER
+	default y if SPI_FLASH_INCLUDE_ALL_DRIVERS
 	help
 	  Select this option if your chipset driver needs to store certain
 	  data in the SPI flash and your SPI flash is made by SST.
 
 config SPI_FLASH_STMICRO
 	bool
-	default y if !COMMON_CBFS_SPI_WRAPPER
+	default y if SPI_FLASH_INCLUDE_ALL_DRIVERS
 	help
 	  Select this option if your chipset driver needs to store certain
 	  data in the SPI flash and your SPI flash is made by ST MICRO.
 
 config SPI_FLASH_WINBOND
 	bool
-	default y if !COMMON_CBFS_SPI_WRAPPER
+	default y if SPI_FLASH_INCLUDE_ALL_DRIVERS
 	help
 	  Select this option if your chipset driver needs to store certain
 	  data in the SPI flash and your SPI flash is made by Winbond.



More information about the coreboot-gerrit mailing list