summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDevin Lu <Devin.Lu@quantatw.com>2022-02-11 17:54:45 +0800
committerCommit Bot <commit-bot@chromium.org>2022-02-15 08:00:09 +0000
commitccf4303c65f651f3970527ee5e05b46ff9464608 (patch)
tree0f65cbef69608ce16b76c510bb381f66a5946982
parent393506c8b6c1714857484fd270510144c42d6204 (diff)
downloadchrome-ec-ccf4303c65f651f3970527ee5e05b46ff9464608.tar.gz
anahera: Configure FRS GPIOs for PPC
BRANCH=none BUG=b:218754289 TEST=buildall Signed-off-by: Devin Lu <Devin.Lu@quantatw.com> Change-Id: I31c70c307861366f541d35b1a9e3307dce17f638 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3455104 Reviewed-by: caveh jalali <caveh@chromium.org>
-rw-r--r--board/anahera/gpio.inc4
-rw-r--r--board/anahera/usbc_config.c2
2 files changed, 4 insertions, 2 deletions
diff --git a/board/anahera/gpio.inc b/board/anahera/gpio.inc
index 9aba64311c..f8eaa848cb 100644
--- a/board/anahera/gpio.inc
+++ b/board/anahera/gpio.inc
@@ -141,9 +141,9 @@ UNUSED(PIN(F, 5)) /* GPIOF5/I2C5_SCL1 */
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_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)
IOEX(USB_C1_RT_RST_ODL, EXPIN(IOEX_C1_NCT38XX, 0, 7), GPIO_ODR_LOW)
diff --git a/board/anahera/usbc_config.c b/board/anahera/usbc_config.c
index aae3a4493b..e0742edb85 100644
--- a/board/anahera/usbc_config.c
+++ b/board/anahera/usbc_config.c
@@ -63,11 +63,13 @@ 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] = {
.i2c_port = I2C_PORT_USB_C1_PPC,
.i2c_addr_flags = SYV682X_ADDR2_FLAGS,
+ .frs_en = IOEX_USB_C1_FRS_EN,
.drv = &syv682x_drv,
},
};