History

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.

Prashant Malani committed 6 years ago

Commit e32b16c1 parent f28adb41 file · +9 −5Browse files

Showing the changes to include/linux (1 of 1 file). Show all

Unified · Split

include/linux/platform_data/cros_ec_commands.h+9−5
@@ -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
5216struct ec_response_usb_pd_mux_info {5220struct 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 */

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t