summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Durbin <adurbin@chromium.org>2020-01-11 10:33:26 -0700
committerAaron Durbin <adurbin@chromium.org>2020-01-15 16:34:31 +0000
commitbd467d1481baabd0c9651dfa02a46f324679bf10 (patch)
treef8949e9e0a738eba16d75ef869bd7ef09c6456f7
parent3e7f00628018067c8152fe50b4873f0b31d27a25 (diff)
downloadcoreboot-bd467d1481baabd0c9651dfa02a46f324679bf10.tar.xz
soc/intel/common/block/fast_spi: don't include all spi flash drivers
The fast spi driver implements hardware sequencing which abstracts away the underlying spi flash commands in the hardware block. It also has its own spi flash probe function to intercept the spi flash ops. As such it's not necessary to include all spi flash drivers. On a hatch Chrome OS build this saves 9.5KiB of text in each of verstage, romstage, and ramstage. Change-Id: Ifb1b962cde3a6a02353ddf83279234057a9ec2fa Signed-off-by: Aaron Durbin <adurbin@chromium.org> Reviewed-on: https://review.coreboot.org/c/coreboot/+/38363 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Furquan Shaikh <furquan@google.com>
-rw-r--r--src/soc/intel/apollolake/Kconfig1
-rw-r--r--src/soc/intel/common/block/fast_spi/Kconfig1
-rw-r--r--src/soc/intel/skylake/Kconfig1
3 files changed, 1 insertions, 2 deletions
diff --git a/src/soc/intel/apollolake/Kconfig b/src/soc/intel/apollolake/Kconfig
index c2d2eaed79..0d69da23ca 100644
--- a/src/soc/intel/apollolake/Kconfig
+++ b/src/soc/intel/apollolake/Kconfig
@@ -106,7 +106,6 @@ config CPU_SPECIFIC_OPTIONS
select NO_UART_ON_SUPERIO
select INTEL_GMA_ACPI
select INTEL_GMA_SWSMISCI
- select SPI_FLASH_DONT_INCLUDE_ALL_DRIVERS
config CHROMEOS
select CHROMEOS_RAMOOPS_DYNAMIC
diff --git a/src/soc/intel/common/block/fast_spi/Kconfig b/src/soc/intel/common/block/fast_spi/Kconfig
index 4bd1f59de6..936927219d 100644
--- a/src/soc/intel/common/block/fast_spi/Kconfig
+++ b/src/soc/intel/common/block/fast_spi/Kconfig
@@ -1,5 +1,6 @@
config SOC_INTEL_COMMON_BLOCK_FAST_SPI
bool
+ select SPI_FLASH_DONT_INCLUDE_ALL_DRIVERS
help
Intel Processor common FAST_SPI support
diff --git a/src/soc/intel/skylake/Kconfig b/src/soc/intel/skylake/Kconfig
index a2fbdff8c6..9674024073 100644
--- a/src/soc/intel/skylake/Kconfig
+++ b/src/soc/intel/skylake/Kconfig
@@ -77,7 +77,6 @@ config CPU_SPECIFIC_OPTIONS
select TSC_SYNC_MFENCE
select UDELAY_TSC
select UDK_2015_BINDING
- select SPI_FLASH_DONT_INCLUDE_ALL_DRIVERS
config FSP_HYPERTHREADING
bool "Enable Hyper-Threading"