diff options
author | Jameson Thies <jthies@google.com> | 2022-05-19 00:29:09 +0000 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-05-21 23:48:59 +0000 |
commit | d20ada6dab1ded4b3866232976a3ee9b73696d5e (patch) | |
tree | cf6d466014786dc3d6bb9fa3b935b3a6d97adfc0 /include/usb_pe_sm.h | |
parent | adfd6d52b0792cd119319f88b9c2a9789c7c9105 (diff) | |
download | chrome-ec-d20ada6dab1ded4b3866232976a3ee9b73696d5e.tar.gz |
TCPMV2: Add power state change to status
The Status Data Block (SDB) was updated in USB PD Revision 3.1 to
include a Power State Change field which includes New Power State and
New Power State Indicator fields. This CL updates dpm_get_status_msg to
include the Power State Change field.
BUG=b:227236917
TEST=make try_build_boards and make runhosttests
BRANCH=None
Signed-off-by: Jameson Thies <jthies@google.com>
Change-Id: I05ffaa0a66f19bea781b16ab381930700c7f8e47
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3632817
Reviewed-by: Diana Z <dzigterman@chromium.org>
Reviewed-by: Abe Levkoy <alevkoy@chromium.org>
Diffstat (limited to 'include/usb_pe_sm.h')
-rw-r--r-- | include/usb_pe_sm.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/usb_pe_sm.h b/include/usb_pe_sm.h index aef262ef49..4018f16322 100644 --- a/include/usb_pe_sm.h +++ b/include/usb_pe_sm.h @@ -192,6 +192,14 @@ int pe_set_ado(int port, uint32_t data); */ void pe_clear_ado(int port); +/** + * Gets port partner's RMDO from the PE state. + * + * @param port USB-C port number + * @return port partner's Revision Message Data Object (RMDO). + */ +struct rmdo pe_get_partner_rmdo(int port); + #ifdef TEST_BUILD /** * Clears all internal port data, as we would on a detach event |