diff options
author | elthanhuang <elthan_huang@compal.corp-partner.google.com> | 2019-10-10 21:13:00 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2019-10-16 20:12:50 +0000 |
commit | 984268ee09668ba29026b0cfed6f1524b4837657 (patch) | |
tree | d911011f892bdcca521d5de9ee79599a781d9866 | |
parent | 14141160365638e06b6ed28c4f7b2e421b6b12b1 (diff) | |
download | chrome-ec-984268ee09668ba29026b0cfed6f1524b4837657.tar.gz |
fleex: Change adjust charge max sleep time to 10s
Change CHARGE_MAX_SLEEP_USEC to 10 seconds.
BUG=b:133375756
BRANCH=octopus
TEST=Verify access battery once per 10 seconds by ec console.
Change-Id: I273ec13381d131866c536b879f5a912a63a53ecb
Signed-off-by: elthanhuang <elthan_huang@compal.corp-partner.google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1865018
Reviewed-by: Jett Rink <jettrink@chromium.org>
Commit-Queue: Jett Rink <jettrink@chromium.org>
Tested-by: Jett Rink <jettrink@chromium.org>
-rw-r--r-- | board/fleex/board.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/board/fleex/board.h b/board/fleex/board.h index 18100386d7..4d32ff0537 100644 --- a/board/fleex/board.h +++ b/board/fleex/board.h @@ -52,6 +52,17 @@ #define CONFIG_STEINHART_HART_3V3_13K7_47K_4050B #define CONFIG_STEINHART_HART_3V3_51K1_47K_4050B +/* 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. + */ +#define CHARGE_MAX_SLEEP_USEC (10 * SECOND) + #define CONFIG_ACCEL_LSM6DSM_INT_EVENT \ TASK_EVENT_MOTION_SENSOR_INTERRUPT(BASE_ACCEL) #ifndef __ASSEMBLER__ |