summaryrefslogtreecommitdiff
path: root/board
diff options
context:
space:
mode:
authorEric Herrmann <eherrmann@chromium.org>2021-03-11 14:56:46 -0800
committerCommit Bot <commit-bot@chromium.org>2021-03-25 19:23:31 +0000
commit61bedab8f0649e0f2265353fadf2e213f4297ef0 (patch)
treef710d713440fb34a2f3ee31dc834aa18f3d4f63a /board
parent4449e7256495443ae8927f84fc084794ce666ffe (diff)
downloadchrome-ec-61bedab8f0649e0f2265353fadf2e213f4297ef0.tar.gz
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 <eherrmann@chromium.org> Change-Id: Ia3586858c89f37e42284c5e585adf1aca36c67a8 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2752271 Reviewed-by: Abe Levkoy <alevkoy@chromium.org>
Diffstat (limited to 'board')
-rw-r--r--board/voema/board.c2
-rw-r--r--board/voema/board.h1
2 files changed, 3 insertions, 0 deletions
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