summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorEric Caruso <ejcaruso@chromium.org>2015-01-07 10:42:23 -0800
committerChromeOS Commit Bot <chromeos-commit-bot@chromium.org>2015-01-10 00:51:14 +0000
commit0c95dc3022e65428188403715513a7d5fc77a1f1 (patch)
treeeaa3102b544523b66c0589e004405ebe2ca84245 /include
parent8c8f66197f80f94fa9de9d2166084c81ee368e3e (diff)
downloadchrome-ec-0c95dc3022e65428188403715513a7d5fc77a1f1.tar.gz
lightbar: Don't let EC control suspend/resume sequence
If the EC controls the lightbar and sets the sequence when it notices the chipset transitioning between states, we can't make exceptions for cases where we don't want to activate the lightbar, such as in dark resume. Instead, let's make it a separate command that we expect from the kernel. BUG=chrome-os-partner:32181 TEST=build on samus, verify lightbar does correct thing with manual control set BRANCH=ToT Signed-off-by: Eric Caruso <ejcaruso@chromium.org> Change-Id: I5dc619cbbf2498e2ef03ce622831b33e14c7c495 Reviewed-on: https://chromium-review.googlesource.com/239215 Reviewed-by: Duncan Laurie <dlaurie@chromium.org> Reviewed-by: Bill Richardson <wfrichar@chromium.org>
Diffstat (limited to 'include')
-rw-r--r--include/ec_commands.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/include/ec_commands.h b/include/ec_commands.h
index 55aef77a7a..898d502c6c 100644
--- a/include/ec_commands.h
+++ b/include/ec_commands.h
@@ -1073,7 +1073,7 @@ struct ec_params_lightbar {
struct {
/* no args */
} dump, off, on, init, get_seq, get_params_v0, get_params_v1,
- version, get_brightness, get_demo;
+ version, get_brightness, get_demo, suspend, resume;
struct {
uint8_t num;
@@ -1091,6 +1091,10 @@ struct ec_params_lightbar {
uint8_t led;
} get_rgb;
+ struct {
+ uint8_t enable;
+ } manual_suspend_ctrl;
+
struct lightbar_params_v0 set_params_v0;
struct lightbar_params_v1 set_params_v1;
struct lightbar_program set_program;
@@ -1127,7 +1131,7 @@ struct ec_response_lightbar {
/* no return params */
} off, on, init, set_brightness, seq, reg, set_rgb,
demo, set_params_v0, set_params_v1,
- set_program;
+ set_program, manual_suspend_ctrl, suspend, resume;
};
} __packed;
@@ -1152,6 +1156,9 @@ enum lightbar_command {
LIGHTBAR_CMD_GET_PARAMS_V1 = 16,
LIGHTBAR_CMD_SET_PARAMS_V1 = 17,
LIGHTBAR_CMD_SET_PROGRAM = 18,
+ LIGHTBAR_CMD_MANUAL_SUSPEND_CTRL = 19,
+ LIGHTBAR_CMD_SUSPEND = 20,
+ LIGHTBAR_CMD_RESUME = 21,
LIGHTBAR_NUM_CMDS
};