diff options
author | Scott Collyer <scollyer@google.com> | 2019-05-14 17:23:00 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2019-05-24 15:09:40 -0700 |
commit | 02e05cfe5b298cdf8e326333d96ae2958423f10c (patch) | |
tree | a687f42ebe198f381436245483504d6fe2d2b414 | |
parent | 94468b6b0077e27ab1d25d6a8266deae73bc0e32 (diff) | |
download | chrome-ec-02e05cfe5b298cdf8e326333d96ae2958423f10c.tar.gz |
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 <scollyer@google.com>
Reviewed-on: https://chromium-review.googlesource.com/1613798
Commit-Ready: ChromeOS CL Exonerator Bot <chromiumos-cl-exonerator@appspot.gserviceaccount.com>
Tested-by: Scott Collyer <scollyer@chromium.org>
Legacy-Commit-Queue: Commit Bot <commit-bot@chromium.org>
Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
-rw-r--r-- | board/kohaku/board.h | 12 |
1 files changed, 12 insertions, 0 deletions
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 |