summaryrefslogtreecommitdiff
path: root/include/ec_commands.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/ec_commands.h')
-rw-r--r--include/ec_commands.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/ec_commands.h b/include/ec_commands.h
index 6cbfe4fd4c..4428648511 100644
--- a/include/ec_commands.h
+++ b/include/ec_commands.h
@@ -2591,6 +2591,7 @@ enum usb_pd_control_role {
USB_PD_CTRL_ROLE_TOGGLE_OFF = 2,
USB_PD_CTRL_ROLE_FORCE_SINK = 3,
USB_PD_CTRL_ROLE_FORCE_SOURCE = 4,
+ USB_PD_CTRL_ROLE_COUNT
};
enum usb_pd_control_mux {
@@ -2600,6 +2601,7 @@ enum usb_pd_control_mux {
USB_PD_CTRL_MUX_DP = 3,
USB_PD_CTRL_MUX_DOCK = 4,
USB_PD_CTRL_MUX_AUTO = 5,
+ USB_PD_CTRL_MUX_COUNT
};
struct ec_params_usb_pd_control {
@@ -2608,6 +2610,13 @@ struct ec_params_usb_pd_control {
uint8_t mux;
} __packed;
+struct ec_response_usb_pd_control {
+ uint8_t enabled;
+ uint8_t role;
+ uint8_t polarity;
+ uint8_t state;
+} __packed;
+
/* Write USB-PD device FW */
#define EC_CMD_USB_PD_FW_UPDATE 0x110