summaryrefslogtreecommitdiff
path: root/util/comm-dev.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-dev.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-dev.c')
-rw-r--r--util/comm-dev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/comm-dev.c b/util/comm-dev.c
index eb3a4f9b47..ab4f9bca9e 100644
--- a/util/comm-dev.c
+++ b/util/comm-dev.c
@@ -102,7 +102,7 @@ int comm_init_dev(void)
return 3;
}
- ec_command = ec_command_dev;
+ ec_command_proto = ec_command_dev;
if (ec_readmem_dev(EC_MEMMAP_ID, 2, version) == 2 &&
version[0] == 'E' && version[1] == 'C')
ec_readmem = ec_readmem_dev;