diff options
| author | Benson Leung <bleung@chromium.org> | 2021-02-01 23:49:20 -0800 |
|---|---|---|
| committer | Benson Leung <bleung@chromium.org> | 2021-02-01 23:49:20 -0800 |
| commit | 14336151fdf1046853fea7c68aa116b8f47bb2a4 (patch) | |
| tree | 053700ec9ace2736a4c10d6b2ddb9f799fcb3c87 /include/linux | |
| parent | 29b01295a829fba7399ee84afff4e64660e49f04 (diff) | |
| parent | 8553a979fcd03448a4096c7d431b7ee1a52bfca3 (diff) | |
Merge remote-tracking branch 'origin/cros-ec-typec-for-5.12' into ib-usb-typec-chrome-platform-cros-ec-typec-changes-for-5.12
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/platform_data/cros_ec_commands.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/include/linux/platform_data/cros_ec_commands.h b/include/linux/platform_data/cros_ec_commands.h index 86376779ab31..9787715540c7 100644 --- a/include/linux/platform_data/cros_ec_commands.h +++ b/include/linux/platform_data/cros_ec_commands.h @@ -1286,6 +1286,16 @@ 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, + /* + * The EC will wait for an acknowledge from the AP after setting the + * mux. + */ + EC_FEATURE_TYPEC_MUX_REQUIRE_AP_ACK = 43, }; #define EC_FEATURE_MASK_0(event_code) BIT(event_code % 32) @@ -6054,6 +6064,13 @@ struct ec_params_charger_control { uint8_t allow_charging; } __ec_align_size1; +/* Get ACK from the USB-C SS muxes */ +#define EC_CMD_USB_PD_MUX_ACK 0x0603 + +struct ec_params_usb_pd_mux_ack { + uint8_t port; /* USB-C port number */ +} __ec_align1; + /*****************************************************************************/ /* * Reserve a range of host commands for board-specific, experimental, or |
