diff options
author | Peter Chi <peter_chi@wistron.corp-partner.google.com> | 2022-05-10 16:32:05 +0800 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-06-10 07:14:50 +0000 |
commit | cb1b3c5fad9391f28c7a73e99694b6838dce5ce6 (patch) | |
tree | 8988583e05d2071e16168426e7d1168be8200f76 /board | |
parent | 2b89eb28d16e53a96528ead2d0f6de920b405de9 (diff) | |
download | chrome-ec-cb1b3c5fad9391f28c7a73e99694b6838dce5ce6.tar.gz |
crota: enable FRS
Also correct the GPIO assignment on IO expander.
BUG=b:235453573
BRANCH=none
TEST=Verified by EE
Signed-off-by: Peter Chi <peter_chi@wistron.corp-partner.google.com>
Change-Id: I6de9c39d065bb10dd41df70a9ead80c2a81d346a
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3637399
Commit-Queue: caveh jalali <caveh@chromium.org>
Reviewed-by: caveh jalali <caveh@chromium.org>
Diffstat (limited to 'board')
-rw-r--r-- | board/crota/board.h | 2 | ||||
-rw-r--r-- | board/crota/gpio.inc | 4 | ||||
-rw-r--r-- | board/crota/usbc_config.c | 2 |
3 files changed, 6 insertions, 2 deletions
diff --git a/board/crota/board.h b/board/crota/board.h index f527011e9f..efde629f82 100644 --- a/board/crota/board.h +++ b/board/crota/board.h @@ -75,6 +75,8 @@ #define CONFIG_USBC_PPC_SYV682X +#define CONFIG_USB_PD_FRS_PPC + /* TODO: b/177608416 - measure and check these values on brya */ #define PD_POWER_SUPPLY_TURN_ON_DELAY 30000 /* us */ #define PD_POWER_SUPPLY_TURN_OFF_DELAY 30000 /* us */ diff --git a/board/crota/gpio.inc b/board/crota/gpio.inc index ab8d6ae381..655fc68060 100644 --- a/board/crota/gpio.inc +++ b/board/crota/gpio.inc @@ -136,9 +136,9 @@ UNUSED(PIN(C, 2)) /* GPIOC2/PWM1/I2C6_SCL0 */ GPIO(EC_KSO_02_INV, PIN(1, 7), GPIO_OUT_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_C0_RT_RST_ODL, EXPIN(IOEX_C0_NCT38XX, 0, 7), GPIO_ODR_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, 4), 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) diff --git a/board/crota/usbc_config.c b/board/crota/usbc_config.c index e0e575c78c..a06631489f 100644 --- a/board/crota/usbc_config.c +++ b/board/crota/usbc_config.c @@ -87,11 +87,13 @@ struct ppc_config_t ppc_chips[] = { [USBC_PORT_C0] = { .i2c_port = I2C_PORT_USB_C0_C1_PPC, .i2c_addr_flags = SYV682X_ADDR0_FLAGS, + .frs_en = IOEX_USB_C0_FRS_EN, .drv = &syv682x_drv, }, [USBC_PORT_C1] = { .i2c_port = I2C_PORT_USB_C0_C1_PPC, .i2c_addr_flags = SYV682X_ADDR2_FLAGS, + .frs_en = IOEX_USB_C1_FRS_EN, .drv = &syv682x_drv, }, }; |