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 22:58:23 +0000 |
commit | af88cc91a92f15c65699d206fb6415a6d7edd3a0 (patch) | |
tree | 1bc63943dd58c279734bc22da8a066dea237594b | |
parent | 9ac1ac60ae75405ab1b95e614d2c96d5014e6f34 (diff) | |
download | chrome-ec-af88cc91a92f15c65699d206fb6415a6d7edd3a0.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/+/1852864
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 8aa45c0c38..f4dd71d767 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__ |