diff options
author | amber.chen <amber.chen@lcfc.corp-partner.google.com> | 2022-03-02 22:17:04 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2022-03-04 04:18:01 +0000 |
commit | e116e868acb044cca7837c31a3e72798982b4a9f (patch) | |
tree | 4262e315746976b227bec1bab6e8a5dbe2a69b2f /board/taeko | |
parent | 116ccf7640339f8fd6599776cf3ff2c79c2dbc36 (diff) | |
download | chrome-ec-e116e868acb044cca7837c31a3e72798982b4a9f.tar.gz |
taeko: enable FRS on ports 0 and 1
enable FRS on ports 0 and 1
BUG=b:221391649
BRANCH=main
TEST=make -j BOARD=taeko
Signed-off-by: amber.chen <amber.chen@lcfc.corp-partner.google.com>
Change-Id: Iaf75c684f476f0beacf1409ef19f257ae05981c5
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3500327
Reviewed-by: caveh jalali <caveh@chromium.org>
Diffstat (limited to 'board/taeko')
-rw-r--r-- | board/taeko/board.h | 2 | ||||
-rw-r--r-- | board/taeko/gpio.inc | 2 | ||||
-rw-r--r-- | board/taeko/usbc_config.c | 4 |
3 files changed, 6 insertions, 2 deletions
diff --git a/board/taeko/board.h b/board/taeko/board.h index edd5933ec8..b63138dbd1 100644 --- a/board/taeko/board.h +++ b/board/taeko/board.h @@ -87,6 +87,8 @@ #define CONFIG_IO_EXPANDER_NCT38XX #define CONFIG_IO_EXPANDER_PORT_COUNT 1 +#define CONFIG_USB_PD_FRS_PPC +#define CONFIG_USB_PD_FRS #define CONFIG_USB_PD_TCPM_PS8815 #define CONFIG_USB_PD_TCPM_PS8815_FORCE_DID #define CONFIG_USBC_PPC_SYV682X diff --git a/board/taeko/gpio.inc b/board/taeko/gpio.inc index 9e78631b92..b0279f3f15 100644 --- a/board/taeko/gpio.inc +++ b/board/taeko/gpio.inc @@ -134,7 +134,7 @@ GPIO(EC_KSO_02_INV, PIN(1, 7), GPIO_OUT_LOW) /* GPIO02_P2 to PU */ /* GPIO03_P2 to PU */ IOEX(USB_C0_OC_ODL, EXPIN(IOEX_C0_NCT38XX, 0, 4), GPIO_ODR_HIGH) -IOEX(USB_C0_FRS_EN, EXPIN(IOEX_C0_NCT38XX, 0, 6), GPIO_LOW) +IOEX(USB_C0_FRS_EN, EXPIN(IOEX_C0_NCT38XX, 0, 6), GPIO_OUT_HIGH) /* LED */ GPIO(LED_1_L, PIN(C, 4), GPIO_OUT_HIGH) /* Battery - Red LED */ diff --git a/board/taeko/usbc_config.c b/board/taeko/usbc_config.c index 215b29171a..a013c6f7e0 100644 --- a/board/taeko/usbc_config.c +++ b/board/taeko/usbc_config.c @@ -66,7 +66,8 @@ const struct tcpc_config_t tcpc_config[] = { .drv = &ps8xxx_tcpm_drv, .flags = TCPC_FLAGS_TCPCI_REV2_0 | TCPC_FLAGS_TCPCI_REV2_0_NO_VSAFE0V | - TCPC_FLAGS_CONTROL_VCONN, + TCPC_FLAGS_CONTROL_VCONN | + TCPC_FLAGS_CONTROL_FRS, }, }; BUILD_ASSERT(ARRAY_SIZE(tcpc_config) == USBC_PORT_COUNT); @@ -77,6 +78,7 @@ struct ppc_config_t ppc_chips[] = { [USBC_PORT_C0] = { .i2c_port = I2C_PORT_USB_C0_PPC, .i2c_addr_flags = SYV682X_ADDR0_FLAGS, + .frs_en = IOEX_USB_C0_FRS_EN, .drv = &syv682x_drv, }, [USBC_PORT_C1] = { |