diff options
author | Simon Glass <sjg@chromium.org> | 2021-02-04 17:17:40 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-02-05 19:20:15 +0000 |
commit | b066f62055ced4fb3665911c70219a4d219e8297 (patch) | |
tree | a1380caff6c47c32d6ac211323535246dd66898b /zephyr/Kconfig.usbc | |
parent | 0292087945444032d67e5c23179e4f0a3e12b7fc (diff) | |
download | chrome-ec-b066f62055ced4fb3665911c70219a4d219e8297.tar.gz |
zephyr: Add support for Fast Role Swap trigger
Add support for these options so that Fast Role Swap can be enabled.
BUG=b:175434113
BRANCH=none
TEST=build zephyr with another CL and see that the code is included
Signed-off-by: Simon Glass <sjg@chromium.org>
Change-Id: I78b68108f9ab50afe137a5010d6024ca07d723f7
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2677182
Reviewed-by: Keith Short <keithshort@chromium.org>
Diffstat (limited to 'zephyr/Kconfig.usbc')
-rw-r--r-- | zephyr/Kconfig.usbc | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/zephyr/Kconfig.usbc b/zephyr/Kconfig.usbc index e5b6876b9f..7587514c04 100644 --- a/zephyr/Kconfig.usbc +++ b/zephyr/Kconfig.usbc @@ -297,6 +297,48 @@ config PLATFORM_EC_USB_PD_DUAL_ROLE up its battery), or send out power to an attached device on the same port. +config PLATFORM_EC_USB_PD_FRS + bool "Support Fast Role Swap protocol" + help + Enables the protocol side of Fast Role Swap (FRS). This allows the + device to switch from a SNK to a SRC (or vice versa) based on + communication with the partner device. + + For this to work the trigger must be implemented in either the + Type-C Port Controller (TCPC) or Power Path Controller (PPC). + + FRS differs from the traditional power-role swap in that FRS + guarantees there is no interruption of power nor disruption of data + communication to any downstream devices (such as devices connected + to a USB-C hub or dock). + +if PLATFORM_EC_USB_PD_FRS + +choice "Trigger implementation" + prompt "Select where the trigger is implemented" + help + The Fast Role Swap (protocol requires that a trigger be implemented to + initiate the swap. Use this option to select which of the available + options should be used. + +config PLATFORM_EC_USB_PD_FRS_PPC + bool "PPC" + depends on PLATFORM_EC_USBC_PPC + help + Enable this if the Fast Role Swap trigger is implemented in the + Power Path Controller (PPC). + +config PLATFORM_EC_USB_PD_FRS_TCPC + bool "TCPC" + depends on PLATFORM_EC_USBC_TCPC + help + Enable this if the Fast Role Swap trigger is implemented in the + Type-C Port Controller (TCPC). + +endchoice # Trigger implementation + +endif # PLATFORM_EC_USB_PD_FRS + config PLATFORM_EC_USB_PD_DUAL_ROLE_AUTO_TOGGLE bool "Board can use TCPC-controlled DRP toggle" depends on PLATFORM_EC_USB_PD_DUAL_ROLE |