From 9d38e4664150579503f70b03b35e1dd1bedb7920 Mon Sep 17 00:00:00 2001 From: Vincent Palatin Date: Fri, 12 Jan 2018 10:22:52 +0100 Subject: ectool: add servo v2 spi support Add a new transport for ectool to send host command V3 over the Servo v2 SPI interface using libftdi. Build this new communication mechanism only for the 'build' architecture as it has a dependency on libftdi, the new ectool binary is called ectool_servo. Fix the 'build' tools build if they don't have a source file matching their binary name. The serial number of the servo board can be passed in the 'name' parameter, e.g. : sudo ectool_servo --name=905537-00474 version Signed-off-by: Vincent Palatin BRANCH=none BUG=b:70320279 TEST=with ZerbleBarn connected to a servo V2, run: sudo ectool_servo version Change-Id: Ia7067d465a42f76695fed5932f32fac9a6d0988e Reviewed-on: https://chromium-review.googlesource.com/864164 Commit-Ready: Vincent Palatin Tested-by: Vincent Palatin Reviewed-by: Randall Spangler Reviewed-by: Shawn N --- util/comm-host.h | 1 + 1 file changed, 1 insertion(+) (limited to 'util/comm-host.h') diff --git a/util/comm-host.h b/util/comm-host.h index 1d3cb9e36d..a30f0f4adc 100644 --- a/util/comm-host.h +++ b/util/comm-host.h @@ -30,6 +30,7 @@ enum comm_interface { COMM_DEV = (1 << 0), COMM_LPC = (1 << 1), COMM_I2C = (1 << 2), + COMM_SERVO = (1 << 3), COMM_ALL = -1 }; -- cgit v1.2.1