diff options
author | Simon Glass <sjg@chromium.org> | 2021-01-14 13:15:11 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-01-16 03:18:02 +0000 |
commit | 5e105a0f2576386ed32d46b94c85bd364cd49f10 (patch) | |
tree | 16814a384497393d7114e7021a303b836a10cd2d /zephyr/Kconfig.usbc | |
parent | 4731a54d82511c1824f523866f7fd28fedf60783 (diff) | |
download | chrome-ec-5e105a0f2576386ed32d46b94c85bd364cd49f10.tar.gz |
zephyr: Allow setting the USB-PD debug level
This is used to reduce code size in the USB-PD stack. Add this option
to the Kconfig.
BUG=b:175434113
BRANCH=none
TEST=make BOARD=volteer -j30
With a zephyr-chrome CL, build volteer on zephyr
Signed-off-by: Simon Glass <sjg@chromium.org>
Change-Id: Ia8db34d11619ca6a7a19742f3c9d67f9f2c04a9b
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2631088
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.usbc | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/zephyr/Kconfig.usbc b/zephyr/Kconfig.usbc index b3cd420242..84716448b4 100644 --- a/zephyr/Kconfig.usbc +++ b/zephyr/Kconfig.usbc @@ -157,6 +157,23 @@ config PLATFORM_EC_CONSOLE_CMD_PD Ssee usb_pd_console.c for full details including various commands for role swap, reset, enable/disable, requesting SNK or SRC, etc. +config PLATFORM_EC_USB_PD_DEBUG_FIXED_LEVEL + bool "USB Power Delivery debug level is fixed at build time" + help + Enable this to set the debug level to a fixed value in the build. + This saves space but means that the level cannot be changed using + commands like 'pd dump'. Typically this should be set when a platform + is shipped. + +config PLATFORM_EC_USB_PD_DEBUG_LEVEL + int "Debug level to use" + depends on PLATFORM_EC_USB_PD_DEBUG_FIXED_LEVEL + help + Sets the value of the debug level to use. If this is 0 then no + debugging output is available from the USB Power Delivery stack. + The meaning of each level depends on the module in question, but + the maximum available level is 3. + choice "Measuring VBUS voltage" prompt "Select how VBUS voltage is measured" |