diff options
author | Shawn Nematbakhsh <shawnn@chromium.org> | 2015-09-28 15:07:11 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2015-10-05 20:31:18 -0700 |
commit | 1870b30a634db0f9299877380083c8b42561adbf (patch) | |
tree | de90cfff562dae9c75a8d334233e3a4144ac77e3 /board/glados_pd | |
parent | 5d82dbc4910fcbcfceb8911864790c146a461684 (diff) | |
download | chrome-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 'board/glados_pd')
-rw-r--r-- | board/glados_pd/board.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/board/glados_pd/board.c b/board/glados_pd/board.c index 42e8958538..38c3668b15 100644 --- a/board/glados_pd/board.c +++ b/board/glados_pd/board.c @@ -140,5 +140,5 @@ static int ec_status_host_cmd(struct host_cmd_handler_args *args) return EC_RES_SUCCESS; } DECLARE_HOST_COMMAND(EC_CMD_PD_EXCHANGE_STATUS, ec_status_host_cmd, - EC_VER_MASK(1)); + EC_VER_MASK(EC_VER_PD_EXCHANGE_STATUS)); |