Skip to content

Commit e32b16c

Browse files
Prashant MalaniEnric Balletbo i Serra
authored andcommitted
platform/chrome: cros_ec: Update mux state bits
Sync the EC_CMD_USB_PD_MUX_INFO mux state bit fields with the Chrome EC code base. The newly added bit fields will be used for cros-ec-typec mux control. Signed-off-by: Prashant Malani <[email protected]> Signed-off-by: Enric Balletbo i Serra <[email protected]>
1 parent f28adb4 commit e32b16c

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

include/linux/platform_data/cros_ec_commands.h

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5207,11 +5207,15 @@ struct ec_params_usb_pd_mux_info {
52075207
} __ec_align1;
52085208

52095209
/* Flags representing mux state */
5210-
#define USB_PD_MUX_USB_ENABLED BIT(0) /* USB connected */
5211-
#define USB_PD_MUX_DP_ENABLED BIT(1) /* DP connected */
5212-
#define USB_PD_MUX_POLARITY_INVERTED BIT(2) /* CC line Polarity inverted */
5213-
#define USB_PD_MUX_HPD_IRQ BIT(3) /* HPD IRQ is asserted */
5214-
#define USB_PD_MUX_HPD_LVL BIT(4) /* HPD level is asserted */
5210+
#define USB_PD_MUX_NONE 0 /* Open switch */
5211+
#define USB_PD_MUX_USB_ENABLED BIT(0) /* USB connected */
5212+
#define USB_PD_MUX_DP_ENABLED BIT(1) /* DP connected */
5213+
#define USB_PD_MUX_POLARITY_INVERTED BIT(2) /* CC line Polarity inverted */
5214+
#define USB_PD_MUX_HPD_IRQ BIT(3) /* HPD IRQ is asserted */
5215+
#define USB_PD_MUX_HPD_LVL BIT(4) /* HPD level is asserted */
5216+
#define USB_PD_MUX_SAFE_MODE BIT(5) /* DP is in safe mode */
5217+
#define USB_PD_MUX_TBT_COMPAT_ENABLED BIT(6) /* TBT compat enabled */
5218+
#define USB_PD_MUX_USB4_ENABLED BIT(7) /* USB4 enabled */
52155219

52165220
struct ec_response_usb_pd_mux_info {
52175221
uint8_t flags; /* USB_PD_MUX_*-encoded USB mux state */

0 commit comments

Comments
 (0)