diff options
author | Logan_Liao <Logan_Liao@compal.corp-partner.google.com> | 2022-03-04 20:26:06 +0800 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-03-24 03:54:04 +0000 |
commit | ac822d7eebb10b629c64664eca4e372e27eb1973 (patch) | |
tree | 91168c944699ad7ddc0c2245f7e0a00083ddc969 /board/banshee | |
parent | b4eabdeaa087722887b73c9b0d13374581944def (diff) | |
download | chrome-ec-ac822d7eebb10b629c64664eca4e372e27eb1973.tar.gz |
Banshee : Enable FRS.
This patch enable FRS function.
BUG=b:221094331
BRANCH=none
TEST=make BOARD=banshee success.
Test on DA310 device with FRS function.
1. Connect DA310 into board.
2. Connect adapter to DA310 Type-C port.
3. Connect HDMI monitor to DA310 HDMI port.
4. Disconnect adapter and confirm monitor
not shutdown and turn on.
Change-Id: I184b447fbe4a465286bc6524dcdb7fece204b57d
Signed-off-by: Logan_Liao <logan_Liao@compal.corp-partner.google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3499714
Reviewed-by: Elthan Huang <elthan_huang@compal.corp-partner.google.com>
Tested-by: Elthan Huang <elthan_huang@compal.corp-partner.google.com>
Reviewed-by: Boris Mittelberg <bmbm@google.com>
Reviewed-by: Logan Liao <logan_liao@compal.corp-partner.google.com>
Commit-Queue: Logan Liao <logan_liao@compal.corp-partner.google.com>
Diffstat (limited to 'board/banshee')
-rw-r--r-- | board/banshee/board.h | 2 | ||||
-rw-r--r-- | board/banshee/gpio.inc | 8 | ||||
-rw-r--r-- | board/banshee/usbc_config.c | 4 |
3 files changed, 10 insertions, 4 deletions
diff --git a/board/banshee/board.h b/board/banshee/board.h index 9acf656c4e..0485f9d396 100644 --- a/board/banshee/board.h +++ b/board/banshee/board.h @@ -56,6 +56,8 @@ #define CONFIG_IO_EXPANDER_NCT38XX #define CONFIG_IO_EXPANDER_PORT_COUNT 4 +#define CONFIG_USB_PD_FRS_PPC + #define CONFIG_USBC_RETIMER_INTEL_BB /* I2C speed console command */ diff --git a/board/banshee/gpio.inc b/board/banshee/gpio.inc index 06239d3a69..34438f1d0b 100644 --- a/board/banshee/gpio.inc +++ b/board/banshee/gpio.inc @@ -156,16 +156,16 @@ GPIO(EC_KSO_02_INV, PIN(1, 7), GPIO_OUT_LOW) IOEX(USB_C0_RT_RST_ODL, EXPIN(IOEX_C0_NCT38XX, 0, 7), GPIO_ODR_LOW) 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_LOW) IOEX(USB_C1_RT_RST_ODL, EXPIN(IOEX_C1_NCT38XX, 0, 2), GPIO_ODR_LOW) IOEX(USB_C1_OC_ODL, EXPIN(IOEX_C1_NCT38XX, 0, 3), GPIO_ODR_HIGH) -IOEX(USB_C1_FRS_EN, EXPIN(IOEX_C1_NCT38XX, 0, 6), GPIO_LOW) +IOEX(USB_C1_FRS_EN, EXPIN(IOEX_C1_NCT38XX, 0, 6), GPIO_OUT_LOW) IOEX(USB_C2_RT_RST_ODL, EXPIN(IOEX_C2_NCT38XX, 0, 7), GPIO_ODR_LOW) IOEX(USB_C2_OC_ODL, EXPIN(IOEX_C2_NCT38XX, 0, 4), GPIO_ODR_HIGH) -IOEX(USB_C2_FRS_EN, EXPIN(IOEX_C2_NCT38XX, 0, 6), GPIO_LOW) +IOEX(USB_C2_FRS_EN, EXPIN(IOEX_C2_NCT38XX, 0, 6), GPIO_OUT_LOW) IOEX(USB_C3_RT_RST_ODL, EXPIN(IOEX_C3_NCT38XX, 0, 7), GPIO_ODR_LOW) IOEX(USB_C3_OC_ODL, EXPIN(IOEX_C3_NCT38XX, 0, 4), GPIO_ODR_HIGH) -IOEX(USB_C3_FRS_EN, EXPIN(IOEX_C3_NCT38XX, 0, 6), GPIO_LOW) +IOEX(USB_C3_FRS_EN, EXPIN(IOEX_C3_NCT38XX, 0, 6), GPIO_OUT_LOW) diff --git a/board/banshee/usbc_config.c b/board/banshee/usbc_config.c index c4d45350f5..d180eff1ef 100644 --- a/board/banshee/usbc_config.c +++ b/board/banshee/usbc_config.c @@ -86,21 +86,25 @@ struct ppc_config_t ppc_chips[] = { [USBC_PORT_C0] = { .i2c_port = I2C_PORT_USB_PPC_BC12, .i2c_addr_flags = SYV682X_ADDR0_FLAGS, + .frs_en = IOEX_USB_C0_FRS_EN, .drv = &syv682x_drv, }, [USBC_PORT_C1] = { .i2c_port = I2C_PORT_USB_PPC_BC12, .i2c_addr_flags = SYV682X_ADDR2_FLAGS, + .frs_en = IOEX_USB_C1_FRS_EN, .drv = &syv682x_drv, }, [USBC_PORT_C2] = { .i2c_port = I2C_PORT_USB_PPC_BC12, .i2c_addr_flags = SYV682X_ADDR1_FLAGS, + .frs_en = IOEX_USB_C2_FRS_EN, .drv = &syv682x_drv, }, [USBC_PORT_C3] = { .i2c_port = I2C_PORT_USB_PPC_BC12, .i2c_addr_flags = SYV682X_ADDR3_FLAGS, + .frs_en = IOEX_USB_C3_FRS_EN, .drv = &syv682x_drv, }, }; |