summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaveh Jalali <caveh@chromium.org>2021-06-10 14:58:25 -0700
committerCommit Bot <commit-bot@chromium.org>2021-06-11 23:34:38 +0000
commitfd2276ad5b6403338df5dd096195cb5ceadaeae6 (patch)
treefdd6fea85f9aae23c2dce35dd2578323fafd1a27
parent1a1bdaf3a0631dd66974bc1e1fd9c3084512a016 (diff)
downloadchrome-ec-fd2276ad5b6403338df5dd096195cb5ceadaeae6.tar.gz
brya: Implement board_is_dts_port
Brya only has one DTS (CCD) port. We do not want debug accessory support enabled on non-CCD ports as that can have undesirable side-effects. In particular, with debug accessory support enabled on the nct38xx TCPC, some of its GPIOs revert to their primary function in the presence of a debug accessory resulting in undesirable system behavior. BRANCH=none BUG=b:188851792 TEST=brya only reports "Debug accessory detected" on C0 Change-Id: I1cfaf9b51df8e6783db0215fbc6f3cac9e2dd9f1 Signed-off-by: Caveh Jalali <caveh@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2954197 Reviewed-by: Boris Mittelberg <bmbm@google.com>
-rw-r--r--board/brya/usbc_config.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/board/brya/usbc_config.c b/board/brya/usbc_config.c
index d4759b402e..2436c5472c 100644
--- a/board/brya/usbc_config.c
+++ b/board/brya/usbc_config.c
@@ -386,3 +386,8 @@ void retimer_interrupt(enum gpio_signal signal)
* TODO(b/179513527): add USB-C support
*/
}
+
+__override bool board_is_dts_port(int port)
+{
+ return port == USBC_PORT_C0;
+}