summaryrefslogtreecommitdiff
path: root/board/hammer
diff options
context:
space:
mode:
authorNicolas Boichat <drinkcat@chromium.org>2017-12-21 16:39:18 +0800
committerchrome-bot <chrome-bot@chromium.org>2017-12-21 22:50:34 -0800
commit7eacce9720053d298bf322be6af64288a75fd295 (patch)
tree511cc403bfd68be44b5691035ff98dfc12da3f73 /board/hammer
parent6040852eb7df499b7d5c239b916e353e5c8a894e (diff)
downloadchrome-ec-7eacce9720053d298bf322be6af64288a75fd295.tar.gz
ec_ec_comm_slave: Define extpower_is_present
On dual-battery slave, we use the charging allowed signal from master to indicate whether external power is present. In most cases, this actually matches the external power status of the master (slave battery charging when AC is connected, or discharging when slave battery still has enough capacity), with one exception: when we do master to slave battery charging (in this case the "external" power is the master). BRANCH=none BUG=b:65697962 TEST=Deplete wand battery to 5%, see that lux still provides power to it but the battery does not charge. Change-Id: I8bd9f52c386a0a9edfae3837ba33725b3101a008 Signed-off-by: Nicolas Boichat <drinkcat@chromium.org>
Diffstat (limited to 'board/hammer')
-rw-r--r--board/hammer/board.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/board/hammer/board.c b/board/hammer/board.c
index cb6d7d836b..e17cacd141 100644
--- a/board/hammer/board.c
+++ b/board/hammer/board.c
@@ -270,11 +270,3 @@ int board_write_serial(const char *serialno)
{
return 0;
}
-
-#ifdef BOARD_WAND
-/* TODO(b:66575472): This assumes external power is always present. */
-int extpower_is_present(void)
-{
- return 1;
-}
-#endif