From fd2276ad5b6403338df5dd096195cb5ceadaeae6 Mon Sep 17 00:00:00 2001 From: Caveh Jalali Date: Thu, 10 Jun 2021 14:58:25 -0700 Subject: 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 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2954197 Reviewed-by: Boris Mittelberg --- board/brya/usbc_config.c | 5 +++++ 1 file changed, 5 insertions(+) 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; +} -- cgit v1.2.1