summaryrefslogtreecommitdiff
path: root/include/ec_commands.h
diff options
context:
space:
mode:
authorDave Parker <dparker@chromium.org>2013-08-02 18:20:57 -0700
committerChromeBot <chrome-bot@google.com>2013-08-07 12:43:48 -0700
commit63a71a6adce21a0354cf8d2245170da824f7d8c2 (patch)
tree55cd196292622db198c5b2861e4359cb6228973c /include/ec_commands.h
parentf2b56fcb9fe078d5a29f1c3744e47e77240cd4e7 (diff)
downloadchrome-ec-63a71a6adce21a0354cf8d2245170da824f7d8c2.tar.gz
Peppy ectool led command
Glue between the existing ectool led command and the led control logic. BUG=chrome-os-partner:20776 BRANCH=peppy TEST=Manual. Run "ectool led" commands: Should pass: ectool led power blue|yellow|off|auto|blue=1 yellow=1 ectool led battery blue|yellow|off|auto|blue=1 yellow=1 Should fail: ectool led adapter <color> ectool led power|battery red|green|white Signed-off-by: Dave Parker <dparker@chromium.org> Change-Id: I2540940baa553866760dd9ae62278b6b845793ef Reviewed-on: https://gerrit.chromium.org/gerrit/64627
Diffstat (limited to 'include/ec_commands.h')
-rw-r--r--include/ec_commands.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/include/ec_commands.h b/include/ec_commands.h
index 054478743b..019c1ab88f 100644
--- a/include/ec_commands.h
+++ b/include/ec_commands.h
@@ -989,9 +989,17 @@ enum lightbar_command {
#define EC_CMD_LED_CONTROL 0x29
enum ec_led_id {
+ /* LED to indicate battery state of charge */
EC_LED_ID_BATTERY_LED = 0,
- EC_LED_ID_POWER_BUTTON_LED,
+ /*
+ * LED to indicate system power state (on or in suspend).
+ * May be on power button or on C-panel.
+ */
+ EC_LED_ID_POWER_LED,
+ /* LED on power adapter or its plug */
EC_LED_ID_ADAPTER_LED,
+
+ EC_LED_ID_COUNT
};
/* LED control flags */