summaryrefslogtreecommitdiff
path: root/util/lbplay.c
diff options
context:
space:
mode:
authorRandall Spangler <rspangler@chromium.org>2012-07-12 10:40:51 -0700
committerGerrit <chrome-bot@google.com>2012-07-12 18:10:30 -0700
commit02d820786c2fda890411494ddbc9e6d2ddf90f32 (patch)
tree264cbf06f8a0bc14c52be1dae895abe6efd88b39 /util/lbplay.c
parentc304ff7d81a2a3072e5388584b232413a76f3343 (diff)
downloadchrome-ec-02d820786c2fda890411494ddbc9e6d2ddf90f32.tar.gz
Support new-style LPC command interface in EC, ectool
Both EC and ectool are still backwards-compatible to the old interface. BUG=chrome-os-partner:11275 TEST=manual From U-boot prompt: mkbp hash // test old host talking to new EC From root shell: ectool echash // test new host talking to new EC You can also update just the OS and use an old EC, and verify that 'ectool echash' still works, which tests a new host talking to an old EC. Change-Id: I2afbb208cb16836f842ba119b74b1ab6a38ce5d5 Signed-off-by: Randall Spangler <rspangler@chromium.org> Reviewed-on: https://gerrit.chromium.org/gerrit/27313
Diffstat (limited to 'util/lbplay.c')
-rw-r--r--util/lbplay.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/util/lbplay.c b/util/lbplay.c
index 1345a01b07..9121623f91 100644
--- a/util/lbplay.c
+++ b/util/lbplay.c
@@ -47,7 +47,7 @@ static void lb_cmd_noargs(enum lightbar_command cmd)
{
struct ec_params_lightbar_cmd param;
param.in.cmd = cmd;
- ec_command(EC_CMD_LIGHTBAR_CMD,
+ ec_command(EC_CMD_LIGHTBAR_CMD, 0,
&param, lb_command_paramcount[param.in.cmd].insize,
&param, lb_command_paramcount[param.in.cmd].outsize);
}
@@ -72,7 +72,7 @@ void lightbar_brightness(int newval)
struct ec_params_lightbar_cmd param;
param.in.cmd = LIGHTBAR_CMD_BRIGHTNESS;
param.in.brightness.num = newval;
- ec_command(EC_CMD_LIGHTBAR_CMD,
+ ec_command(EC_CMD_LIGHTBAR_CMD, 0,
&param, lb_command_paramcount[param.in.cmd].insize,
&param, lb_command_paramcount[param.in.cmd].outsize);
}
@@ -82,7 +82,7 @@ void lightbar_sequence(enum lightbar_sequence num)
struct ec_params_lightbar_cmd param;
param.in.cmd = LIGHTBAR_CMD_SEQ;
param.in.seq.num = num;
- ec_command(EC_CMD_LIGHTBAR_CMD,
+ ec_command(EC_CMD_LIGHTBAR_CMD, 0,
&param, lb_command_paramcount[param.in.cmd].insize,
&param, lb_command_paramcount[param.in.cmd].outsize);
}
@@ -94,7 +94,7 @@ void lightbar_reg(uint8_t ctrl, uint8_t reg, uint8_t val)
param.in.reg.ctrl = ctrl;
param.in.reg.reg = reg;
param.in.reg.value = val;
- ec_command(EC_CMD_LIGHTBAR_CMD,
+ ec_command(EC_CMD_LIGHTBAR_CMD, 0,
&param, lb_command_paramcount[param.in.cmd].insize,
&param, lb_command_paramcount[param.in.cmd].outsize);
}
@@ -107,7 +107,7 @@ void lightbar_rgb(int led, int red, int green, int blue)
param.in.rgb.red = red;
param.in.rgb.green = green;
param.in.rgb.blue = blue;
- ec_command(EC_CMD_LIGHTBAR_CMD,
+ ec_command(EC_CMD_LIGHTBAR_CMD, 0,
&param, lb_command_paramcount[param.in.cmd].insize,
&param, lb_command_paramcount[param.in.cmd].outsize);
}
@@ -121,7 +121,7 @@ void wait_for_ec_to_stop(void)
do {
usleep(100000);
param.in.cmd = LIGHTBAR_CMD_GET_SEQ;
- r = ec_command(EC_CMD_LIGHTBAR_CMD,
+ r = ec_command(EC_CMD_LIGHTBAR_CMD, 0,
&param,
lb_command_paramcount[param.in.cmd].insize,
&param,