From 17d8d87c9b5881f4ad3f8f4077f271698e741135 Mon Sep 17 00:00:00 2001 From: Wai-Hong Tam Date: Wed, 22 Aug 2018 13:52:25 -0700 Subject: cheza: Configure ANX3429 interrupt as open-drain This interrupt pin by default is a push-pull. It causes leak to EC VSPI power during EC watchdog reset. As in our design, we use this interrupt pin as open-drain. Should configure the register to make it open-drain. BRANCH=none BUG=b:112906111 TEST=Flashed the EC image to Cheza rev-2 board. Typed "reboot" command and then EC reset properly. Change-Id: Iee5db3cb5b5291778d97dee4fc70369d34344ce7 Signed-off-by: Wai-Hong Tam Reviewed-on: https://chromium-review.googlesource.com/1185871 Reviewed-by: Alexandru M Stan Reviewed-by: Stephen Boyd --- include/usb_pd_tcpm.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include/usb_pd_tcpm.h') diff --git a/include/usb_pd_tcpm.h b/include/usb_pd_tcpm.h index be1139b0e1..08402dda07 100644 --- a/include/usb_pd_tcpm.h +++ b/include/usb_pd_tcpm.h @@ -263,11 +263,17 @@ enum tcpc_alert_polarity { TCPC_ALERT_ACTIVE_HIGH, }; +enum tcpc_alert_open_drain { + TCPC_ALERT_PUSH_PULL = 0, + TCPC_ALERT_OPEN_DRAIN, +}; + struct tcpc_config_t { int i2c_host_port; int i2c_slave_addr; const struct tcpm_drv *drv; enum tcpc_alert_polarity pol; + enum tcpc_alert_open_drain od; }; /** -- cgit v1.2.1