Files
OpenCellular/include
Bill Richardson 32045efb23 Add LIGHTBAR_CMD_VERSION command to detect lightbar features.
Most systems don't have a lightbar. Those that do need a way to detect that
one exists. That's easily done by just sending a EC_CMD_LIGHTBAR_CMD command
to the EC and checking the result. If the response is
EC_RES_INVALID_COMMAND, there isn't a lightbar.

But what .cmd value should we use in struct ec_params_lightbar? Future
lightbar implementations (if any), could remove existing functions or add
new ones, so there isn't a safe choice.

This change adds a LIGHTBAR_CMD_VERSION operation to determine if any new
implementation exists. Future systems should return some useful information
in response to this command. Existing systems will return
EC_RES_INVALID_PARAM, which is enough to distinguish them.

BUG=chromium:239205
BRANCH=none
TEST=manual

make BOARD=link
make BOARD=link runtests

There are no user-visible changes in functionality to anything.

Change-Id: Ibe37f74a4dcbf68dd6bfd1963530aec907e67534
Signed-off-by: Bill Richardson <wfrichar@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/167549
Reviewed-by: Randall Spangler <rspangler@chromium.org>
2013-08-30 16:47:14 +00:00
..
2013-04-30 10:38:43 -07:00
2013-07-15 14:10:45 -07:00
2013-04-05 14:28:42 -07:00
2013-08-30 15:39:31 +00:00
2013-07-10 11:16:43 -07:00
2013-07-10 11:16:43 -07:00
2013-07-10 11:16:43 -07:00
2013-03-26 18:03:20 -07:00
2013-08-07 17:24:09 -07:00
2013-06-27 12:48:06 -07:00
2011-12-07 19:10:02 +00:00
2012-10-26 09:49:38 -07:00
2013-04-24 00:06:00 -07:00
2013-07-24 15:50:19 -07:00
2013-06-26 09:08:23 -07:00
2012-10-30 12:42:46 -07:00
2013-06-18 10:31:09 -07:00
2013-08-07 12:43:48 -07:00
2012-11-04 20:27:57 -08:00
2011-12-07 19:10:02 +00:00
2012-10-25 14:12:11 -07:00
2013-07-10 11:16:18 -07:00
2011-12-07 19:10:02 +00:00
2012-10-25 14:12:10 -07:00
2013-08-27 23:20:33 +00:00
2012-10-25 17:03:44 -07:00
2012-08-09 17:40:37 -07:00
2013-07-16 12:06:30 -07:00
2013-07-24 14:05:17 -07:00
2012-10-29 16:52:49 -07:00