diff options
author | Bill Richardson <wfrichar@chromium.org> | 2014-11-26 12:40:05 -0800 |
---|---|---|
committer | chrome-internal-fetch <chrome-internal-fetch@google.com> | 2014-12-11 04:23:33 +0000 |
commit | 401498bb6a1c38771720c84cc1d58f2f5dbf7ac0 (patch) | |
tree | 068ac939a9d941cf25b0a3094308a9917af201fa /include/host_command.h | |
parent | 1b1c3089afada7b53e7836ce2b98c157f36a44a8 (diff) | |
download | chrome-ec-401498bb6a1c38771720c84cc1d58f2f5dbf7ac0.tar.gz |
lightbar: ask the PD MCU for the charge direction
This exposes the pd_exchange_status() function and lets it
return the charge port that the PD reports, so that the lightbar
TAP sequence can decide which direction to display.
BUG=chrome-os-partner:32227
BRANCH=ToT, samus
TEST=make buildall -j
Change-Id: I78b57fbeaaf38fee15c86eca4d90abce77e2f722
Signed-off-by: Bill Richardson <wfrichar@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/232092
Reviewed-by: Alec Berg <alecaberg@chromium.org>
Diffstat (limited to 'include/host_command.h')
-rw-r--r-- | include/host_command.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/host_command.h b/include/host_command.h index a25f06d10a..e833b96101 100644 --- a/include/host_command.h +++ b/include/host_command.h @@ -214,6 +214,16 @@ void host_throttle_cpu(int throttle); void host_command_pd_send_status(void); /** + * Ask the PD MCU for its status, obtaining the current charge_port as a + * side-effect (-1 means none or don't know). + * + * @param charge_port If present, updated with the current charge port: + * -1 == none/unknown, 0 == left, 1 == right. + */ +void pd_exchange_status(int *charge_port); + + +/** * Send host command to PD MCU. * * @param command Host command number |