diff options
author | Yuval Peress <peress@google.com> | 2022-08-23 23:09:55 -0600 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-08-24 20:13:15 +0000 |
commit | 4c8ba5d95b22713dbd9f3367162c4d99eeb43ca3 (patch) | |
tree | cbed88587190638aa6f8aee61636eae744912cea /zephyr/include/emul/emul_smart_battery.h | |
parent | 5540ef68843f9a7b5d1b80a89b30a2966bbd3724 (diff) | |
download | chrome-ec-4c8ba5d95b22713dbd9f3367162c4d99eeb43ca3.tar.gz |
test: verify battery cut off host command v0 works
Check both paths of the battery cut off host command (v0) by emulating
an I2C failure when writing sb (address 0).
BRANCH=none
BUG=b:236075096
TEST=twister -s zephyr/test/drivers/drivers.default
Signed-off-by: Yuval Peress <peress@google.com>
Change-Id: Id50a8dc29f6f1c336287c1ae85244ef333ec623b
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3853763
Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
Reviewed-by: Jeremy Bettis <jbettis@chromium.org>
Diffstat (limited to 'zephyr/include/emul/emul_smart_battery.h')
-rw-r--r-- | zephyr/include/emul/emul_smart_battery.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/zephyr/include/emul/emul_smart_battery.h b/zephyr/include/emul/emul_smart_battery.h index 27fc8835eb..cde58dd8c8 100644 --- a/zephyr/include/emul/emul_smart_battery.h +++ b/zephyr/include/emul/emul_smart_battery.h @@ -17,6 +17,8 @@ #include <zephyr/drivers/i2c_emul.h> #include <stdint.h> +#include "emul/emul_common_i2c.h" + /** * @brief Smart Battery emulator backend API * @defgroup sbat_emul Smart Battery emulator |