summaryrefslogtreecommitdiff
path: root/driver
diff options
context:
space:
mode:
authorAseda Aboagye <aaboagye@google.com>2021-04-23 15:07:25 -0700
committerCommit Bot <commit-bot@chromium.org>2021-04-27 22:54:53 +0000
commit73886cddb0eb255072848e2d071707976729be03 (patch)
tree006e2e0520a318db5485df3dc82bcba558dd9ae6 /driver
parentda02ed5aace26a2abe545daaede8a18a100cc197 (diff)
downloadchrome-ec-73886cddb0eb255072848e2d071707976729be03.tar.gz
raa489000: Disable DVC in hibernate
Leaving DVC enabled on the primary charger in hibernate will increase the power consumption of the system. When we enter hibernate, DVC isn't needed so we can safely disable it. BUG=b:184219851 BRANCH=dedede TEST=Build and flash madoo, verify that DUT is able to hibernate and can charge from sub board when woken up. Signed-off-by: Aseda Aboagye <aaboagye@google.com> Change-Id: I027cceac0cb7eff9ac08293449a06712e9d1daaf Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2848292 Tested-by: Aseda Aboagye <aaboagye@chromium.org> Auto-Submit: Aseda Aboagye <aaboagye@chromium.org> Reviewed-by: Diana Z <dzigterman@chromium.org> Commit-Queue: Diana Z <dzigterman@chromium.org>
Diffstat (limited to 'driver')
-rw-r--r--driver/charger/isl923x.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/driver/charger/isl923x.c b/driver/charger/isl923x.c
index d9a6713a56..b918cec8a4 100644
--- a/driver/charger/isl923x.c
+++ b/driver/charger/isl923x.c
@@ -887,6 +887,14 @@ void raa489000_hibernate(int chgnum, bool disable_adc)
CPRINTS("%s(%d):Failed to set Control8!", __func__,
chgnum);
}
+
+ /* Disable DVC on the main charger to reduce power consumption. */
+ if (chgnum == CHARGER_PRIMARY) {
+ rv = raw_write16(chgnum, RAA489000_REG_CONTROL10, 0);
+ if (rv)
+ CPRINTS("%s(%d):Failed to set Control10!", __func__,
+ chgnum);
+ }
#endif
cflush();