diff options
author | Shawn Nematbakhsh <shawnn@chromium.org> | 2014-12-18 18:10:37 -0800 |
---|---|---|
committer | chrome-internal-fetch <chrome-internal-fetch@google.com> | 2014-12-20 08:54:18 +0000 |
commit | c69e9ceb31638b8f1dd42b82a903b4f7dfc27907 (patch) | |
tree | 66530af8ab32f81ed5432599e408e6fa867feedb /util | |
parent | f8019bff3a9a910f0e4a2b6da052c02ecba284e5 (diff) | |
download | chrome-ec-c69e9ceb31638b8f1dd42b82a903b4f7dfc27907.tar.gz |
pd: Modify EC_CMD_USB_PD_RW_HASH_ENTRY to return PD device image type
This addition allows the AP to query whether the PD device is currently
running from RO or RW FW.
BUG=chrome-os-partner:34599
TEST=Manual on Samus. Run 'ectool --name cros_pd infopddev 0' and verify
that correct RO/RW status of Zinger is printed. Verify that the output
matches the index printed by "pd 1 hash" on samus_pd console.
BRANCH=Samus
Change-Id: I4266cae931f5c7855ca0531717c4a18b138b2d62
Signed-off-by: Shawn Nematbakhsh <shawnn@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/236771
Reviewed-by: Alec Berg <alecaberg@chromium.org>
Diffstat (limited to 'util')
-rw-r--r-- | util/ectool.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util/ectool.c b/util/ectool.c index f049986bfb..7486580c0c 100644 --- a/util/ectool.c +++ b/util/ectool.c @@ -868,7 +868,7 @@ int cmd_pd_device_info(int argc, char *argv[]) rwp[0]); rwp += 4; } - printf("\n"); + printf(" CurImg:%s\n", image_names[r0->current_image]); } r1 = (struct ec_params_usb_pd_discovery_entry *)ec_inbuf; |