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@chromium.org>
Reviewed-on: https://review.coreboot.org/16187
Tested-by: build bot (Jenkins)
Reviewed-by: Furquan Shaikh <furquan@google.com>
Reviewed-by: Vadim Bendebury <vbendeb@chromium.org>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
This commit is contained in:
Aaron Durbin 2016-08-11 09:42:27 -05:00
parent 691dac0b55
commit a91901c221

View File

@ -22,6 +22,11 @@ config SPI_FLASH
if 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 config SPI_ATOMIC_SEQUENCING
bool bool
default y if ARCH_X86 default y if ARCH_X86
@ -48,70 +53,70 @@ config SPI_FLASH_NO_FAST_READ
config SPI_FLASH_ADESTO config SPI_FLASH_ADESTO
bool bool
default y if !COMMON_CBFS_SPI_WRAPPER default y if SPI_FLASH_INCLUDE_ALL_DRIVERS
help help
Select this option if your chipset driver needs to store certain 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. data in the SPI flash and your SPI flash is made by Adesto Technologies.
config SPI_FLASH_AMIC config SPI_FLASH_AMIC
bool bool
default y if !COMMON_CBFS_SPI_WRAPPER default y if SPI_FLASH_INCLUDE_ALL_DRIVERS
help help
Select this option if your chipset driver needs to store certain Select this option if your chipset driver needs to store certain
data in the SPI flash and your SPI flash is made by AMIC. data in the SPI flash and your SPI flash is made by AMIC.
config SPI_FLASH_ATMEL config SPI_FLASH_ATMEL
bool bool
default y if !COMMON_CBFS_SPI_WRAPPER default y if SPI_FLASH_INCLUDE_ALL_DRIVERS
help help
Select this option if your chipset driver needs to store certain Select this option if your chipset driver needs to store certain
data in the SPI flash and your SPI flash is made by Atmel. data in the SPI flash and your SPI flash is made by Atmel.
config SPI_FLASH_EON config SPI_FLASH_EON
bool bool
default y if !COMMON_CBFS_SPI_WRAPPER default y if SPI_FLASH_INCLUDE_ALL_DRIVERS
help help
Select this option if your chipset driver needs to store certain Select this option if your chipset driver needs to store certain
data in the SPI flash and your SPI flash is made by EON. data in the SPI flash and your SPI flash is made by EON.
config SPI_FLASH_GIGADEVICE config SPI_FLASH_GIGADEVICE
bool bool
default y if !COMMON_CBFS_SPI_WRAPPER default y if SPI_FLASH_INCLUDE_ALL_DRIVERS
help help
Select this option if your chipset driver needs to store certain Select this option if your chipset driver needs to store certain
data in the SPI flash and your SPI flash is made by Gigadevice. data in the SPI flash and your SPI flash is made by Gigadevice.
config SPI_FLASH_MACRONIX config SPI_FLASH_MACRONIX
bool bool
default y if !COMMON_CBFS_SPI_WRAPPER default y if SPI_FLASH_INCLUDE_ALL_DRIVERS
help help
Select this option if your chipset driver needs to store certain Select this option if your chipset driver needs to store certain
data in the SPI flash and your SPI flash is made by Macronix. data in the SPI flash and your SPI flash is made by Macronix.
config SPI_FLASH_SPANSION config SPI_FLASH_SPANSION
bool bool
default y if !COMMON_CBFS_SPI_WRAPPER default y if SPI_FLASH_INCLUDE_ALL_DRIVERS
help help
Select this option if your chipset driver needs to store certain Select this option if your chipset driver needs to store certain
data in the SPI flash and your SPI flash is made by Spansion. data in the SPI flash and your SPI flash is made by Spansion.
config SPI_FLASH_SST config SPI_FLASH_SST
bool bool
default y if !COMMON_CBFS_SPI_WRAPPER default y if SPI_FLASH_INCLUDE_ALL_DRIVERS
help help
Select this option if your chipset driver needs to store certain Select this option if your chipset driver needs to store certain
data in the SPI flash and your SPI flash is made by SST. data in the SPI flash and your SPI flash is made by SST.
config SPI_FLASH_STMICRO config SPI_FLASH_STMICRO
bool bool
default y if !COMMON_CBFS_SPI_WRAPPER default y if SPI_FLASH_INCLUDE_ALL_DRIVERS
help help
Select this option if your chipset driver needs to store certain 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. data in the SPI flash and your SPI flash is made by ST MICRO.
config SPI_FLASH_WINBOND config SPI_FLASH_WINBOND
bool bool
default y if !COMMON_CBFS_SPI_WRAPPER default y if SPI_FLASH_INCLUDE_ALL_DRIVERS
help help
Select this option if your chipset driver needs to store certain Select this option if your chipset driver needs to store certain
data in the SPI flash and your SPI flash is made by Winbond. data in the SPI flash and your SPI flash is made by Winbond.