diff options
author | Eric Herrmann <eherrmann@chromium.org> | 2021-03-11 15:00:50 -0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-03-25 17:32:52 +0000 |
commit | 969a996a88eacbafaf0dc2622c573e49889be64d (patch) | |
tree | eb862d1bd07673155b0057ad640f54c181d39bc7 /board/copano | |
parent | 2168842b0adcc1e8d8cf0e76fde73e7b9973ed86 (diff) | |
download | chrome-ec-969a996a88eacbafaf0dc2622c573e49889be64d.tar.gz |
Copano: Enable FRS
Set flag and configure GPIOs to enable Fast Role Swap.
BUG=b:148144711
TEST=With an FRS device with power passed through, remove the power cord
and check that the device doesn't re-enumerate.
BRANCH=None
Signed-off-by: Eric Herrmann <eherrmann@chromium.org>
Change-Id: Ie3159c53a290b3aeed8c18a1cae19446b712791c
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2754491
Reviewed-by: Abe Levkoy <alevkoy@chromium.org>
Diffstat (limited to 'board/copano')
-rw-r--r-- | board/copano/board.c | 2 | ||||
-rw-r--r-- | board/copano/board.h | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/board/copano/board.c b/board/copano/board.c index 2c33582fce..e2ebc6725d 100644 --- a/board/copano/board.c +++ b/board/copano/board.c @@ -276,11 +276,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/copano/board.h b/board/copano/board.h index 4ef4f9e86e..1e3ae118c5 100644 --- a/board/copano/board.h +++ b/board/copano/board.h @@ -88,6 +88,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 |