summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVijay Hiremath <vijay.p.hiremath@intel.com>2019-06-27 16:28:26 -0700
committerCommit Bot <commit-bot@chromium.org>2019-06-28 22:00:00 +0000
commita2454fb3674c948fa0eb78a305cfb184c3fade60 (patch)
treeb895e442ca6fe2a4ca7abf011ccf9223c4908608
parentf8220b934619517a5034ccbf7829df13578fb4d9 (diff)
downloadchrome-ec-a2454fb3674c948fa0eb78a305cfb184c3fade60.tar.gz
ectool: Update locatechip host command for new topology added in TCPC
Updated the locatechip host command by adding EMBEDDED bus type & reserved byte print. BUG=none BRANCH=none TEST=Tested on ICLRVP, able to get the USB2 & USB3 info on reserved byte Change-Id: I1cf5ebf91d82cc3b5a290d7096464f21b17b8041 Signed-off-by: Vijay Hiremath <vijay.p.hiremath@intel.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1681033 Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
-rw-r--r--util/ectool.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/util/ectool.c b/util/ectool.c
index 48c2eeb059..14ccef6a0e 100644
--- a/util/ectool.c
+++ b/util/ectool.c
@@ -6281,12 +6281,13 @@ static void cmd_locate_chip_help(const char *const cmd)
static const char *bus_type[] = {
"I2C",
+ "EMBEDDED"
};
int cmd_locate_chip(int argc, char *argv[])
{
struct ec_params_locate_chip p;
- struct ec_response_locate_chip r;
+ struct ec_response_locate_chip r = {0};
char *e;
int rv;
@@ -6341,6 +6342,9 @@ int cmd_locate_chip(int argc, char *argv[])
*/
printf("Bus: %s; Port: %d; Address: 0x%02x (7-bit format)\n",
bus_type[r.bus_type], r.i2c_info.port, r.i2c_info.addr);
+
+ printf("reserved: 0x%x\n", r.reserved);
+
return 0;
}