summaryrefslogtreecommitdiff
path: root/board/asurada/board.h
diff options
context:
space:
mode:
authorTing Shen <phoenixshen@google.com>2020-09-09 19:18:13 +0800
committerCommit Bot <commit-bot@chromium.org>2020-09-15 08:26:56 +0000
commit73430b61121309fbc783a725650cd6c6e77467ea (patch)
treec43cfaded23c51d616bbac261ebecbbd46de1639 /board/asurada/board.h
parenta4fcebc675bea0f5d3911f03947ab940eb70020d (diff)
downloadchrome-ec-73430b61121309fbc783a725650cd6c6e77467ea.tar.gz
asurada: implement SBU OVP interrupt
This CL implemented over-voltage protection handler for Asurada. IT5205 fires an interrupt when over-voltage is detected, but not on recovered. After over-voltage happened, EC have to poll until the OVP state is cleared. To prevent heavy i2c transaction, this CL implements an asynchronous polling algorithm that doubling the polling interval each time, up to 1 minute. BUG=b:167499422 TEST=On reworked asurada, verify "OVP triggered / cleared" displayed when ovp happens. BRANCH=none Signed-off-by: Ting Shen <phoenixshen@google.com> Change-Id: I5e82e0ef8bc824e52e4c6b5cddf0e3d4d76c8ec2 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2402599 Reviewed-by: Eric Yilun Lin <yllin@chromium.org> Commit-Queue: Ting Shen <phoenixshen@chromium.org> Tested-by: Ting Shen <phoenixshen@chromium.org>
Diffstat (limited to 'board/asurada/board.h')
-rw-r--r--board/asurada/board.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/board/asurada/board.h b/board/asurada/board.h
index 9498b80370..d99de9f60a 100644
--- a/board/asurada/board.h
+++ b/board/asurada/board.h
@@ -96,6 +96,7 @@
#define CONFIG_USBC_VCONN_SWAP
#define CONFIG_USB_DRP_ACC_TRYSRC
#define CONFIG_USB_MUX_IT5205 /* C0 */
+#define CONFIG_USB_MUX_IT5205H_SBU_OVP
#define CONFIG_USB_MUX_PS8743 /* C1 */
#define CONFIG_USB_PD_ALT_MODE
#define CONFIG_USB_PD_ALT_MODE_DFP