diff options
author | Aseda Aboagye <aaboagye@google.com> | 2019-03-28 10:43:52 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2019-06-24 20:48:47 +0000 |
commit | 99de2e458265cf59388b0eec54390b3c3d097624 (patch) | |
tree | 4306126dd77636ee6226460aa8575830ba9ff96c /include/usb_pd.h | |
parent | ddd1266082c7fc4a4002da1383c7052629e2c8f4 (diff) | |
download | chrome-ec-99de2e458265cf59388b0eec54390b3c3d097624.tar.gz |
common: pd_policy: Add notification for DP AltMode
This commit simply adds a notification that can be called when the
device enters DisplayPort Alternate mode or a DP attention VDM is
received. Calling the notification will send a MODE_CHANGE host event
which may wake the AP.
BUG=chromium:786721
BRANCH=firmware-nocturne-10984.B
TEST=With other patches, flash nocturne; suspend DUT, plug in powered
charge through hub, verify DUT wakes up.
Change-Id: Iaa221e69060a7d1015f7c1e2f6f053e6810a674a
Signed-off-by: Aseda Aboagye <aaboagye@google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1666366
Tested-by: Aseda Aboagye <aaboagye@chromium.org>
Reviewed-by: Diana Z <dzigterman@chromium.org>
Reviewed-by: Furquan Shaikh <furquan@chromium.org>
Commit-Queue: Aseda Aboagye <aaboagye@chromium.org>
Auto-Submit: Aseda Aboagye <aaboagye@chromium.org>
Diffstat (limited to 'include/usb_pd.h')
-rw-r--r-- | include/usb_pd.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/usb_pd.h b/include/usb_pd.h index 31cc1c023a..997a13ff3f 100644 --- a/include/usb_pd.h +++ b/include/usb_pd.h @@ -1983,6 +1983,12 @@ int pd_is_ufp(int port); int pd_is_debug_acc(int port); #endif +/* + * Notify the AP that we have entered into DisplayPort Alternate Mode. This + * sets a MODE_CHANGE host event which may wake the AP. + */ +void pd_notify_dp_alt_mode_entry(void); + /* ----- Logging ----- */ #ifdef CONFIG_USB_PD_LOGGING /** |