From 234a87ae2d1f564c98df2f70f00b2b226528feaf Mon Sep 17 00:00:00 2001 From: Abe Levkoy Date: Mon, 28 Nov 2022 17:08:24 -0700 Subject: tcpci: Add FRS enable to driver structure Use the generic FRS enable driver function in the generic TCPCI driver. BUG=b:260630630 TEST=twister -s zephyr/test/drivers/drivers.usbc_frs BRANCH=none Change-Id: I711fb41569d477f1dad3d14fa18a7b7f8f217ce4 Signed-off-by: Abe Levkoy Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4063186 Reviewed-by: Diana Z Code-Coverage: Zoss --- driver/tcpm/tcpci.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/driver/tcpm/tcpci.c b/driver/tcpm/tcpci.c index ffd7fa3a97..007d2aa2e6 100644 --- a/driver/tcpm/tcpci.c +++ b/driver/tcpm/tcpci.c @@ -1889,6 +1889,9 @@ const struct tcpm_drv tcpci_tcpm_drv = { .set_src_ctrl = &tcpci_tcpm_set_src_ctrl, #ifdef CONFIG_USB_PD_TCPC_LOW_POWER .enter_low_power_mode = &tcpci_enter_low_power_mode, +#endif +#ifdef CONFIG_USB_PD_FRS_TCPC + .set_frs_enable = &tcpci_tcpc_fast_role_swap_enable, #endif .set_bist_test_mode = &tcpci_set_bist_test_mode, .get_bist_test_mode = &tcpci_get_bist_test_mode, -- cgit v1.2.1