summaryrefslogtreecommitdiff
path: root/zephyr/Kconfig.usbc
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2021-02-04 14:43:22 -0700
committerCommit Bot <commit-bot@chromium.org>2021-02-05 18:02:02 +0000
commit19f5f16aabec08d5dd5472f208b5ab617287ce47 (patch)
tree6467bdbf6e7b40d77c2938e551893795b8c174cc /zephyr/Kconfig.usbc
parentf529543ee11ef105b904deaba9c7a8c0f5d76454 (diff)
downloadchrome-ec-19f5f16aabec08d5dd5472f208b5ab617287ce47.tar.gz
zephyr: Add support for PD logging
Enable support for this command. It is not actually used on volteer but seems to be commonly used. BUG=b:175434113 BRANCH=none TEST=build and boot zephyr on volteer and see no errors from EC_CMD_PD_GET_LOG_ENTRY command (0x115) Also test ectool: localhost ~ # ectool pdlog 2020-04-27 18:24:56.460 P0 SNK Charger PD 19776mV / 3000mA, max 20000mV / 3000mA Signed-off-by: Simon Glass <sjg@chromium.org> Change-Id: I30951537ac48c0929cb668cdd2af1e1675696378 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2676611 Reviewed-by: Jack Rosenthal <jrosenth@chromium.org> Reviewed-by: Keith Short <keithshort@chromium.org>
Diffstat (limited to 'zephyr/Kconfig.usbc')
-rw-r--r--zephyr/Kconfig.usbc9
1 files changed, 9 insertions, 0 deletions
diff --git a/zephyr/Kconfig.usbc b/zephyr/Kconfig.usbc
index 2b31a16395..c39cb9cbc0 100644
--- a/zephyr/Kconfig.usbc
+++ b/zephyr/Kconfig.usbc
@@ -464,6 +464,15 @@ config PLATFORM_EC_HOSTCMD_PD_CONTROL
This host command can be manually executed using the
"ectool pdcontrol" command from the Chromium OS shell.
+config PLATFORM_EC_USB_PD_LOGGING
+ bool "Host command: EC_CMD_PD_GET_LOG_ENTRY"
+ help
+ Enable logging of USB Power Delivery events. The AP can request the
+ log to see what has happened recently.
+
+ The log events are stored in a circular buffer, each one being a
+ struct event_log_entry.
+
config PLATFORM_EC_CMD_USB_PD_PE
bool "Console command: pe"
help