chrome-ec/util
Daisuke Nojiri 6923c89ca9 ectool: Allow usbpdpower command to take port #
Currently, usbpdpower command enumerates all USB-C ports found
on the board. Since barrel jack adapters are not recognized as
a USB-C port, they're not handled by the command.

This patch allows the command to take a port number as a new
parameter.

Signed-off-by: Daisuke Nojiri <dnojiri@chromium.org>

BUG=chromium:841944
BRANCH=none
TEST=Verify ectool usbpdpower 1 return 'Port 1: Disconnected' and
'Port 1: SNK (not charging)' without and with a BJ adapter connected
respectively on Fizz.

Change-Id: If3437c8f3f9952a4cc6004614ccff7bb6bbb4de5
Reviewed-on: https://chromium-review.googlesource.com/1217606
Commit-Ready: ChromeOS CL Exonerator Bot <chromiumos-cl-exonerator@appspot.gserviceaccount.com>
Tested-by: Daisuke Nojiri <dnojiri@chromium.org>
Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/1230993
Reviewed-by: Martin Roth <martinroth@chromium.org>
Commit-Queue: Martin Roth <martinroth@chromium.org>
Tested-by: Martin Roth <martinroth@chromium.org>
2018-09-18 15:38:17 +00:00
..
ec3po Revert "ec3po: quit console & interpreter loop when parent process changes." 2018-08-27 23:10:05 +00:00
lock file_lock: Add fallback directory 2016-06-02 17:02:51 -07:00
openocd util: flash_ec: Add support to flash npcx7_evb with npcx7m7x chip 2018-01-18 10:11:50 -08:00
signer signer: modify publishing instructions 2018-08-30 14:42:04 -07:00
uut util/uut: Fix resource leak 2018-07-30 23:07:58 -07:00
battery_temp battery_temp: initial commit. 2018-03-29 19:51:40 -07:00
bin2h.sh cr50: prepare using blobs as RMA key sources 2018-04-03 18:47:04 -07:00
build.mk common/bootblock: Pack bootblock in EC image. 2018-07-02 04:34:53 -07:00
cbi-util.c Add DRAM part number support to CBI 2018-08-08 13:45:46 -07:00
comm-dev.c ectool: use poll interface 2018-01-23 05:25:08 -08:00
comm-host.c ectool: use poll interface 2018-01-23 05:25:08 -08:00
comm-host.h ectool: use poll interface 2018-01-23 05:25:08 -08:00
comm-i2c.c util: Fix return value of ec_command 2014-11-17 16:34:16 +00:00
comm-lpc.c ectool: Revert "ectool: Remove CROS_EC_DEV_IOCRDMEM" 2016-04-22 17:17:56 -07:00
comm-servo-spi.c ectool: fix error codes for servo v2 spi support 2018-03-06 14:38:53 -08:00
config_option_check.py config_option_check.py: Ignore hidden files. 2015-09-18 16:34:20 -07:00
cros_ec_dev.h ectool: use poll interface 2018-01-23 05:25:08 -08:00
ec_flash.c Allow bigger flash write commands 2013-07-01 16:14:16 -07:00
ec_flash.h cleanup: fix all the header guards 2015-06-18 19:07:00 +00:00
ec_panicinfo.c util: Add ec_parse_panicinfo tool to parse binary panicinfo 2016-09-06 22:02:27 -07:00
ec_panicinfo.h util: Add ec_parse_panicinfo tool to parse binary panicinfo 2016-09-06 22:02:27 -07:00
ec_parse_panicinfo.c util: Add ec_parse_panicinfo tool to parse binary panicinfo 2016-09-06 22:02:27 -07:00
ec_sb_firmware_update.c pyro: battery FW update tool modify for learning mode 2017-03-16 22:28:21 -07:00
ec_sb_firmware_update.h cleanup: fix all the header guards 2015-06-18 19:07:00 +00:00
ec_uartd.c use _DEFAULT_SOURCE for newer glibc 2015-12-08 12:28:57 -08:00
ecst.c util/ecst: Fail on partial reads 2018-08-15 16:37:36 -07:00
ecst.h util/ecst: refactor path mangling 2018-05-18 10:05:13 -07:00
ectool.c ectool: Allow usbpdpower command to take port # 2018-09-18 15:38:17 +00:00
ectool.h ectool: Add keyscan test features 2012-11-01 14:09:34 -07:00
ectool_keyscan.c util/ectool_keyscan: don't pretend to report passing tests 2018-08-15 16:37:12 -07:00
export_taskinfo.c util: Remove duplicate 'const' in export_taskinfo.c 2017-11-20 15:08:44 -08:00
flash_ec flash_ec: Look for npcx_monitor.bin in the same dir as ec.bin 2018-09-06 18:39:03 +00:00
flash_pd.py Remove obsolete board-specific code 2015-06-10 18:24:05 +00:00
g_regs cr50: rename hw generated register definitions file 2015-11-21 13:12:18 -08:00
gen_emmc_transfer_data.c common/bootblock: Pack bootblock in EC image. 2018-07-02 04:34:53 -07:00
gen_touchpad_hash.c update_fw: Store complete touchpad FW hash 2017-09-15 10:50:27 -07:00
genvif.c servo_v4: add per port dualrole setting 2018-08-15 20:36:10 -07:00
getversion.sh util: do not generate redundant CROS_EC_VERSION 2018-05-22 21:57:12 -07:00
host_command_check.sh util: do not run host command check unless needed 2017-12-08 20:37:23 -08:00
inject-keys.py ectool: add inject-keys.py 2016-02-05 06:02:49 -08:00
iteflash.c iteflash : fix program page address 2018-09-03 02:20:50 -07:00
lbcc.c ec: fix a clang warning by use a unused variable. 2015-04-20 23:02:02 +00:00
lbplay.c Fix some stupid. 2014-02-17 17:35:43 +00:00
misc_util.c util/misc_util: Fix unchecked error 2017-10-19 05:15:31 -07:00
misc_util.h ectool: Upgrade to improved ioctl format 2016-04-12 19:00:36 -07:00
powerd_lock.c ec: Create lockfile in /run/lock/power_override. 2017-12-06 20:24:12 -08:00
powerd_lock.h cleanup: fix all the header guards 2015-06-18 19:07:00 +00:00
presubmit_check.sh presubmit_check: Check unittests results on extra/stack_analyzer 2017-08-29 22:08:20 -07:00
run_ects.py eCTS: Add I2C suite to run_ects.py 2017-06-28 21:50:50 -07:00
run_host_test ec: Make it possible to run tests with AddressSanitizer enabled 2018-06-28 07:06:46 -07:00
stm32mon.c stm32mon: don't set UART attributes when programming over Cr50 2018-08-18 17:19:40 -07:00
tagbranch.sh util: fix bug in tagbranch 2017-09-15 08:46:32 -07:00
temp_metrics.conf temp_metrics: use fanduty 0 to enable fan 2018-03-16 15:56:23 -07:00
test-inject-keys.sh ectool: add inject-keys.py 2016-02-05 06:02:49 -08:00
unpack_ftb.py util/unpack_ftb.py: a script to convert FTB file into bin file 2018-03-22 10:58:26 -07:00