aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVadim Bendebury <vbendeb@chromium.org>2017-01-26 10:43:07 -0800
committerchrome-bot <chrome-bot@chromium.org>2017-01-28 01:52:09 -0800
commit1a68fe6fa860f563e8b45e3826110ceec75d61a8 (patch)
treecc631df6ced2c4451324b52e4e12039b5dbcbf38
parent21756127fdebc0b0825aba875c7d0cc75057d3d8 (diff)
downloadtpm2-1a68fe6fa860f563e8b45e3826110ceec75d61a8.tar.gz
Change NVMEM size to match cr50 implementation
The TPM2 library and cr50 board have separate definitions of the NVMEM size, which need to be changed manually and are enforced by a compile time check in the cr50 code. CQ-DEPEND=CL:433184 BRANCH=none BUG=chrome-os-partner:62260 TEST=see dependent CL for test description Change-Id: I0586a35b77b2f52538023442f537c7a48b3357e7 Signed-off-by: Vadim Bendebury <vbendeb@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/433839 Reviewed-by: Andrey Pronin <apronin@chromium.org>
-rw-r--r--Implementation.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Implementation.h b/Implementation.h
index 3a9fcc5..5ecf334 100644
--- a/Implementation.h
+++ b/Implementation.h
@@ -259,7 +259,7 @@
#define MAX_CAP_BUFFER 1024
#ifdef EMBEDDED_MODE
// This must be matched by the package using this library!
-#define NV_MEMORY_SIZE 16076
+#define NV_MEMORY_SIZE 11980
// Versioning NV storage format will allow to smoothly migrate NVRAM contents.
// Versions:
// 1 - full non-serialized objects in NVMEM, max SHA digest is SHA-256