summaryrefslogtreecommitdiff
path: root/src/drivers/mrc_cache/Kconfig
diff options
context:
space:
mode:
authorMarshall Dawson <marshalldawson3rd@gmail.com>2017-12-18 15:56:44 -0700
committerMartin Roth <martinroth@google.com>2018-01-19 19:47:02 +0000
commitf69d2d65745240627d42826c7abf1e576280d180 (patch)
tree6e95057cb604022b22ff61ba6837e203882d730b /src/drivers/mrc_cache/Kconfig
parent9826d1b272a47d2a2c83eecafe399b96f882b4a5 (diff)
drivers/mrc_cache: Make bootstate for SPI writes variable
The default time for writing MRC data to flash is at the exit of BS_DEV_ENUMERATE but this is too early for some implementations. Add an option to Kconfig for allowing a late option to be selected. The timing of the late option is at the entry of BS_OS_RESUME_CHECK. TEST=Select option and inspect console log on Kahlee BUG=b:69614064 Change-Id: Ie7ba9070829d98414ee788e14d1a768145d742ea Signed-off-by: Marshall Dawson <marshalldawson3rd@gmail.com> Reviewed-on: https://review.coreboot.org/22937 Reviewed-by: Martin Roth <martinroth@google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/drivers/mrc_cache/Kconfig')
-rw-r--r--src/drivers/mrc_cache/Kconfig9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/drivers/mrc_cache/Kconfig b/src/drivers/mrc_cache/Kconfig
index 93ae6c6bf3..c367dcec95 100644
--- a/src/drivers/mrc_cache/Kconfig
+++ b/src/drivers/mrc_cache/Kconfig
@@ -29,4 +29,13 @@ config MRC_SETTINGS_VARIABLE_DATA
bool
default n
+config MRC_WRITE_NV_LATE
+ bool
+ default n
+ help
+ MRC settings are normally written to NVRAM at BS_DEV_ENUMERATE-EXIT.
+ If a platform requires MRC settings written to NVRAM later than
+ normal, select this item. This will cause the write to occur at
+ BS_OS_RESUME_CHECK-ENTRY.
+
endif # CACHE_MRC_SETTINGS