From f6a53e9917b474e95afb42e2522fb88c61998c9a Mon Sep 17 00:00:00 2001 From: Ryan Zhang Date: Mon, 30 May 2016 16:27:54 +0800 Subject: COMMON: move precharge time to config.h move PRECHARGE_TIMEOUT to config.h so that we can customize precharge time to meet client's spec. BUG=none BRANCH=master TEST=`make -j buildall`, precharge time is set to 300s in elm. Change-Id: I5c3bf0d5c5240b9c087e6cdb7c6e97301efa9f84 Signed-off-by: Ryan Zhang Reviewed-on: https://chromium-review.googlesource.com/348151 Reviewed-by: Shawn N --- include/config.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/config.h') diff --git a/include/config.h b/include/config.h index 5f527d8ebe..e360745b41 100644 --- a/include/config.h +++ b/include/config.h @@ -174,6 +174,9 @@ */ #undef CONFIG_BATTERY_OVERRIDE_PARAMS +/* Maximum time to wake a non-responsive battery, in second */ +#define CONFIG_BATTERY_PRECHARGE_TIMEOUT 30 + /* * If defined, the charger will check for battery presence before attempting * to communicate with it. This avoids the 30 second delay when booting -- cgit v1.2.1