summaryrefslogtreecommitdiff
path: root/chip
diff options
context:
space:
mode:
authorScott <scollyer@chromium.org>2016-05-17 13:17:23 -0700
committerchrome-bot <chrome-bot@chromium.org>2016-05-26 16:17:27 -0700
commitd80a5837c47de5aa42707bd708f614a6f16e7313 (patch)
treed4c318d9ec9fc8d9e31e2fd67e64d1972b2af958 /chip
parent56ee8aefc33505a7df4e4148001a11ac461907a3 (diff)
downloadchrome-ec-d80a5837c47de5aa42707bd708f614a6f16e7313.tar.gz
NvMem: Added NV Memory module to ec/common/
Full implementation of NvMem read, write, and commit functions. Includes partition definitions, shared memory allocation, and initialization function. Includes a set of unit tests located in ec/test/nvmem.c which verify functionality. This module is required by Cr50, however this CL does not include any Cr50 specific code. BUG=chrome-os-partner:44745 BRANCH=none TEST=manual make runtests TEST_LIST_HOST=nvmem and verify that all tests pass Change-Id: I515b094f2179dbcb75dd11ab5b14434caad37edd Signed-off-by: Scott <scollyer@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/345632 Commit-Ready: Scott Collyer <scollyer@chromium.org> Tested-by: Scott Collyer <scollyer@chromium.org> Reviewed-by: Bill Richardson <wfrichar@chromium.org>
Diffstat (limited to 'chip')
-rw-r--r--chip/host/system.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/chip/host/system.c b/chip/host/system.c
index 3de4ab10cd..757d00fc51 100644
--- a/chip/host/system.c
+++ b/chip/host/system.c
@@ -16,7 +16,7 @@
#include "timer.h"
#include "util.h"
-#define SHARED_MEM_SIZE 512 /* bytes */
+#define SHARED_MEM_SIZE 0x2000 /* bytes */
uint8_t __shared_mem_buf[SHARED_MEM_SIZE];
#define RAM_DATA_SIZE (sizeof(struct panic_data) + 512) /* bytes */