diff options
author | Rong Chang <rongchang@chromium.org> | 2015-06-10 19:32:13 +0800 |
---|---|---|
committer | ChromeOS Commit Bot <chromeos-commit-bot@chromium.org> | 2015-06-10 18:23:50 +0000 |
commit | 09779ca159d983e60cd9e5f36aa7c2795c7058fb (patch) | |
tree | 91462f5bcc2598554f060aef12b57209626116fa /board | |
parent | 2b129cc3b79d9940be9e80b660d2523e399eb732 (diff) | |
download | chrome-ec-09779ca159d983e60cd9e5f36aa7c2795c7058fb.tar.gz |
oak: enable battery present detection
Rename BATT_TH to a more meaningful BAT_PRESENT_L. And enable GPIO based
battery detection.
BRANCH=none
BUG=none
TEST=none
Change-Id: Icea2b6def889f887aad862b39fb75aedf72c7042
Signed-off-by: Rong Chang <rongchang@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/276586
Reviewed-by: Alec Berg <alecaberg@chromium.org>
Diffstat (limited to 'board')
-rw-r--r-- | board/oak/board.h | 1 | ||||
-rw-r--r-- | board/oak/gpio.inc | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/board/oak/board.h b/board/oak/board.h index 9a29c9badc..68ea17605e 100644 --- a/board/oak/board.h +++ b/board/oak/board.h @@ -17,6 +17,7 @@ #undef CONFIG_ADC_WATCHDOG /* Add for AC adaptor, charger, battery */ #define CONFIG_BATTERY_CUT_OFF +#define CONFIG_BATTERY_PRESENT_GPIO GPIO_BAT_PRESENT_L #define CONFIG_BATTERY_SMART #define CONFIG_CHARGE_MANAGER #define CONFIG_CHARGER diff --git a/board/oak/gpio.inc b/board/oak/gpio.inc index 849c970b6c..d38f77a52f 100644 --- a/board/oak/gpio.inc +++ b/board/oak/gpio.inc @@ -30,7 +30,7 @@ GPIO_INT(KB_IN07, PIN(D, 2), GPIO_KB_INPUT, keyboard_raw_gpio_interrupt) GPIO(5V_POWER_GOOD, PIN(A, 1), GPIO_INPUT) GPIO(EC_WAKE, PIN(A, 0), GPIO_INPUT|GPIO_PULL_DOWN) GPIO(WP_L, PIN(B, 4), GPIO_INPUT) /* Write protect input */ -GPIO(BATT_TH, PIN(E, 3), GPIO_INPUT|GPIO_PULL_UP) +GPIO(BAT_PRESENT_L, PIN(E, 3), GPIO_INPUT|GPIO_PULL_UP) /* Board version */ GPIO(BOARD_VERSION1, PIN(E, 10), GPIO_INPUT|GPIO_PULL_UP) /* Board ID 0 */ |