summaryrefslogtreecommitdiff
path: root/board/host
diff options
context:
space:
mode:
authorShawn Nematbakhsh <shawnn@chromium.org>2014-12-17 10:36:48 -0800
committerchrome-internal-fetch <chrome-internal-fetch@google.com>2014-12-17 22:26:56 +0000
commit86835f7067b7ce26431ca459be3d59662736275f (patch)
tree29157fcda8227315f537cdb4168549344ba7421e /board/host
parentec12acc81f47e9b88517cd4a955414f7a1ee1cf6 (diff)
downloadchrome-ec-86835f7067b7ce26431ca459be3d59662736275f.tar.gz
charge_manager: Allow board to reject a selected charge port
Modify board_set_active_charge_port to return status indicating whether the selected charge port was rejected. If rejected, zero out its available charge and attempt to select a different charge port. Also, reduce the length of related console prints. BUG=chrome-os-partner:34677 TEST=Manual on Samus. Plug C-to-Arec into port 1, verify that charge manager does not select port 1 as active and charging icon is not seen in OS. BRANCH=Samus. Change-Id: I56e3337f90c04b93ef7cc9873af6ee0f4b1ffc7d Signed-off-by: Shawn Nematbakhsh <shawnn@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/236361 Reviewed-by: Alec Berg <alecaberg@chromium.org>
Diffstat (limited to 'board/host')
-rw-r--r--board/host/board.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/board/host/board.h b/board/host/board.h
index 0ae8e0c452..d33a4a56dc 100644
--- a/board/host/board.h
+++ b/board/host/board.h
@@ -56,10 +56,4 @@ enum charge_supplier {
/* supplier_priority table defined in board.c */
extern const int supplier_priority[];
-/* Set the active charge port. */
-void board_set_active_charge_port(int charge_port);
-
-/* Set the charge current limit. */
-void board_set_charge_limit(int charge_ma);
-
#endif /* __BOARD_H */