summaryrefslogtreecommitdiff
path: root/zephyr/Kconfig.usbc
diff options
context:
space:
mode:
authorFabio Baltieri <fabiobaltieri@google.com>2021-02-23 12:51:27 +0000
committerCommit Bot <commit-bot@chromium.org>2021-02-23 16:45:56 +0000
commit136b94b135c584c63673a1f3806ddd9ea5dbf8ac (patch)
treee8d3c8751157c48e33293b98f7253dfefacebe0e /zephyr/Kconfig.usbc
parentd12c7a6c24fee895d16372036c95b1dda2590cad (diff)
downloadchrome-ec-136b94b135c584c63673a1f3806ddd9ea5dbf8ac.tar.gz
zephyr: add PD console command support
This adds support for actually building the code for "ec" and "pdcable" commands. The matching config were enabled, but the file was left out of the build. BRANCH=none BUG=b:177604307 TEST=tested the commands on volteer Change-Id: I996f4a4ab99f8ed36b090c8b7ffa3d8d0bee63dc Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2712968 Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'zephyr/Kconfig.usbc')
-rw-r--r--zephyr/Kconfig.usbc12
1 files changed, 12 insertions, 0 deletions
diff --git a/zephyr/Kconfig.usbc b/zephyr/Kconfig.usbc
index 0eebb5ae8f..a4eabb0fcf 100644
--- a/zephyr/Kconfig.usbc
+++ b/zephyr/Kconfig.usbc
@@ -524,8 +524,17 @@ config PLATFORM_EC_USB_PD_LOGGING
The log events are stored in a circular buffer, each one being a
struct event_log_entry.
+menuconfig PLATFORM_EC_USB_PD_CONSOLE_CMD
+ bool "Enable USB PD console commands"
+ default y if PLATFORM_EC_USB_PD_ALT_MODE_DFP
+ help
+ Enables various USB-C PD related console commands.
+
+if PLATFORM_EC_USB_PD_CONSOLE_CMD
+
config PLATFORM_EC_CMD_USB_PD_PE
bool "Console command: pe"
+ default y
help
This command dumps information about the USB PD alternate mode options
discovered from the partner device. It can be useful for debugging.
@@ -545,6 +554,7 @@ config PLATFORM_EC_CMD_USB_PD_PE
config PLATFORM_EC_CMD_USB_PD_CABLE
bool "Console command: pdcable"
+ default y
help
This commands shows the USB cable charactistics as detected from the
device. It can be useful for debugging problems with cables and the
@@ -562,6 +572,8 @@ config PLATFORM_EC_CMD_USB_PD_CABLE
Link training: Bi-directional
Thunderbolt cable type: Passive
+endif # PLATFORM_EC_USB_PD_CONSOLE_CMD
+
choice "USB-C device type"
prompt "Select the USB-C device type"
default PLATFORM_EC_USB_DRP_ACC_TRYSRC