summaryrefslogtreecommitdiff
path: root/firmware/lib/tpm2_lite/tlcl.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/lib/tpm2_lite/tlcl.c')
-rw-r--r--firmware/lib/tpm2_lite/tlcl.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/firmware/lib/tpm2_lite/tlcl.c b/firmware/lib/tpm2_lite/tlcl.c
index 1ac18c2d..dca8facc 100644
--- a/firmware/lib/tpm2_lite/tlcl.c
+++ b/firmware/lib/tpm2_lite/tlcl.c
@@ -8,11 +8,19 @@
#include "2common.h"
#include "2sysincludes.h"
-#include "secdata_tpm.h"
#include "tlcl.h"
#include "tpm2_marshaling.h"
#include "utility.h"
+/*
+ * TODO(chromium:1032930): Originally accessed by including secdata_tpm.h.
+ * This file moved to depthcharge, and vboot shouldn't need to know the indices
+ * of different TPM spaces anyways. But since the vboot TPM 2.0 implementation
+ * uses TPM 1.2 primitives as its API, TlclSetGlobalLock (TPM 1.2) needs to use
+ * the firmware space index to emulate a TlclWriteLock call (TPM 2.0).
+ */
+#define FIRMWARE_NV_INDEX 0x1007
+
/* Global buffer for deserialized responses. */
struct tpm2_response tpm2_resp;