mfd: cros_ec: Send suspend state notification to EC
Notify EC when going to or returning from suspend so that proper actions related to wake events can be taken. Signed-off-by: Shawn Nematbakhsh <shawnn@chromium.org> Signed-off-by: Thierry Escande <thierry.escande@collabora.com> Signed-off-by: Lee Jones <lee.jones@linaro.org>
This commit is contained in:

committed by
Lee Jones

parent
a9eb186e13
commit
f00c06fd98
@@ -2547,6 +2547,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 */
|
||||
|
||||
|
Reference in New Issue
Block a user