diff options
author | Simon Glass <sjg@chromium.org> | 2021-01-14 13:18:46 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-01-16 03:18:06 +0000 |
commit | a8d0e611119ec300cb3906812b7ef0449cb05fe9 (patch) | |
tree | 976b42981923f86003eb2c6f610683fd37ef0b43 /zephyr | |
parent | 5e105a0f2576386ed32d46b94c85bd364cd49f10 (diff) | |
download | chrome-ec-a8d0e611119ec300cb3906812b7ef0449cb05fe9.tar.gz |
zephyr: Allow enabling USB-C VCONN
Enable a few more options so that we can charge other devices.
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: I440a3465ad8b14d8ffa6a9007009756b6ee3031c
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2631089
Reviewed-by: Keith Short <keithshort@chromium.org>
Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
Diffstat (limited to 'zephyr')
-rw-r--r-- | zephyr/Kconfig.usbc | 11 | ||||
-rw-r--r-- | zephyr/shim/include/config_chip.h | 8 |
2 files changed, 19 insertions, 0 deletions
diff --git a/zephyr/Kconfig.usbc b/zephyr/Kconfig.usbc index 84716448b4..8932e1460e 100644 --- a/zephyr/Kconfig.usbc +++ b/zephyr/Kconfig.usbc @@ -203,6 +203,17 @@ config PLATFORM_EC_USB_PD_VBUS_MEASURE_ADC_EACH_PORT endchoice # Measuring VBUS voltage +config PLATFORM_EC_USBC_VCONN + bool "Support USB Type-C VCONN" + default y + help + This enables support for USB Type-C connector voltage (VCONN). This + option must be enabled to communicate with electronically marked + (E-Mark) cables. This option is required for operation with USB4 and + Thunderbolt devices. + + This is not needed for captive cables. + config PLATFORM_EC_USB_PD_DUAL_ROLE bool "Board can act as a dual-role Power Delivery port" default y diff --git a/zephyr/shim/include/config_chip.h b/zephyr/shim/include/config_chip.h index 621e2412dc..3ef9f5bded 100644 --- a/zephyr/shim/include/config_chip.h +++ b/zephyr/shim/include/config_chip.h @@ -519,4 +519,12 @@ enum battery_type { #define CONFIG_USB_PD_DEBUG_LEVEL CONFIG_PLATFORM_EC_USB_PD_DEBUG_LEVEL #endif +#undef CONFIG_USBC_VCONN +#ifdef CONFIG_PLATFORM_EC_USBC_VCONN +#define CONFIG_USBC_VCONN + +/* This must be defined as well */ +#define CONFIG_USBC_VCONN_SWAP +#endif /* CONFIG_PLATFORM_EC_USBC_VCONN */ + #endif /* __CROS_EC_CONFIG_CHIP_H */ |