summaryrefslogtreecommitdiff
path: root/zephyr/test/drivers/src/isl923x.c
diff options
context:
space:
mode:
authorEric Yilun Lin <yllin@chromium.org>2022-01-27 10:53:57 +0800
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2022-05-12 14:14:16 +0000
commitb8e0530e517cb94bdec9805dce72cbfc9cc2b7c8 (patch)
tree5e807f71e68ce6ed319337b0d345484783d74c52 /zephyr/test/drivers/src/isl923x.c
parentd1b1f0e60dd901a27d34b4a6dfd9df7c22d47bba (diff)
downloadchrome-ec-b8e0530e517cb94bdec9805dce72cbfc9cc2b7c8.tar.gz
Disable the AMON/BMON when it's not using to reduce power consumption. BUG=b:215659327 TEST=check ISL9238C control1 bit5 is set. BRANCH=none Change-Id: I53b2177ec9683661daac7b99be88ad7113b7377b Signed-off-by: Eric Yilun Lin <yllin@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3419358 Reviewed-by: Ting Shen <phoenixshen@chromium.org> Tested-by: Eric Yilun Lin <yllin@google.com> Commit-Queue: Eric Yilun Lin <yllin@google.com>
Diffstat (limited to 'zephyr/test/drivers/src/isl923x.c')
-rw-r--r--zephyr/test/drivers/src/isl923x.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/zephyr/test/drivers/src/isl923x.c b/zephyr/test/drivers/src/isl923x.c
index 12be885bfb..203a2ed979 100644
--- a/zephyr/test/drivers/src/isl923x.c
+++ b/zephyr/test/drivers/src/isl923x.c
@@ -1057,9 +1057,8 @@ ZTEST(isl923x_hibernate, test_isl9238c_resume)
/* Part 1: Happy path */
control1_expected =
- (isl923x_emul_peek_reg(i2c_emul, ISL923X_REG_CONTROL1) &
- ~ISL923X_C1_DISABLE_MON) | ISL923X_C1_ENABLE_PSYS
- ;
+ isl923x_emul_peek_reg(i2c_emul, ISL923X_REG_CONTROL1) |
+ ISL923X_C1_ENABLE_PSYS;
control2_expected =
isl923x_emul_peek_reg(i2c_emul, ISL923X_REG_CONTROL2) &
~ISL923X_C2_COMPARATOR;