summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAseda Aboagye <aaboagye@google.com>2017-02-21 17:12:35 -0800
committerchrome-bot <chrome-bot@chromium.org>2017-02-27 18:50:12 -0800
commit2a7683af41a65907ed81f4a448390c5d0b09cedc (patch)
treeeb482f4b6c68da76e7aca732856346236b1746a6 /include
parentec98dbfb35bb22bb6b9096eceedda93c9f88f85c (diff)
downloadchrome-ec-2a7683af41a65907ed81f4a448390c5d0b09cedc.tar.gz
cr50: Store console lock state in NvMem vars.
This commit enables the use of the nvmem vars module. The console lock state is migrated from using the long life scratch register, to nvmem vars instead which will persist across power on reboots. BUG=b:35586145 BRANCH=None TEST=Flash a dev image. Lock the console. Remove all power from the system. Power on system and verify that console is still locked. Unlock the console, remove power from the system, power on the system, verify that the console is now unlocked. TEST=Repeat the above test, but using the nvtestvar console command instead. Change-Id: I03a2098bb0017cfca59889457a332eafb0e95db6 Signed-off-by: Aseda Aboagye <aaboagye@google.com> Reviewed-on: https://chromium-review.googlesource.com/445804 Commit-Ready: Aseda Aboagye <aaboagye@chromium.org> Tested-by: Aseda Aboagye <aaboagye@chromium.org> Reviewed-by: Vadim Bendebury <vbendeb@chromium.org>
Diffstat (limited to 'include')
-rw-r--r--include/tpm_registers.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/tpm_registers.h b/include/tpm_registers.h
index 9d5fba4cf5..9812c7c131 100644
--- a/include/tpm_registers.h
+++ b/include/tpm_registers.h
@@ -43,6 +43,14 @@ void tpm_register_interface(interface_restart_func interface_restart);
int tpm_reset_request(int wait_until_done, int wipe_nvmem_first);
/*
+ * Tell the TPM task to re-enable nvmem commits.
+ *
+ * NOTE: This function is NOT to be used freely, but only meant to be used in
+ * exceptional cases such as unlocking the console following a TPM wipe.
+ */
+void tpm_reinstate_nvmem_commits(void);
+
+/*
* This structure describes the header of all commands and responses sent and
* received over TPM FIFO.
*