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.
Showing the changes to include/linux (1 of 1 file). Show all
Unified · Split
| @@ -5207,11 +5207,15 @@ struct ec_params_usb_pd_mux_info { · 5206 unmodified lines | |||
| 5207 | } __ec_align1; | 5207 | } __ec_align1; |
| 5208 | 5208 | ||
| 5209 | /* Flags representing mux state */ | 5209 | /* Flags representing mux state */ |
| 5210 | #define USB_PD_MUX_USB_ENABLED BIT(0) /* USB connected */ | 5210 | #define USB_PD_MUX_NONE 0 /* Open switch */ |
| 5211 | #define USB_PD_MUX_DP_ENABLED BIT(1) /* DP connected */ | 5211 | #define USB_PD_MUX_USB_ENABLED BIT(0) /* USB connected */ |
| 5212 | #define USB_PD_MUX_POLARITY_INVERTED BIT(2) /* CC line Polarity inverted */ | 5212 | #define USB_PD_MUX_DP_ENABLED BIT(1) /* DP connected */ |
| 5213 | #define USB_PD_MUX_HPD_IRQ BIT(3) /* HPD IRQ is asserted */ | 5213 | #define USB_PD_MUX_POLARITY_INVERTED BIT(2) /* CC line Polarity inverted */ |
| 5214 | #define USB_PD_MUX_HPD_LVL BIT(4) /* HPD level is asserted */ | 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 */ | ||
| 5215 | 5219 | ||
| 5216 | struct ec_response_usb_pd_mux_info { | 5220 | struct ec_response_usb_pd_mux_info { |
| 5217 | uint8_t flags; /* USB_PD_MUX_*-encoded USB mux state */ | 5221 | uint8_t flags; /* USB_PD_MUX_*-encoded USB mux state */ |