diff options
author | Jeremy Bettis <jbettis@google.com> | 2022-08-26 16:56:48 -0600 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-08-29 18:14:24 +0000 |
commit | 84ce87820dfd04af120f3bca4f884e7b10f39831 (patch) | |
tree | 9d4588026c6cc646d44725ccbe976323165e5994 /common | |
parent | 7c1402f9490b89156264a42eb888538ed9d4e33c (diff) | |
download | chrome-ec-84ce87820dfd04af120f3bca4f884e7b10f39831.tar.gz |
zephyr: Add new test for vboot efs2
This covers the cases in vboot_main. Next is to move the next level down
and emulate the communication with the cr50 as well.
Add new test hooks to vboot/efs2.c, and the flash emul.
BRANCH=None
BUG=None
TEST=./twister
Signed-off-by: Jeremy Bettis <jbettis@google.com>
Change-Id: Icca8dde3731a91645eabbf2bc547c84a51cb1474
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3858041
Tested-by: Jeremy Bettis <jbettis@chromium.org>
Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
Auto-Submit: Jeremy Bettis <jbettis@chromium.org>
Commit-Queue: Jeremy Bettis <jbettis@chromium.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'common')
-rw-r--r-- | common/vboot/efs2.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/common/vboot/efs2.c b/common/vboot/efs2.c index 750be4c824..6df6b5b56e 100644 --- a/common/vboot/efs2.c +++ b/common/vboot/efs2.c @@ -216,6 +216,13 @@ bool vboot_allow_usb_pd(void) return pd_comm_enabled; } +#ifdef TEST_BUILD +void vboot_disable_pd(void) +{ + pd_comm_enabled = false; +} +#endif + __overridable void show_critical_error(void) { CPRINTS("%s", __func__); |