summaryrefslogtreecommitdiff
path: root/src/vboot/vbnv.h
diff options
context:
space:
mode:
authorAaron Durbin <adurbin@chromium.org>2017-09-15 11:17:38 -0600
committerAaron Durbin <adurbin@chromium.org>2017-09-20 23:54:35 +0000
commitfe265a1b9ce7ad5b3dbd19f5857a902494bbe24e (patch)
treea64ed4b1bf693126fa4c0585684cb9cc3a4141a4 /src/vboot/vbnv.h
parent976200388b6924c7b30c6062b64a8db7e215f37f (diff)
vboot: expose vbnv_reset() function
It's helpful to use the common vbnv_reset() function to initialize the vbnv contents when backing store failures occur. Therefore, allow that to happen. BUG=b:63054105 Change-Id: I990639e8c163469733fdab0d3c72e064acc9f8d8 Signed-off-by: Aaron Durbin <adurbin@chromium.org> Reviewed-on: https://review.coreboot.org/21559 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Furquan Shaikh <furquan@google.com>
Diffstat (limited to 'src/vboot/vbnv.h')
-rw-r--r--src/vboot/vbnv.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/vboot/vbnv.h b/src/vboot/vbnv.h
index 5e5160a992..540f25c2ca 100644
--- a/src/vboot/vbnv.h
+++ b/src/vboot/vbnv.h
@@ -28,6 +28,8 @@ void set_recovery_mode_into_vbnv(int recovery_reason);
int vboot_wants_oprom(void);
/* Initialize and read vbnv. This is used in the main vboot logic path. */
void vbnv_init(uint8_t *vbnv_copy);
+/* Reset vbnv snapshot to a known state. */
+void vbnv_reset(uint8_t *vbnv_copy);
/* CMOS backend */
void read_vbnv_cmos(uint8_t *vbnv_copy);