summaryrefslogtreecommitdiff
path: root/include/host_command.h
diff options
context:
space:
mode:
authorShawn Nematbakhsh <shawnn@chromium.org>2015-09-28 15:07:11 -0700
committerchrome-bot <chrome-bot@chromium.org>2015-10-05 20:31:18 -0700
commit1870b30a634db0f9299877380083c8b42561adbf (patch)
treede90cfff562dae9c75a8d334233e3a4144ac77e3 /include/host_command.h
parent5d82dbc4910fcbcfceb8911864790c146a461684 (diff)
downloadchrome-ec-1870b30a634db0f9299877380083c8b42561adbf.tar.gz
pd: Allow EC to request PD hibernate via host command
On some systems, we may wish to have the PD follow the EC into hibernate. Add a status field to EC_CMD_PD_EXCHANGE_STATUS to support this. BUG=chrome-os-partner:45010 TEST=Manual on glados with subsequent commit. Run 'hibernate' on EC console, verify that both EC and PD go to hibernate. Plug zinger and verify that both EC and PD wake, AP boots, and battery begins charging. BRANCH=None Change-Id: I0476bc8a47ffb0fe113dccda9d4f8074105c1c84 Signed-off-by: Shawn Nematbakhsh <shawnn@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/302712 Commit-Ready: Shawn N <shawnn@chromium.org> Tested-by: Shawn N <shawnn@chromium.org> Reviewed-by: Shawn N <shawnn@chromium.org>
Diffstat (limited to 'include/host_command.h')
-rw-r--r--include/host_command.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/host_command.h b/include/host_command.h
index 08141e2204..c987df561b 100644
--- a/include/host_command.h
+++ b/include/host_command.h
@@ -216,6 +216,12 @@ void host_throttle_cpu(int throttle);
void host_command_pd_send_status(enum pd_charge_state new_chg_state);
/**
+ * Signal host command task to inform PD MCU that the EC is going to hibernate,
+ * which will normally cause the PD MCU to hibernate also.
+ */
+void host_command_pd_request_hibernate(void);
+
+/**
* Get the active charge port from the PD
*
* @return -1 == none/unknown, 0 == left, 1 == right.