summaryrefslogtreecommitdiff
path: root/include/usb_pd_tcpm.h
diff options
context:
space:
mode:
authorWai-Hong Tam <waihong@google.com>2018-08-22 13:52:25 -0700
committerchrome-bot <chrome-bot@chromium.org>2018-08-23 17:42:52 -0700
commit17d8d87c9b5881f4ad3f8f4077f271698e741135 (patch)
tree377bdb635d4a07c58c20c2fa8a74c1195cff7f7f /include/usb_pd_tcpm.h
parentbb7cee5a6b9a160c9df6a073ce16d5595d1433b4 (diff)
downloadchrome-ec-17d8d87c9b5881f4ad3f8f4077f271698e741135.tar.gz
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 <waihong@google.com> Reviewed-on: https://chromium-review.googlesource.com/1185871 Reviewed-by: Alexandru M Stan <amstan@chromium.org> Reviewed-by: Stephen Boyd <swboyd@chromium.org>
Diffstat (limited to 'include/usb_pd_tcpm.h')
-rw-r--r--include/usb_pd_tcpm.h6
1 files changed, 6 insertions, 0 deletions
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;
};
/**