From b35060d557c0a36f6e5c6a6265bb8bea921fabc0 Mon Sep 17 00:00:00 2001 From: Cloud Date: Tue, 8 Aug 2017 18:02:53 +0800 Subject: kefka: Keep giving charge voltage/current when wake up dead battery LGC and BYD battery will give charge voltage 0 and charge current 0 about 5 seconds when the battery wakes up. It will cause charger stops and fail to wake up the battery. Force to give max charge voltage and precharge current after the battery wakes up to prevent the issue. BUG=b:64152371;b:64148243 BRANCH=firmware-strago-7287.B TEST=Make system with LGC/BTD to over discharge state. Make sure that we can wake up the system. Signed-off-by: Cloud Lin Change-Id: I4b512488465c7870a2359f19bdb910b16cf673f6 Reviewed-on: https://chromium-review.googlesource.com/605409 Tested-by: Lin Cloud Reviewed-by: YH Lin Reviewed-by: Shawn N Commit-Queue: Lin Cloud --- board/kefka/board.h | 1 + 1 file changed, 1 insertion(+) diff --git a/board/kefka/board.h b/board/kefka/board.h index 9f72d1dfa9..e2da997539 100644 --- a/board/kefka/board.h +++ b/board/kefka/board.h @@ -72,6 +72,7 @@ #define CONFIG_CHARGER_SENSE_RESISTOR_AC 10 #define CONFIG_CHARGER_INPUT_CURRENT 3136 #define CONFIG_CHARGER_DISCHARGE_ON_AC +#define CONFIG_BATTERY_REQUESTS_NIL_WHEN_DEAD #define CONFIG_PWM #define CONFIG_LED_COMMON -- cgit v1.2.1