From 02e05cfe5b298cdf8e326333d96ae2958423f10c Mon Sep 17 00:00:00 2001 From: Scott Collyer Date: Tue, 14 May 2019 17:23:00 -0700 Subject: kohaku: Enable CONFIG_CHARGER_BQ25710_IDCHG_LIMIT_MA This config option is used to both set a limit for IDCHG and enable IDCHG as a trigger for prochot. With this feature enabled, Kohaku is able to boot into the kernel and remain running even under heavy loads while on battery only. The initial battery that's being used is only 2S+1P which does not provide sufficient power for CPU peak load conditions. BUG=b:132285560 BRANCH=none TEST=Manual Verfied that Kohaku can boot running on battery only and remains powered up as the CPU load gets increased. Change-Id: Idfc4b65d2b86ee9883345c6aa610130d2b9fe89e Signed-off-by: Scott Collyer Reviewed-on: https://chromium-review.googlesource.com/1613798 Commit-Ready: ChromeOS CL Exonerator Bot Tested-by: Scott Collyer Legacy-Commit-Queue: Commit Bot Reviewed-by: Tim Wawrzynczak --- board/kohaku/board.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/board/kohaku/board.h b/board/kohaku/board.h index 81bca3c57c..cbdd9f5e22 100644 --- a/board/kohaku/board.h +++ b/board/kohaku/board.h @@ -78,6 +78,18 @@ /* BC 1.2 */ #define CONFIG_BC12_DETECT_MAX14637 +/* 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 via experimentation by finding how high it can be set and still boot + * the AP successfully, then backing off to provide margin. + * + * TODO(b/133444665): 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 -- cgit v1.2.1