diff options
-rw-r--r-- | common/ec_features.c | 3 | ||||
-rw-r--r-- | include/ec_commands.h | 5 | ||||
-rw-r--r-- | util/ectool.c | 2 |
3 files changed, 10 insertions, 0 deletions
diff --git a/common/ec_features.c b/common/ec_features.c index 21b9445101..b6d20c5806 100644 --- a/common/ec_features.c +++ b/common/ec_features.c @@ -141,6 +141,9 @@ uint32_t get_feature_flags1(void) #ifdef CONFIG_USB_PD_TCPMV2 | EC_FEATURE_MASK_1(EC_FEATURE_TYPEC_CMD) #endif +#ifdef CONFIG_USB_PD_REQUIRE_AP_MODE_ENTRY + | EC_FEATURE_TYPEC_REQUIRE_AP_MODE_ENTRY +#endif ; return board_override_feature_flags1(result); } diff --git a/include/ec_commands.h b/include/ec_commands.h index c378847904..05f470f12a 100644 --- a/include/ec_commands.h +++ b/include/ec_commands.h @@ -1402,6 +1402,11 @@ enum ec_feature_code { EC_FEATURE_ISH = 40, /* New TCPMv2 TYPEC_ prefaced commands supported */ EC_FEATURE_TYPEC_CMD = 41, + /* + * The EC will wait for direction from the AP to enter Type-C alternate + * modes or USB4. + */ + EC_FEATURE_TYPEC_REQUIRE_AP_MODE_ENTRY = 42, }; #define EC_FEATURE_MASK_0(event_code) BIT(event_code % 32) diff --git a/util/ectool.c b/util/ectool.c index 78f7a89473..c98c83cd37 100644 --- a/util/ectool.c +++ b/util/ectool.c @@ -857,6 +857,8 @@ static const char * const ec_feature_names[] = { [EC_FEATURE_EFS2] = "Early Firmware Selection v2", [EC_FEATURE_ISH] = "Intel Integrated Sensor Hub", [EC_FEATURE_TYPEC_CMD] = "TCPMv2 Type-C commands", + [EC_FEATURE_TYPEC_REQUIRE_AP_MODE_ENTRY] = + "Host-controlled Type-C mode entry", }; int cmd_inventory(int argc, char *argv[]) |