From 48b421c7ffa43b09d2278f4c60ff4772df69dfee Mon Sep 17 00:00:00 2001 From: Boris Mittelberg Date: Thu, 8 Jul 2021 14:46:51 -0700 Subject: TCPC: add flag to disable debug accessory control The NCT38xx TCPC takes over the GPIO we otherwise use to control the Burnside Bridge on Brya P1 devices. To get the BB out of reset we add the flag to tcpc_config structure to take the control back to TCPM. BRANCH=none BUG=b:191516281 TEST=running deployment in the lab; running FAFT PD test Signed-off-by: Boris Mittelberg Change-Id: I73ddf26964cc6363640ddd80fbcbf353704d3198 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3016406 Reviewed-by: caveh jalali Reviewed-by: Aseda Aboagye Reviewed-by: Diana Z --- include/usb_pd_tcpm.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/usb_pd_tcpm.h') diff --git a/include/usb_pd_tcpm.h b/include/usb_pd_tcpm.h index 584f3ac321..0902d411b5 100644 --- a/include/usb_pd_tcpm.h +++ b/include/usb_pd_tcpm.h @@ -478,12 +478,14 @@ struct tcpm_drv { * Bit 3 --> Set to 1 if TCPC is using TCPCI Revision 2.0 * Bit 4 --> Set to 1 if TCPC is using TCPCI Revision 2.0 but does not support * the vSafe0V bit in the EXTENDED_STATUS_REGISTER + * Bit 5 --> Set to 1 to prevent TCPC setting debug accessory control */ #define TCPC_FLAGS_ALERT_ACTIVE_HIGH BIT(0) #define TCPC_FLAGS_ALERT_OD BIT(1) #define TCPC_FLAGS_RESET_ACTIVE_HIGH BIT(2) #define TCPC_FLAGS_TCPCI_REV2_0 BIT(3) #define TCPC_FLAGS_TCPCI_REV2_0_NO_VSAFE0V BIT(4) +#define TCPC_FLAGS_NO_DEBUG_ACC_CONTROL BIT(5) struct tcpc_config_t { enum ec_bus_type bus_type; /* enum ec_bus_type */ -- cgit v1.2.1