summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDevin Lu <Devin.Lu@quantatw.com>2022-02-09 18:42:08 +0800
committerCommit Bot <commit-bot@chromium.org>2022-02-17 04:59:09 +0000
commit611079e62220f051d1e0c1e667e80bf052845a03 (patch)
treeb137522cd0abc947596f038ae4a0881300efc105
parentb825368db4bda1b5f1415a3b552fb5d8271539c1 (diff)
downloadchrome-ec-611079e62220f051d1e0c1e667e80bf052845a03.tar.gz
vell: Set battery current Prochot# threshold
Vell battery over-discharging current is 10.5A. This patch set battery current Prochot# threshold to 10.5A. BUG=b:216391312 BRANCH=none TEST=On Vell. Check the DC PROCHOT threshold is correct. Signed-off-by: Devin Lu <Devin.Lu@quantatw.com> Change-Id: Ia91c61c8ff7705dec0ebf1f8c8eb8938a5ee56c2 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3450002 Reviewed-by: Boris Mittelberg <bmbm@google.com>
-rw-r--r--board/vell/charger.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/board/vell/charger.c b/board/vell/charger.c
index 06933f04f1..b6779940a6 100644
--- a/board/vell/charger.c
+++ b/board/vell/charger.c
@@ -95,3 +95,10 @@ static void set_ac_prochot(void)
isl9241_set_ac_prochot(CHARGER_SOLO, PD_MAX_CURRENT_MA);
}
DECLARE_HOOK(HOOK_INIT, set_ac_prochot, HOOK_PRIO_DEFAULT);
+
+/* Set the DCPROCHOT base on battery over discharging current 10.5A */
+static void set_dc_prochot(void)
+{
+ isl9241_set_dc_prochot(CHARGER_SOLO, 10500);
+}
+DECLARE_HOOK(HOOK_INIT, set_dc_prochot, HOOK_PRIO_DEFAULT);