summaryrefslogtreecommitdiff
path: root/src/drivers/smmstore/Kconfig
diff options
context:
space:
mode:
authorArthur Heymans <arthur@aheymans.xyz>2018-12-01 15:28:03 +0100
committerPatrick Georgi <pgeorgi@google.com>2018-12-05 13:30:56 +0000
commit8b04dc730ddcf6c80c556e89e1e17a64fdf39db7 (patch)
treee1bfa793d3fc91eebc4d8977f3024da6c4961c75 /src/drivers/smmstore/Kconfig
parentdbcf293211df0d698c0d14b8668f55dd8be36ed3 (diff)
downloadcoreboot-8b04dc730ddcf6c80c556e89e1e17a64fdf39db7.tar.xz
drivers/smmstore: Allow using raw FMAP regions
Use a raw fmap region SMMSTORE for the SMMSTORE mechanism, while keeping the initial option to use a cbfsfile. TESTED on Asus P5QC, (although it looks like the tianocore patches using it might need some love as they can't seem to save properly). Change-Id: I8c2b9b3a0ed16b2d37e6a97e33c671fb54df8de0 Signed-off-by: Arthur Heymans <arthur@aheymans.xyz> Reviewed-on: https://review.coreboot.org/c/29991 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Diffstat (limited to 'src/drivers/smmstore/Kconfig')
-rw-r--r--src/drivers/smmstore/Kconfig16
1 files changed, 12 insertions, 4 deletions
diff --git a/src/drivers/smmstore/Kconfig b/src/drivers/smmstore/Kconfig
index d7063dfad5..1ab3a5e941 100644
--- a/src/drivers/smmstore/Kconfig
+++ b/src/drivers/smmstore/Kconfig
@@ -19,14 +19,22 @@ config SMMSTORE
depends on BOOT_DEVICE_SUPPORTS_WRITES
select SPI_FLASH_SMM if BOOT_DEVICE_SPI_FLASH_RW_NOMMAP
+config SMMSTORE_IN_CBFS
+ bool
+ default n
+ help
+ Select this if you want to the SMMSTORE region in a
+ cbfsfile in a cbfs FMAP region
+
if SMMSTORE
config SMMSTORE_REGION
- string "fmap region in which SMM store file is kept"
- default "RW_LEGACY" if CHROMEOS
- default "COREBOOT"
+ string "fmap region in which SMM store file is kept" if SMMSTORE_IN_CBFS
+ default "RW_LEGACY" if CHROMEOS && SMMSTORE_IN_CBFS
+ default "COREBOOT" if SMMSTORE_IN_CBFS
+ default "SMMSTORE"
config SMMSTORE_FILENAME
- string "SMM store file name"
+ string "SMM store file name" if SMMSTORE_IN_CBFS
default "smm_store"
endif