summaryrefslogtreecommitdiff
path: root/board/brya
diff options
context:
space:
mode:
authorCaveh Jalali <caveh@chromium.org>2022-01-25 19:21:25 -0800
committerCommit Bot <commit-bot@chromium.org>2022-02-08 00:03:30 +0000
commite6bde5aeae30454da2190a09a1f1f67394d17dfc (patch)
tree51fec23e83f7485053608be06408e383963ea4fa /board/brya
parentc67cf6b2ee0e24205896ffdea4bdc9fe39088725 (diff)
downloadchrome-ec-e6bde5aeae30454da2190a09a1f1f67394d17dfc.tar.gz
brya: Configure FRS GPIOs for ports C0, C2
This configures the appropriate GPIO pins for enabling FRS at the PPC. BRANCH=none BUG=b:216410108 TEST=buildall passes Change-Id: Iaf6cd3fc046f73250dfb3aa642060f7f3feb008b Signed-off-by: Caveh Jalali <caveh@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3417011 Reviewed-by: Boris Mittelberg <bmbm@google.com>
Diffstat (limited to 'board/brya')
-rw-r--r--board/brya/gpio.inc4
-rw-r--r--board/brya/usbc_config.c6
2 files changed, 4 insertions, 6 deletions
diff --git a/board/brya/gpio.inc b/board/brya/gpio.inc
index 79a97b0475..e88d72eba8 100644
--- a/board/brya/gpio.inc
+++ b/board/brya/gpio.inc
@@ -64,11 +64,11 @@ IOEX(ID_1_USB_C2_OC_ODL, EXPIN(IOEX_ID_1_C2_NCT38XX, 0, 7), GPIO_ODR_HIGH)
/* 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_LOW)
IOEX(USB_C0_RT_RST_ODL, EXPIN(IOEX_C0_NCT38XX, 0, 7), GPIO_ODR_LOW)
IOEX(USB_C2_RT_RST_ODL, EXPIN(IOEX_C2_NCT38XX, 0, 2), GPIO_ODR_LOW)
IOEX(USB_C1_OC_ODL, EXPIN(IOEX_C2_NCT38XX, 0, 3), GPIO_ODR_HIGH)
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)
/* GPIO07_P2 to PU */
diff --git a/board/brya/usbc_config.c b/board/brya/usbc_config.c
index ac905a735b..45046acd0c 100644
--- a/board/brya/usbc_config.c
+++ b/board/brya/usbc_config.c
@@ -100,6 +100,7 @@ struct ppc_config_t ppc_chips[] = {
[USBC_PORT_C0] = {
.i2c_port = I2C_PORT_USB_C0_C2_PPC,
.i2c_addr_flags = SYV682X_ADDR0_FLAGS,
+ .frs_en = IOEX_USB_C0_FRS_EN,
.drv = &syv682x_drv,
},
[USBC_PORT_C1] = {
@@ -110,11 +111,8 @@ struct ppc_config_t ppc_chips[] = {
},
[USBC_PORT_C2] = {
.i2c_port = I2C_PORT_USB_C0_C2_PPC,
- /*
- * b/179987870
- * schematics I2C map says ADDR3
- */
.i2c_addr_flags = SYV682X_ADDR2_FLAGS,
+ .frs_en = IOEX_USB_C2_FRS_EN,
.drv = &syv682x_drv,
},
};