summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorShawn Nematbakhsh <shawnn@chromium.org>2016-06-02 12:59:11 -0700
committerchrome-bot <chrome-bot@chromium.org>2016-06-02 22:25:46 -0700
commitfcc09a2b7d1d63ada5900bdc0a3206c748f7cbdd (patch)
treed842170f0949feafbe71064a13c678f77ef3f7ce /include
parent4b680119cc1de2dda7c0b625c4fea1d1e964189a (diff)
downloadchrome-ec-fcc09a2b7d1d63ada5900bdc0a3206c748f7cbdd.tar.gz
usb_charger: Support inverted 5V_EN GPIO polarity
Kevin uses inverted polarity (low = enable 5V output), so add a new CONFIG to support this. BUG=chrome-os-partner:53777 BRANCH=None TEST=Manual on Kevin. Enable USB charger tasks, verify that VBUS is properly detected on no-battery case. Change-Id: Ifb3e5fa9db1973d9826435712711f0cb0fd1d3a5 Signed-off-by: Shawn Nematbakhsh <shawnn@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/349260 Commit-Ready: Shawn N <shawnn@chromium.org> Tested-by: Shawn N <shawnn@chromium.org> Reviewed-by: Vincent Palatin <vpalatin@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 a0caa9d5c3..32f4214a12 100644
--- a/include/config.h
+++ b/include/config.h
@@ -1834,6 +1834,12 @@
/* Define if this board can act as a dual-role PD port (source and sink) */
#undef CONFIG_USB_PD_DUAL_ROLE
+/*
+ * Define if VBUS source GPIOs (GPIO_USB_C*_5V_EN) are active-low (and named
+ * (..._L) rather than default active-high.
+ */
+#undef CONFIG_USB_PD_5V_EN_ACTIVE_LOW
+
/* Dynamic USB PD source capability */
#undef CONFIG_USB_PD_DYNAMIC_SRC_CAP