summaryrefslogtreecommitdiff
path: root/common/usb_common.c
diff options
context:
space:
mode:
authorEric Herrmann <eherrmann@chromium.org>2020-02-14 11:04:48 -0800
committerCommit Bot <commit-bot@chromium.org>2020-06-18 23:46:19 +0000
commite0c415b8f76a5179474b89418094f986fd1cd772 (patch)
tree4e614720ed0998711964071feca11def6b85fa10 /common/usb_common.c
parentfe6ca90ed3188c5a0d890c1076ad1b0b1b9db29c (diff)
downloadchrome-ec-e0c415b8f76a5179474b89418094f986fd1cd772.tar.gz
TCPMv2: Add pathway to enable FRS from PPC driver
Some PPCs have integrated CC line detection to trigger FRS faster, but this needs to be enabled from the USBC policy engine only after the sink capabilities have been exchanged. BUG=b:148144711 TEST=make buildall BRANCH=none Change-Id: Iaa64f64845c5ffdd32fa66a3eb6f6251abb7c157 Signed-off-by: Eric Herrmann <eherrmann@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2056493 Reviewed-by: Keith Short <keithshort@chromium.org>
Diffstat (limited to 'common/usb_common.c')
-rw-r--r--common/usb_common.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/common/usb_common.c b/common/usb_common.c
index 974e136a7b..5339e293df 100644
--- a/common/usb_common.c
+++ b/common/usb_common.c
@@ -728,6 +728,14 @@ int pd_is_vbus_present(int port)
return pd_check_vbus_level(port, VBUS_PRESENT);
}
+#ifdef CONFIG_USB_PD_FRS
+void pd_set_frs_enable(int port, int enable)
+{
+ ppc_set_frs_enable(port, enable);
+ tcpm_set_frs_enable(port, enable);
+}
+#endif /* defined(CONFIG_USB_PD_FRS) */
+
#ifdef CONFIG_CMD_TCPC_DUMP
/*
* Dump TCPC registers.