summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNamyoon Woo <namyoon@chromium.org>2020-03-10 17:56:18 -0700
committerCommit Bot <commit-bot@chromium.org>2020-03-11 20:55:42 +0000
commit3def48bef02dbd81acab77163924bc3bbb20983b (patch)
treee1e625a384a80a5459c8ede88a90ac559d87a5e1 /include
parent744a123033a043f7b10b7937ed7814fa1505d3fd (diff)
downloadchrome-ec-3def48bef02dbd81acab77163924bc3bbb20983b.tar.gz
add corrupt and reload options to 'ec_comm' console cmd
Two new options for 'ec_comm' are for test usage only. - ec_comm corrupt: it corrupts the ECRW hash in ec_comm module. Hash corruption will cause EC-FW verification failure. It can be useful to check how AP firmware performs software sync on this failure. - ec_comm reload: it forces Cr50 to reload ECRW hash from tpm nvmem. This is to restore the EC EFS2 status in Cr50 from corrupted status. BUG=b:150650877 BRANCH=cr50 TEST=manually ran 'ec_comm corrupt' or 'ec_comm reload' with dev image. Checked cr50 normal image refuses those command lines. Signed-off-by: Namyoon Woo <namyoon@chromium.org> Change-Id: Ib4aa9532132e1ee786e623bd658a68987e4681dc Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2094781 Reviewed-by: Vadim Bendebury <vbendeb@chromium.org>
Diffstat (limited to 'include')
-rw-r--r--include/ec_comm.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/ec_comm.h b/include/ec_comm.h
index dee31df4be..c599868488 100644
--- a/include/ec_comm.h
+++ b/include/ec_comm.h
@@ -41,6 +41,8 @@ uint16_t ec_efs_verify_hash(const char *hash_data, const uint8_t size);
void ec_efs_refresh(void);
/* print EC-EFS status */
void ec_efs_print_status(void);
+/* corrupt ECRW hash */
+void ec_efs_corrupt_hash(void);
#ifdef BOARD_HOST
/* return the current boot mode. For test purpose only. */