summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortony.tang <tony.tang@lcfc.corp-partner.google.com>2022-01-06 10:54:20 +0800
committerCommit Bot <commit-bot@chromium.org>2022-01-07 07:58:41 +0000
commit09317060ed9440779fcff4a36be5c1607cc958e9 (patch)
treeb1c4311a42f95085afec30527789b5fa750ccb98
parentcff29f4de33babe47c87d90c0b49a9614b308edc (diff)
downloadchrome-ec-09317060ed9440779fcff4a36be5c1607cc958e9.tar.gz
taniks: update chg profile for protection
Refer b:210073795 comment#13. LCFC power team would like to update prochot setting to enhance protection policy because the battery's min. voltage is too closing PPVAR 5V. BRANCH=none BUG=b:210073795 TEST=make buildall -j Signed-off-by: tony.tang <tony.tang@lcfc.corp-partner.google.com> Change-Id: Id671696bd395e18f23ac885a9947c2150e94b58c Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3367733 Reviewed-by: caveh jalali <caveh@chromium.org> Commit-Queue: caveh jalali <caveh@chromium.org>
-rw-r--r--board/taniks/board.h22
1 files changed, 21 insertions, 1 deletions
diff --git a/board/taniks/board.h b/board/taniks/board.h
index 8fa8db5b78..919a156801 100644
--- a/board/taniks/board.h
+++ b/board/taniks/board.h
@@ -173,10 +173,30 @@
/* Charger defines */
#define CONFIG_CHARGER_BQ25720
#define CONFIG_CHARGER_BQ25720_VSYS_TH2_CUSTOM
-#define CONFIG_CHARGER_BQ25720_VSYS_TH2_DV 70
+/* 37h BIT7:2 VSYS_TH2 6.0V */
+#define CONFIG_CHARGER_BQ25720_VSYS_TH2_DV 60
#define CONFIG_CHARGE_RAMP_SW
#define CONFIG_CHARGER_BQ25710_SENSE_RESISTOR 10
#define CONFIG_CHARGER_BQ25710_SENSE_RESISTOR_AC 10
+/* 30h BIT13:12 Enable PSYS 00b */
+#define CONFIG_CHARGER_BQ25710_PSYS_SENSING
+/* 31h BIT3 = 1 Enable ACOC */
+#define CONFIG_CHARGER_BQ25710_EN_ACOC
+/* 33h BIT15:11 ILIM2 TH 140% */
+#define CONFIG_CHARGER_BQ257X0_ILIM2_VTH_CUSTOM
+#define CONFIG_CHARGER_BQ257X0_ILIM2_VTH \
+ BQ257X0_PROCHOT_OPTION_0_ILIM2_VTH__1P40
+/* 34h BIT0 CONFIG_CHARGER_BQ25710_PP_ACOK */
+#define CONFIG_CHARGER_BQ25710_PP_ACOK
+/* 34h BIT3 and BIT15:10 IDCHG 9728mA, step is 512mA */
+#define CONFIG_CHARGER_BQ25710_IDCHG_LIMIT_MA 9728
+/* 36h UVP 5600mV */
+#define CONFIG_CHARGER_BQ25720_VSYS_UVP_CUSTOM
+#define CONFIG_CHARGER_BQ25720_VSYS_UVP \
+ BQ25720_CHARGE_OPTION_4_VSYS_UVP__5P6
+/* 3Eh BIT15:8 VSYS_MIN 6.1V */
+#define CONFIG_CHARGER_BQ25710_VSYS_MIN_VOLTAGE_CUSTOM
+#define CONFIG_CHARGER_BQ25710_VSYS_MIN_VOLTAGE_MV 6100
#ifndef __ASSEMBLER__