platform/chrome: cros_ec_lightbar - Add lightbar program feature to sysfs
authorEric Caruso <ejcaruso@chromium.org>
Tue, 16 May 2017 15:46:48 +0000 (17:46 +0200)
committerBenson Leung <bleung@chromium.org>
Fri, 23 Jun 2017 23:12:17 +0000 (16:12 -0700)
commitbe3ebebf4377fe924f0419f78fc82cf01a31e692
treef088715b93ea33ef429ff81cb66ed9bd0ce185de
parenta6df7798d03b29095723c5fe9174ee2b53135ed0
platform/chrome: cros_ec_lightbar - Add lightbar program feature to sysfs

Add a program feature so we can upload and run programs for lightbar
sequences. We should be able to use this to shift sequences out of the
EC and save space there.

  $ cat <suitable program bin> > /sys/devices/.../cros_ec/program
  $ echo program > /sys/devices/.../cros_ec/sequence

Signed-off-by: Eric Caruso <ejcaruso@chromium.org>
Signed-off-by: Guenter Roeck <groeck@chromium.org>
Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
Acked-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Benson Leung <bleung@chromium.org>
drivers/platform/chrome/cros_ec_lightbar.c
include/linux/mfd/cros_ec_commands.h