diff options
author | Caveh Jalali <caveh@google.com> | 2017-07-31 17:07:47 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2017-08-03 19:23:13 -0700 |
commit | 28bfc8037156ba0f9c8189ef6e8b7c8a7d22d4cc (patch) | |
tree | 204fcc8cfa5867f2dc636a284ca7248563e57558 /include/ec_commands.h | |
parent | e01813adc7dab9737b13f4846c29c9770b39e888 (diff) | |
download | chrome-ec-28bfc8037156ba0f9c8189ef6e8b7c8a7d22d4cc.tar.gz |
PD_CONTROL: add subcommand to power up a TCPC.
add a subcommand to the PD_CONTROL message to power up a specific
TCPC. in practice, this typically just takes the TCPC out of sleep
mode for cases where sleep mode is controlled by the EC.
under the covers, board_set_tcpc_power_mode() gets a weak function
definition so we don't need to special case this everywhere.
TEST="make buildall" passes; "make tests" passes for reef.
BRANCH=none
BUG=b:35586895
Change-Id: Ib50e265d11eca10c3714049d8cfdf2657eff48c1
Signed-off-by: Caveh Jalali <caveh@google.com>
Reviewed-on: https://chromium-review.googlesource.com/596796
Reviewed-by: Shawn N <shawnn@chromium.org>
Diffstat (limited to 'include/ec_commands.h')
-rw-r--r-- | include/ec_commands.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/ec_commands.h b/include/ec_commands.h index 67d026118f..d15c213e98 100644 --- a/include/ec_commands.h +++ b/include/ec_commands.h @@ -4179,7 +4179,8 @@ enum ec_pd_control_cmd { PD_SUSPEND = 0, /* Suspend the PD chip (EC: stop talking to PD) */ PD_RESUME, /* Resume the PD chip (EC: start talking to PD) */ PD_RESET, /* Force reset the PD chip */ - PD_CONTROL_DISABLE /* Disable further calls to this command */ + PD_CONTROL_DISABLE, /* Disable further calls to this command */ + PD_CHIP_ON, /* Power on the PD chip */ }; struct __ec_align1 ec_params_pd_control { |