aboutsummaryrefslogtreecommitdiff
path: root/src/vboot
diff options
context:
space:
mode:
authorVadim Bendebury <vbendeb@chromium.org>2016-11-11 09:33:43 -0800
committerVadim Bendebury <vbendeb@chromium.org>2016-11-11 18:53:33 +0100
commit673a2663a9a5ae0f222ecf07520c6137737b5139 (patch)
tree0375e1ab774c9a0ee615a210e0df951691112366 /src/vboot
parent39915bc290066174b8b933829b7d192b86bb8e6f (diff)
src/vboot: mark factory_initialze_tpm() as static
This function is not used anywhere else in the code. BRANCH=none BUG=none TEST=reef and kevin boards (using tpm1.2 and tpm2.0 respectively) build successfully. Change-Id: Ifcc345ae9c22b25fdcfc2e547e70766021d27e32 Signed-off-by: Vadim Bendebury <vbendeb@chromium.org> Reviewed-on: https://review.coreboot.org/17387 Reviewed-by: Furquan Shaikh <furquan@google.com> Tested-by: build bot (Jenkins)
Diffstat (limited to 'src/vboot')
-rw-r--r--src/vboot/secdata_tpm.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/vboot/secdata_tpm.c b/src/vboot/secdata_tpm.c
index 95605f6049..357d6e3fb7 100644
--- a/src/vboot/secdata_tpm.c
+++ b/src/vboot/secdata_tpm.c
@@ -329,7 +329,14 @@ uint32_t antirollback_lock_space_rec_hash(void)
}
#endif
-uint32_t factory_initialize_tpm(struct vb2_context *ctx)
+/**
+ * Perform one-time initializations.
+ *
+ * Create the NVRAM spaces, and set their initial values as needed. Sets the
+ * nvLocked bit and ensures the physical presence command is enabled and
+ * locked.
+ */
+static uint32_t factory_initialize_tpm(struct vb2_context *ctx)
{
uint32_t result;