mfd: cros_ec: Add host_sleep_event_v1 command
authorEvan Green <evgreen@chromium.org>
Wed, 3 Apr 2019 21:34:27 +0000 (14:34 -0700)
committerLee Jones <lee.jones@linaro.org>
Tue, 14 May 2019 07:13:26 +0000 (08:13 +0100)
commitafe2bb5c4b6227a347be60c70df2890c3f57553d
tree0d72436f1f9ec967d08851bba66e015a859a0bbf
parent49a65e3c276c5ddc7d310257732bf9972ab64351
mfd: cros_ec: Add host_sleep_event_v1 command

Introduce the command and response structures for the second revision
of the host sleep event. These structures are part of a new EC change
that enables detection of failure to enter S0ix. The EC waits a
kernel-specified timeout (or a default amount of time) for the S0_SLP
pin to change, and wakes the system if that change does not occur in
time.

Signed-off-by: Evan Green <evgreen@chromium.org>
Reviewed-by: Rajat Jain <rajatja@chromium.org>
Reviewed-by: Guenter Roeck <groeck@chromium.org>
Acked-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
include/linux/mfd/cros_ec_commands.h