mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-11 18:35:28 +00:00
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>
This commit is contained in:
committed by
ChromeOS Commit Bot
parent
2b129cc3b7
commit
09779ca159
@@ -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
|
||||
|
||||
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user