drivers/spi: Remove Kconfig prompt from SPI_FLASH_SMM

Why would that be a user visible option? Drop the prompt and the
`default n` and select it automatically when needed. I hope I
caught all its users.

TEST=Confirmed that systems with ELOG_GSMI or DEBUG_SMI compile
     and link.

Change-Id: I44aeec530cc333f4ed4c8cfe67c7b5c9d8fb0049
Signed-off-by: Nico Huber <nico.h@gmx.de>
Reviewed-on: https://review.coreboot.org/26872
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
This commit is contained in:
Nico Huber 2018-06-05 22:34:08 +02:00 committed by Patrick Georgi
parent 1d017363c4
commit 9e53db4dc3
3 changed files with 3 additions and 3 deletions

View File

@ -748,7 +748,7 @@ config DEBUG_SMI
bool "Output verbose SMI debug messages"
default n
depends on HAVE_SMI_HANDLER
select SPI_FLASH_SMM if SPI_CONSOLE
select SPI_FLASH_SMM if SPI_CONSOLE || CONSOLE_SPI_FLASH
help
This option enables additional SMI related debug messages.

View File

@ -41,6 +41,7 @@ endif
config ELOG_GSMI
depends on ELOG && SMM_TSEG
bool "SMI interface to write and clear event log"
select SPI_FLASH_SMM if BOOT_DEVICE_SPI_FLASH_RW_NOMMAP
default n
help
This interface is compatible with the linux kernel driver

View File

@ -62,8 +62,7 @@ config SPI_FLASH_INCLUDE_ALL_DRIVERS
default y
config SPI_FLASH_SMM
bool "SPI flash driver support in SMM"
default n
bool
depends on HAVE_SMI_HANDLER
help
Select this option if you want SPI flash support in SMM.