summaryrefslogtreecommitdiff
path: root/util/comm-i2c.c
diff options
context:
space:
mode:
authorRandall Spangler <rspangler@chromium.org>2014-07-14 16:12:32 -0700
committerchrome-internal-fetch <chrome-internal-fetch@google.com>2014-07-16 07:16:47 +0000
commit241cc626850175acac7a2e95cddbeb269f75c1ba (patch)
tree96f9ae3d712371c976286d574302aa8f78aa59e7 /util/comm-i2c.c
parent9ef82030e6a005df990f8f2924cf54076cd2e8da (diff)
downloadchrome-ec-241cc626850175acac7a2e95cddbeb269f75c1ba.tar.gz
samus: add options for device passthru and interface
This allows sending host commands to the PD chip through the EC. The --interface option allows forcing a particular host interface. This is necessary at present because the crosec device driver doesn't support host protocol v3 so only has 8-bit command numbers. BUG=chrome-os-partner:30079 BRANCH=none TEST=from EC console, ectool version -> prints EC version ectool --interface=lpc --dev=0 version -> prints EC version ectool --interface=lpc --dev=1 version -> prints PD version ectool --interface=lpc --dev=2 version -> prints error ectool --interface=i2c version -> can't find EC ectool --interface=dev version -> prints EC version Change-Id: I9dd10578dac77e3e104d19e2f37759814eec6ca2 Signed-off-by: Randall Spangler <rspangler@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/207948
Diffstat (limited to 'util/comm-i2c.c')
-rw-r--r--util/comm-i2c.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/comm-i2c.c b/util/comm-i2c.c
index b305823198..a6fc8691dd 100644
--- a/util/comm-i2c.c
+++ b/util/comm-i2c.c
@@ -206,7 +206,7 @@ int comm_init_i2c(void)
free(file_path);
- ec_command = ec_command_i2c;
+ ec_command_proto = ec_command_i2c;
ec_max_outsize = ec_max_insize = EC_PROTO2_MAX_PARAM_SIZE;
return 0;