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 <[email protected]>
Reviewed-on: https://chromium-review.googlesource.com/433839
Reviewed-by: Andrey Pronin <[email protected]>
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