diff options
author | Shawn Nematbakhsh <shawnn@chromium.org> | 2015-06-08 13:58:47 -0700 |
---|---|---|
committer | ChromeOS Commit Bot <chromeos-commit-bot@chromium.org> | 2015-06-10 19:48:08 +0000 |
commit | e05ed041cfe60db7d1bff5424d4579a52aea402f (patch) | |
tree | 1fd7a6e78c42682b1f9eb331c12084a4b44c3b56 /board/host/board.h | |
parent | 5d7c4f0cd6b7b020e70c9f9ec5f60a8457b90f12 (diff) | |
download | chrome-ec-e05ed041cfe60db7d1bff5424d4579a52aea402f.tar.gz |
charger: Move USB charger / BC1.2 task to common code
Move the task responsible for detection of USB chargers to common code
to reduce code duplication.
BUG=chrome-os-partner:40920
TEST=Manual on samus_pd. Plug USB charger, verify detection is correct
on both charge ports.
BRANCH=None
Change-Id: I362f8b5b51741509e459c66928131f1f6d2a3b1d
Signed-off-by: Shawn Nematbakhsh <shawnn@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/276210
Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
Reviewed-by: Alec Berg <alecaberg@chromium.org>
Diffstat (limited to 'board/host/board.h')
-rw-r--r-- | board/host/board.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/board/host/board.h b/board/host/board.h index 677237ab43..99a5798e02 100644 --- a/board/host/board.h +++ b/board/host/board.h @@ -39,8 +39,8 @@ enum adc_channel { ADC_CH_COUNT }; -/* Charge suppliers */ -enum charge_supplier { +/* Fake test charge suppliers */ +enum { CHARGE_SUPPLIER_TEST1, CHARGE_SUPPLIER_TEST2, CHARGE_SUPPLIER_TEST3, @@ -49,11 +49,10 @@ enum charge_supplier { CHARGE_SUPPLIER_TEST6, CHARGE_SUPPLIER_TEST7, CHARGE_SUPPLIER_TEST8, - CHARGE_SUPPLIER_TEST9, - CHARGE_SUPPLIER_COUNT + CHARGE_SUPPLIER_TEST_COUNT }; -/* supplier_priority table defined in board.c */ +/* Custom charge_manager priority table is defined in test code */ extern const int supplier_priority[]; /* Standard-current Rp */ |