From c35251d662ad91cdb680cb9de1b09c7b2d16f069 Mon Sep 17 00:00:00 2001 From: ChromeOS Developer Date: Tue, 14 Jan 2014 21:23:50 -0800 Subject: Add configs for battery detect via gpio or custom function BUG=chrome-os-partner:24649 BRANCH=baytrail TEST=Boot target device w/o battery. There should be no 30 second delay prior to boot. Change-Id: If7a60919701d1c241670d0b32e04f3e188a643f1 Signed-off-by: Dave Parker Reviewed-on: https://chromium-review.googlesource.com/182921 Reviewed-by: Randall Spangler --- include/config.h | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) (limited to 'include/config.h') diff --git a/include/config.h b/include/config.h index c84186620f..4ae871112f 100644 --- a/include/config.h +++ b/include/config.h @@ -86,10 +86,22 @@ #undef CONFIG_BATTERY_MOCK /* - * Battery can check if it's connected. If defined, charger will check for - * battery presence before attempting to communicate with it. + * If defined, the charger will check for battery presence before attempting + * to communicate with it. This avoids the 30 second delay when booting + * without a battery present. Do not use with CONFIG_BATTERY_PRESENT_GPIO. + * + * Replace the default battery_is_present() function with a board-specific + * implementation in board.c + */ +#undef CONFIG_BATTERY_PRESENT_CUSTOM + +/* + * If defined, GPIO which is driven low when battery is present. + * Charger will check for battery presence before attempting to communicate + * with it. This avoids the 30 second delay when booting without a battery + * present. Do not use with CONFIG_BATTERY_PRESENT_CUSTOM. */ -#undef CONFIG_BATTERY_CHECK_CONNECTED +#undef CONFIG_BATTERY_PRESENT_GPIO /* * Compile smart battery support -- cgit v1.2.1