summaryrefslogtreecommitdiff
path: root/src/cpu/x86/Kconfig
diff options
context:
space:
mode:
authorDavid Hendricks <dhendrix@chromium.org>2014-03-21 17:09:29 -0700
committerMarc Jones <marc.jones@se-eng.com>2014-12-15 23:59:00 +0100
commitbe6f8cb0f0a2873a9c16dc454cde1f29f4fab765 (patch)
tree2e3dd7e2213a790d2dceb56198a31123efebc839 /src/cpu/x86/Kconfig
parentc94702481b39709e244dd492256fa3b96d651537 (diff)
downloadcoreboot-be6f8cb0f0a2873a9c16dc454cde1f29f4fab765.tar.xz
x86: Set BOOT_MEDIA_SPI_BUS
BOOT_MEDIA_SPI_BUS is a Kconfig variable used on some ARM-based platforms to set up CBFS media. It turns out it can also be helpful for setting up the eventlog which is intended to reside on the same SPI flash as CBFS. Setting it for x86 will allow us to remove an assumption about which SPI bus is used for this flash device. Long term this can go away as we come up with a better abstraction for the eventlog's backing store. This is only intended to help us get from here to there. BUG=none BRANCH=none TEST=built and booted on Link Signed-off-by: David Hendricks <dhendrix@chromium.org> Original-Change-Id: I1d84dc28592fbece33a70167be59e83bca9cd7bc Original-Reviewed-on: https://chromium-review.googlesource.com/191202 Original-Tested-by: David Hendricks <dhendrix@chromium.org> Original-Reviewed-by: Gabe Black <gabeblack@chromium.org> Original-Commit-Queue: David Hendricks <dhendrix@chromium.org> (cherry picked from commit 200aa7c5b1b1f4c74412893cf7231a12e2702463) Signed-off-by: Marc Jones <marc.jones@se-eng.com> Change-Id: If988bcff5244ec6a82580203471b25fac49c45ef Reviewed-on: http://review.coreboot.org/7752 Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org> Tested-by: build bot (Jenkins)
Diffstat (limited to 'src/cpu/x86/Kconfig')
-rw-r--r--src/cpu/x86/Kconfig7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/cpu/x86/Kconfig b/src/cpu/x86/Kconfig
index a1ec208140..1e15166328 100644
--- a/src/cpu/x86/Kconfig
+++ b/src/cpu/x86/Kconfig
@@ -137,3 +137,10 @@ config MIRROR_PAYLOAD_TO_RAM_BEFORE_LOADING
payload would typically live in a memory-mapped SPI part. Copying
the SPI contents to RAM before performing the load can speed up
the boot process.
+
+config BOOT_MEDIA_SPI_BUS
+ int
+ default 0
+ depends on SPI_FLASH
+ help
+ Most x86 systems which boot from SPI flash boot using bus 0.