Merge tag 'tag-chrome-platform-for-v4.20' of git://git.kernel.org/pub/scm/linux/kerne...
[sfrench/cifs-2.6.git] / include / linux / mfd / cros_ec_commands.h
index 88100bddf1abb79ed3649caec7b81fa31ac3fe18..9a9631f0559e295763105520c1918abd9895b6dd 100644 (file)
@@ -2217,6 +2217,7 @@ struct ec_response_get_next_event_v1 {
 /* Switches */
 #define EC_MKBP_LID_OPEN       0
 #define EC_MKBP_TABLET_MODE    1
+#define EC_MKBP_BASE_ATTACHED  2
 
 /*****************************************************************************/
 /* Temperature sensor commands */
@@ -3187,6 +3188,16 @@ struct ec_params_usb_pd_info_request {
        uint8_t port;
 } __packed;
 
+/*
+ * This command will return the number of USB PD charge port + the number
+ * of dedicated port present.
+ * EC_CMD_USB_PD_PORTS does NOT include the dedicated ports
+ */
+#define EC_CMD_CHARGE_PORT_COUNT 0x0105
+struct ec_response_charge_port_count {
+       uint8_t port_count;
+} __packed;
+
 /* Read USB-PD Device discovery info */
 #define EC_CMD_USB_PD_DISCOVERY 0x0113
 struct ec_params_usb_pd_discovery_entry {