From dc9db9545c29b267f76ca8b3c0518e1458cbab30 Mon Sep 17 00:00:00 2001 From: Nehemiah Dureus Date: Wed, 27 Oct 2021 16:04:02 +0000 Subject: common: Make EC power delivery cmd more verbose Added more detailed output for `pd srccaps` for debugging convenience. For boards that have large enough memory, the output of srccaps will be formatted showing pdo flags, pdo type, etc.: Src 0: (Fixed) 5000mV/3000mA DRP UP USB DRD Src 1: (Aug3.0) 5000mV-2000mV/3000mA DRP UP USB DRD ... For boards that don't have enough memory to support this, defining CONFIG_CMD_PD_SRCCAPS_REDUCED_SIZE will default to displaying the old way of printing out srccaps, shown below: 0: 5000mV/3000mA 1: 5000mV-2000mV/3000mA ... BRANCH=None BUG=b:194402616 TEST=On Delbin, connected with ServoV4, execute `pd srccaps`, Built all boards (make -j buildall) Signed-off-by: Nehemiah Dureus Cq-Depend: chromium:3248341, chromium:3248342, chromium:3248343, chromium:3248344, chromium:3252409, chromium:3252413 Change-Id: I146f619c5baaf28b56a603c3b0a96fc9efbfb26a Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3248345 Reviewed-by: Boris Mittelberg --- docs/reducing_ec_image_size.md | 1 + 1 file changed, 1 insertion(+) (limited to 'docs') diff --git a/docs/reducing_ec_image_size.md b/docs/reducing_ec_image_size.md index a165f165ff..dd7d9bbcab 100644 --- a/docs/reducing_ec_image_size.md +++ b/docs/reducing_ec_image_size.md @@ -233,6 +233,7 @@ prj.conf file to disable the console command. | x | CONFIG_CMD_PD | `pd` | Used by FAFT PD | | | CONFIG_CMD_PD_DEV_DUMP_INFO | | Not a console command | | | CONFIG_CMD_PD_FLASH | `pd flash` | Not supported by TCPMv2 | +| | CONFIG_CMD_PD_SRCCAPS_REDUCED_SIZE | `pd srccaps` | Defining this reduces the verbosity of this command, saving bytes | | | CONFIG_CMD_PECI | `peci` | firmware_ECThermal uses `ectool tempsinfo` | | | CONFIG_CMD_PLL | `pll` | only used by lm4 chip | | | CONFIG_CMD_POWERINDEBUG | `powerindebug` | | -- cgit v1.2.1