summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorWai-Hong Tam <waihong@google.com>2022-08-18 14:43:37 -0700
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2022-08-19 23:53:26 +0000
commit9f012dc430157b6aaf20af3cd51c371bd8131976 (patch)
treedbca31205d600adeaee381c7db6c7ef8a784c5a2 /include
parent3199d3a3aeb1807d8699df8931f6ebb35567e034 (diff)
downloadchrome-ec-9f012dc430157b6aaf20af3cd51c371bd8131976.tar.gz
zephyr: test: Add I2C passthru protect host command test cases
Add the test cases for I2C passthru protect. They cover the subcommands: status, enable, and enable_tcpc. They covers the error cases. BRANCH=None BUG=b:236131905 TEST=./twister -s zephyr/test/drivers/drivers.default Change-Id: I16fe91880265204376477aac60ca8b2ed456c7bf Signed-off-by: Wai-Hong Tam <waihong@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3840659 Reviewed-by: Yuval Peress <peress@google.com> Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
Diffstat (limited to 'include')
-rw-r--r--include/i2c.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/i2c.h b/include/i2c.h
index 4e4d88b0ad..99651d04c1 100644
--- a/include/i2c.h
+++ b/include/i2c.h
@@ -589,4 +589,6 @@ const struct i2c_port_t *get_i2c_port(const int port);
int i2c_port_is_locked(int port);
#endif
+__test_only void i2c_passthru_protect_reset(void);
+
#endif /* __CROS_EC_I2C_H */