summaryrefslogtreecommitdiff
path: root/driver
diff options
context:
space:
mode:
authorCaveh Jalali <caveh@chromium.org>2021-11-18 23:35:42 -0800
committerCommit Bot <commit-bot@chromium.org>2021-11-19 23:50:07 +0000
commitbe260619f6fdc32ff6f8549e856cb8589c4008b4 (patch)
tree7c929585079772792d60e95efafe28249776b5c4 /driver
parented39a99992faae7f576aa2a73feb01a0769c36a2 (diff)
downloadchrome-ec-be260619f6fdc32ff6f8549e856cb8589c4008b4.tar.gz
bq25710: Add PP_IDCHG2 definition
This adds the register field definition for PP_IDCHG2. BRANCH=none BUG=b:185190976 TEST=buildall passes Signed-off-by: Caveh Jalali <caveh@chromium.org> Change-Id: Ic3e61d7e1e32f8b9fbb28bb4185a9cc9eb080b81 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3292442 Reviewed-by: Boris Mittelberg <bmbm@google.com> Commit-Queue: Boris Mittelberg <bmbm@google.com>
Diffstat (limited to 'driver')
-rw-r--r--driver/charger/bq257x0_regs.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/driver/charger/bq257x0_regs.h b/driver/charger/bq257x0_regs.h
index 63956aff44..2ea6cf7fb3 100644
--- a/driver/charger/bq257x0_regs.h
+++ b/driver/charger/bq257x0_regs.h
@@ -109,6 +109,11 @@
#define BQ25720_CHARGE_OPTION_4_IDCHG_TH2__1P25 0
#define BQ25720_CHARGE_OPTION_4_IDCHG_TH2__1P5 1
+#define BQ25720_CHARGE_OPTION_4_PP_IDCHG2_SHIFT 2
+#define BQ25720_CHARGE_OPTION_4_PP_IDCHG2_BITS 1
+#define BQ25720_CHARGE_OPTION_4_PP_IDCHG2__DISABLE 0
+#define BQ25720_CHARGE_OPTION_4_PP_IDCHG2__ENABLE 1
+
/*
* Vmin Active Protection Register (0x37)
*/