Merge tag 'v4.11-rc5' into next
[sfrench/cifs-2.6.git] / include / linux / mfd / cros_ec_commands.h
index 3ceebf6b9afb3abbe0022c14656e9f6e41ab51f4..c93e7e0300efa6507cd96925c2130378a0573fca 100644 (file)
@@ -1441,7 +1441,8 @@ enum motionsensor_type {
        MOTIONSENSE_TYPE_PROX = 3,
        MOTIONSENSE_TYPE_LIGHT = 4,
        MOTIONSENSE_TYPE_ACTIVITY = 5,
-       MOTIONSENSE_TYPE_MAX
+       MOTIONSENSE_TYPE_BARO = 6,
+       MOTIONSENSE_TYPE_MAX,
 };
 
 /* List of motion sensor locations. */
@@ -2551,6 +2552,20 @@ struct ec_params_ext_power_current_limit {
        uint32_t limit; /* in mA */
 } __packed;
 
+/* Inform the EC when entering a sleep state */
+#define EC_CMD_HOST_SLEEP_EVENT 0xa9
+
+enum host_sleep_event {
+       HOST_SLEEP_EVENT_S3_SUSPEND   = 1,
+       HOST_SLEEP_EVENT_S3_RESUME    = 2,
+       HOST_SLEEP_EVENT_S0IX_SUSPEND = 3,
+       HOST_SLEEP_EVENT_S0IX_RESUME  = 4
+};
+
+struct ec_params_host_sleep_event {
+       uint8_t sleep_event;
+} __packed;
+
 /*****************************************************************************/
 /* Smart battery pass-through */