diff options
author | Tim Wawrzynczak <twawrzynczak@chromium.org> | 2020-02-18 09:00:55 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-02-18 20:57:31 +0000 |
commit | 4500da84a09bbfc5f95e987e97112860d37c6551 (patch) | |
tree | aa80d7bbb32882ccade50c916fc7ca500b841c87 /board/akemi | |
parent | 97caca87d749d7c1c341e3eb35dfba14a887d3d9 (diff) | |
download | chrome-ec-4500da84a09bbfc5f95e987e97112860d37c6551.tar.gz |
akemi: Enable TI BQ40Z5 series FW workaround
The TI fuel gauge firmware has an issue where it will enter sleep mode when
the following occur:
1) no SMBUS communication,
2) current load less than
10mA for more than 20 seconds. This is the same technique that Octopus
used to workaround the issue.
BUG=b:148822924
BRANCH=firmware-hatch-12672.B
TEST=ODM verified this keeps the fuel gauge from sleeping
Change-Id: I00c3aa089b04fce39ebdcaaf6a94c5416f9bc24e
Signed-off-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2062177
Reviewed-by: Paul Fagerburg <pfagerburg@chromium.org>
Reviewed-by: Morgen Zhu <xiaoqiang.zhu@bitland.corp-partner.google.com>
Diffstat (limited to 'board/akemi')
-rw-r--r-- | board/akemi/board.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/board/akemi/board.h b/board/akemi/board.h index 4dbcb1aaa7..7095b75aa9 100644 --- a/board/akemi/board.h +++ b/board/akemi/board.h @@ -75,6 +75,17 @@ */ #define CONFIG_CHARGER_BQ25710_IDCHG_LIMIT_MA 8192 +/* TI gauge IC 500ms WDT timeout setting under battery sleep mode + * induced battery cut-off, under the following conditions: + * 1. SMBus communication on FC is once per minute which allows + * battery entering sleep mode; + * 2. System load < 10mA and accumulate 5 hours will trigger battery + * simulation and result in a 500ms WDT timeout. So change charge + * max sleep time from once/minute to once/10 seconds to prevent + * battery entering sleep mode. See b/133375756 and b/148822924. + */ +#define CHARGE_MAX_SLEEP_USEC (10 * SECOND) + /* Volume Button feature */ #define CONFIG_VOLUME_BUTTONS #define GPIO_VOLUME_UP_L GPIO_EC_VOLUP_BTN_ODL |