summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--common/ec_features.c3
-rw-r--r--include/ec_commands.h4
2 files changed, 7 insertions, 0 deletions
diff --git a/common/ec_features.c b/common/ec_features.c
index a45204b7a1..6778a3b36a 100644
--- a/common/ec_features.c
+++ b/common/ec_features.c
@@ -154,6 +154,9 @@ uint32_t get_feature_flags1(void)
#ifdef CONFIG_USB_MUX_AP_CONTROL
| EC_FEATURE_MASK_1(EC_FEATURE_TYPEC_AP_MUX_SET)
#endif
+#ifdef CONFIG_USB_PD_VDM_AP_CONTROL
+ | EC_FEATURE_MASK_1(EC_FEATURE_TYPEC_AP_VDM_SEND)
+#endif
;
return board_override_feature_flags1(result);
}
diff --git a/include/ec_commands.h b/include/ec_commands.h
index 7bb1f2b3d9..acb502ca99 100644
--- a/include/ec_commands.h
+++ b/include/ec_commands.h
@@ -1579,6 +1579,10 @@ enum ec_feature_code {
* The EC supports the AP directing mux sets for the board.
*/
EC_FEATURE_TYPEC_AP_MUX_SET = 45,
+ /*
+ * The EC supports the AP composing VDMs for us to send.
+ */
+ EC_FEATURE_TYPEC_AP_VDM_SEND = 46,
};
#define EC_FEATURE_MASK_0(event_code) BIT(event_code % 32)