summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAlec Berg <alecaberg@chromium.org>2015-06-04 11:30:34 -0700
committerChromeOS Commit Bot <chromeos-commit-bot@chromium.org>2015-06-05 22:35:05 +0000
commit58719e30730e6420533514dabd27c188e60ae607 (patch)
tree8015dd22c5808e88b648cd52463bf59a34b0a734 /include
parentbdc680d8ed7ea24cdfb1b5498f73a1008c71ad37 (diff)
downloadchrome-ec-58719e30730e6420533514dabd27c188e60ae607.tar.gz
pd: use pdcmd task to handle tcpc interrupt
Use the PDCMD task to handle PD MCU interrupts, and use it to trigger the tcpc_alert(). Note this fixes bug on Glados and Oak that could cause watchdog reset because tcpc_alert() which uses i2c to talk to tcpc was called from hooks task and can delay tickling watchdog. BUG=chrome-os-partner:40920 BRANCH=none TEST=load on glados and plug zinger into both ports many times. make sure we get a stable contract and no watchdog reset. Change-Id: I37625fae2ca0057d2ee8fa1eea6974f2d26d1b91 Signed-off-by: Alec Berg <alecaberg@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/275296 Reviewed-by: Scott Collyer <scollyer@chromium.org> Reviewed-by: Shawn N <shawnn@chromium.org>
Diffstat (limited to 'include')
-rw-r--r--include/config.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/config.h b/include/config.h
index b867a440ab..63371dcd6c 100644
--- a/include/config.h
+++ b/include/config.h
@@ -1328,6 +1328,12 @@
/* The size in bytes of the FIFO used for PD events logging */
#undef CONFIG_USB_PD_LOG_SIZE
+/*
+ * Use if PD MCU controls charging (selecting charging port and input
+ * current limit).
+ */
+#undef CONFIG_USB_PD_MCU_CHG_CTRL
+
/* Define if USB-PD device has no way of detecting USB VBUS */
#undef CONFIG_USB_PD_NO_VBUS_DETECT