cros_ec: Add vstore support
authorSimon Glass <sjg@chromium.org>
Sat, 16 Jan 2021 21:52:31 +0000 (14:52 -0700)
committerSimon Glass <sjg@chromium.org>
Sat, 30 Jan 2021 21:25:41 +0000 (14:25 -0700)
commit10f746591fba16a48f0e3d14641be09f01982807
treec311e9e3063e1ca319a9952524ccbc3043c72ac3
parentd9ffaef6fe25e7a29e63911fe1af5d18c9d77a45
cros_ec: Add vstore support

The EC can store small amounts of data for the benefit of the
verified boot process. Since the EC is seldom reset, this can allow the
AP to store data that survives a reboot or a suspend/resume cycle.

Add support for this.

Signed-off-by: Simon Glass <sjg@chromium.org>
drivers/misc/cros_ec.c
drivers/misc/cros_ec_sandbox.c
include/cros_ec.h
test/dm/cros_ec.c