summaryrefslogtreecommitdiff
path: root/board/gimble
diff options
context:
space:
mode:
authorScott Chao <scott_chao@wistron.corp-partner.google.com>2022-03-08 14:52:46 +0800
committerCommit Bot <commit-bot@chromium.org>2022-03-10 10:09:59 +0000
commit84136ee658daf7753e4e505003fd0ef3f19a0241 (patch)
treeb09a01db511f799b702e00ea41416b22eccb007d /board/gimble
parent4a6781cb21c5c3b6831fddf037a0887bf2a62c72 (diff)
downloadchrome-ec-84136ee658daf7753e4e505003fd0ef3f19a0241.tar.gz
gimble: enable FRS on C0
Also correct the GPIO assignment on IO expander. BUG=b:192898571 TEST=Verified by EE Signed-off-by: Scott Chao <scott_chao@wistron.corp-partner.google.com> Change-Id: I4abc44f277ab444ce4a9e3adc13ea08fe5eb1c84 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3508934 Reviewed-by: caveh jalali <caveh@chromium.org>
Diffstat (limited to 'board/gimble')
-rw-r--r--board/gimble/board.h2
-rw-r--r--board/gimble/gpio.inc4
-rw-r--r--board/gimble/usbc_config.c1
3 files changed, 5 insertions, 2 deletions
diff --git a/board/gimble/board.h b/board/gimble/board.h
index 91e2090365..090240b01e 100644
--- a/board/gimble/board.h
+++ b/board/gimble/board.h
@@ -72,6 +72,8 @@
#define CONFIG_USBC_PPC_SYV682X
#define CONFIG_USBC_PPC_NX20P3483
+#define CONFIG_USB_PD_FRS_PPC
+
/* measure and check these values on gimble */
#define PD_POWER_SUPPLY_TURN_ON_DELAY 30000 /* us */
#define PD_POWER_SUPPLY_TURN_OFF_DELAY 30000 /* us */
diff --git a/board/gimble/gpio.inc b/board/gimble/gpio.inc
index dfd3b472a6..2aa6267395 100644
--- a/board/gimble/gpio.inc
+++ b/board/gimble/gpio.inc
@@ -137,6 +137,6 @@ UNUSED(PIN(5, 7)) /* GPIO57/SER_IRQ/ESPI_ALERT_L */
*/
GPIO(EC_KSO_02_INV, PIN(1, 7), GPIO_OUT_LOW)
-IOEX(USB_C0_FRS_EN, EXPIN(IOEX_C0_NCT38XX, 0, 4), GPIO_LOW)
-IOEX(USB_C0_OC_ODL, EXPIN(IOEX_C0_NCT38XX, 0, 6), GPIO_ODR_HIGH)
IOEX(USB_C0_RT_RST_ODL, EXPIN(IOEX_C0_NCT38XX, 0, 2), 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_OUT_LOW)
diff --git a/board/gimble/usbc_config.c b/board/gimble/usbc_config.c
index 221b24e51a..297d4b5732 100644
--- a/board/gimble/usbc_config.c
+++ b/board/gimble/usbc_config.c
@@ -67,6 +67,7 @@ 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] = {