summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--board/hatch/board.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/board/hatch/board.h b/board/hatch/board.h
index 560b16d84b..06a7e7945c 100644
--- a/board/hatch/board.h
+++ b/board/hatch/board.h
@@ -68,6 +68,18 @@
/* BC 1.2 */
#define CONFIG_BC12_DETECT_PI3USB9201
+/* Charger features */
+/*
+ * The IDCHG current limit is set in 512 mA steps. The value set here is
+ * somewhat specific to the battery pack being currently used. The limit here
+ * was set based on the battery's discharge current limit and what was tested to
+ * prevent the AP rebooting with low charge level batteries.
+ *
+ * TODO(b/133447140): Revisit this threshold once peak power consumption tuning
+ * for the AP is completed.
+ */
+#define CONFIG_CHARGER_BQ25710_IDCHG_LIMIT_MA 8192
+
/* Volume Button feature */
#define CONFIG_VOLUME_BUTTONS
#define GPIO_VOLUME_UP_L GPIO_EC_VOLUP_BTN_ODL