diff options
author | ChromeOS Developer <dparker@chromium.org> | 2014-01-14 21:23:50 -0800 |
---|---|---|
committer | chrome-internal-fetch <chrome-internal-fetch@google.com> | 2014-02-06 01:22:17 +0000 |
commit | c35251d662ad91cdb680cb9de1b09c7b2d16f069 (patch) | |
tree | ad0d09eac9a8a924dc6817efcd88fd5e265ea651 /include/config.h | |
parent | 7c588a329203987af1f959d49683574a839f0a0f (diff) | |
download | chrome-ec-c35251d662ad91cdb680cb9de1b09c7b2d16f069.tar.gz |
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 <dparker@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/182921
Reviewed-by: Randall Spangler <rspangler@chromium.org>
Diffstat (limited to 'include/config.h')
-rw-r--r-- | include/config.h | 18 |
1 files changed, 15 insertions, 3 deletions
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 |