summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--board/crota/board.h2
-rw-r--r--board/crota/gpio.inc4
-rw-r--r--board/crota/usbc_config.c2
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,
},
};