diff options
author | Scott Collyer <scollyer@google.com> | 2020-11-06 21:20:11 -0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-12-22 17:42:09 +0000 |
commit | 4b996f19dfc12c3bbce79601b15e325a782211db (patch) | |
tree | 4d9eee96330cbc4a43ebaa99a3f68dcfa12c618d /include | |
parent | 1eb7b2791fb3c67c183f88e8308242bb1cadc93d (diff) | |
download | chrome-ec-4b996f19dfc12c3bbce79601b15e325a782211db.tar.gz |
stm32g4: ucpd: Add pd msg log and console debug commands
This CL adds code to the ucpd driver which can used for additional
debug information about both usbc and usb-pd information. The message
log contains up to 64 entries which is sufficient to establish a
connection and enter alt-dp mode.
BUG=b:167601672
BRANCH=None
TEST=Connect quiche on host port and validate debug commands:
> ucpd info
cc1 = Rp
cc2 = Rp
Rp = Rp_3.0
cc1_v = 1
cc2_v = 2
rx_en = 1
pol = 1
Signed-off-by: Scott Collyer <scollyer@google.com>
Change-Id: I2f50a6284336f21e833ecdff72746ff04c191b52
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2531183
Tested-by: Scott Collyer <scollyer@chromium.org>
Reviewed-by: Diana Z <dzigterman@chromium.org>
Commit-Queue: Scott Collyer <scollyer@chromium.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/config.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/config.h b/include/config.h index 9744ed4115..c3872b5fb7 100644 --- a/include/config.h +++ b/include/config.h @@ -4289,6 +4289,9 @@ /* Allow run-time configuration of the Burnside Bridge driver structure */ #undef CONFIG_USBC_RETIMER_INTEL_BB_RUNTIME_CONFIG +/* Enables debug console commands for the STM32 UCPD driver */ +#undef CONFIG_STM32G4_UCPD_DEBUG + /* * Adds an EC console command to erase the ANX7447 OCM flash. * Note: this is intended to be a temporary option and |