diff options
Diffstat (limited to 'common/usb_common.c')
-rw-r--r-- | common/usb_common.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/common/usb_common.c b/common/usb_common.c index 372d55d2a0..59eaf7946b 100644 --- a/common/usb_common.c +++ b/common/usb_common.c @@ -1065,6 +1065,15 @@ void pd_send_host_event(int mask) } #endif /* defined(HAS_TASK_HOSTCMD) && !defined(TEST_BUILD) */ +#ifdef CONFIG_MKBP_EVENT +static int dp_alt_mode_entry_get_next_event(uint8_t *data) +{ + return EC_SUCCESS; +} +DECLARE_EVENT_SOURCE(EC_MKBP_EVENT_DP_ALT_MODE_ENTERED, + dp_alt_mode_entry_get_next_event); +#endif /* CONFIG_MKBP_EVENT */ + __overridable void pd_notify_dp_alt_mode_entry(int port) { if (IS_ENABLED(CONFIG_MKBP_EVENT)) { |