summaryrefslogtreecommitdiff
path: root/board/gingerbread/board.h
diff options
context:
space:
mode:
authorScott Collyer <scollyer@google.com>2021-06-09 09:47:46 -0700
committerCommit Bot <commit-bot@chromium.org>2021-06-16 06:56:59 +0000
commitd73bb872f1278ef741d85203c42969aa3a7b2c75 (patch)
treec705d426026a5d25dbeb11c4e91a6f6727a71d21 /board/gingerbread/board.h
parentb1af8c3689ecc265092f034d6ce8ee715d2614d8 (diff)
downloadchrome-ec-d73bb872f1278ef741d85203c42969aa3a7b2c75.tar.gz
gingerbread: Use CONFIG_USB_PD_VBUS_DETECT_TCPC for C1
This CL changes the stm32gx TCPM driver to allow CONFIG_USB_PD_VBUS_DETECT_TCPC to still be defined on boards that also use the stm32gx TCPM driver. This is required for gingerbread which has a PPC on C0 for VBUS detection, but relies on the TCPC to detect VBUS on port C1. BUG=b:159330563 BRANCH=quiche TEST=validated that can attach as SRC/DFP on C1 > pd 1 state Port C1 CC2, Enable - Role: SRC-DFP-VC TC State: Attached.SRC, [10.435540 C1: PE_SRC_Ready] [10.436511 pin_mode: 4, mf: 0, mux: 2] [10.442645 C1: PE_VDM_Request_DPM] [10.470346 C1: Entered DP mode] [10.470480 C1: PE_SRC_Ready] Signed-off-by: Scott Collyer <scollyer@google.com> Change-Id: I986d504b1306c02132869abe7cbd630a966e0acd Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2949954 Commit-Queue: Scott Collyer <scollyer@chromium.org> Tested-by: Scott Collyer <scollyer@chromium.org> Reviewed-by: Diana Z <dzigterman@chromium.org>
Diffstat (limited to 'board/gingerbread/board.h')
-rw-r--r--board/gingerbread/board.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/board/gingerbread/board.h b/board/gingerbread/board.h
index f631429cdb..eb2eb934cb 100644
--- a/board/gingerbread/board.h
+++ b/board/gingerbread/board.h
@@ -34,6 +34,7 @@
#define CONFIG_USB_PD_PORT_MAX_COUNT 2
#define CONFIG_USB_MUX_TUSB1064
+#define CONFIG_USB_PD_VBUS_DETECT_TCPC
#define BOARD_C1_NO_PPC
#define CONFIG_USB_PID 0x5049