a91901c221
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>
136 lines
3.9 KiB
Text
136 lines
3.9 KiB
Text
##
|
|
## This file is part of the coreboot project.
|
|
##
|
|
## Copyright (C) 2012 The Chromium OS Authors.
|
|
##
|
|
## This program is free software; you can redistribute it and/or modify
|
|
## it under the terms of the GNU General Public License as published by
|
|
## the Free Software Foundation; version 2 of the License.
|
|
##
|
|
## This program is distributed in the hope that it will be useful,
|
|
## but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
## GNU General Public License for more details.
|
|
##
|
|
|
|
config SPI_FLASH
|
|
bool
|
|
default n
|
|
help
|
|
Select this option if your chipset driver needs to store certain
|
|
data in the 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
|
|
default n if !ARCH_X86
|
|
help
|
|
Select this option if the SPI controller uses "atomic sequencing."
|
|
Atomic sequencing is when the sequence of commands is pre-programmed
|
|
in the SPI controller. Hardware manages the transaction instead of
|
|
software. This is common on x86 platforms.
|
|
|
|
config SPI_FLASH_SMM
|
|
bool "SPI flash driver support in SMM"
|
|
default n
|
|
depends on HAVE_SMI_HANDLER
|
|
help
|
|
Select this option if you want SPI flash support in SMM.
|
|
|
|
config SPI_FLASH_NO_FAST_READ
|
|
bool "Disable Fast Read command"
|
|
default n
|
|
help
|
|
Select this option if your setup requires to avoid "fast read"s
|
|
from the SPI flash parts.
|
|
|
|
config SPI_FLASH_ADESTO
|
|
bool
|
|
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 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 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 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 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 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 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 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 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 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.
|
|
|
|
config SPI_FLASH_FAST_READ_DUAL_OUTPUT_3B
|
|
bool
|
|
default n
|
|
depends on SPI_FLASH
|
|
help
|
|
Select this option if your SPI flash supports the fast read dual-
|
|
output command (opcode 0x3b) where the opcode and address are sent
|
|
to the chip on MOSI and data is received on both MOSI and MISO.
|
|
|
|
endif # SPI_FLASH
|
|
|
|
config HAVE_SPI_CONSOLE_SUPPORT
|
|
def_bool n
|