From 61bedab8f0649e0f2265353fadf2e213f4297ef0 Mon Sep 17 00:00:00 2001 From: Eric Herrmann Date: Thu, 11 Mar 2021 14:56:46 -0800 Subject: Voema: Enable FRS Set flag and configure GPIOs to enable Fast Role Swap. BUG=b:148144711 TEST=make buildall BRANCH=None Signed-off-by: Eric Herrmann Change-Id: Ia3586858c89f37e42284c5e585adf1aca36c67a8 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2752271 Reviewed-by: Abe Levkoy --- board/voema/board.c | 2 ++ board/voema/board.h | 1 + 2 files changed, 3 insertions(+) (limited to 'board') diff --git a/board/voema/board.c b/board/voema/board.c index f6dff264f6..c16ed9f675 100644 --- a/board/voema/board.c +++ b/board/voema/board.c @@ -260,11 +260,13 @@ struct ppc_config_t ppc_chips[] = { [USBC_PORT_C0] = { .i2c_port = I2C_PORT_USB_C0, .i2c_addr_flags = SYV682X_ADDR0_FLAGS, + .frs_en = GPIO_USB_C0_FRS_EN, .drv = &syv682x_drv, }, [USBC_PORT_C1] = { .i2c_port = I2C_PORT_USB_C1, .i2c_addr_flags = SYV682X_ADDR0_FLAGS, + .frs_en = GPIO_USB_C1_FRS_EN, .drv = &syv682x_drv, }, }; diff --git a/board/voema/board.h b/board/voema/board.h index 666d680a48..b2d401f69a 100644 --- a/board/voema/board.h +++ b/board/voema/board.h @@ -77,6 +77,7 @@ /* USBC PPC*/ #define CONFIG_USBC_PPC_SYV682X /* USBC port C0/C1 */ +#define CONFIG_USB_PD_FRS_PPC #undef CONFIG_USB_PD_TCPC_RUNTIME_CONFIG #undef CONFIG_USB_PD_TCPM_TUSB422 #undef CONFIG_USB_MUX_RUNTIME_CONFIG -- cgit v1.2.1