summaryrefslogtreecommitdiff
path: root/include/config.h
diff options
context:
space:
mode:
authorRob Barnes <robbarnes@google.com>2021-01-29 07:20:54 -0700
committerCommit Bot <commit-bot@chromium.org>2021-05-26 00:15:34 +0000
commitb657c3e96d1809e82554f8c859afffba358a3567 (patch)
tree96ffeeda502d3b2fbec7cf472a56d0370c6d5c1c /include/config.h
parent4304fe55704c5234545d06223f9c632e5b9fe8d4 (diff)
downloadchrome-ec-b657c3e96d1809e82554f8c859afffba358a3567.tar.gz
usb_common: Assert CCD_MODE when DTS connected
Drive CCD_MODE_ODL from EC when EC sees DTS connected to CCD port. This will fix some cases where the Cr50 is not able to detect that a CCD debug cable has been connected. BUG=b:175056327 TEST=Connect/disconnect SuzyQ cable, see assert/unassert in log Check gpioget on CR50 and ec, confirm CCD_MODE_ODL is correct Connect/disconnect charger, do not see assert/unassert in log Repeat with ServoV4 BRANCH=None Change-Id: I411e75a47f2e1303ddbd9caa63a9417630c99b46 Signed-off-by: Rob Barnes <robbarnes@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2659282 Reviewed-by: Denis Brockus <dbrockus@chromium.org>
Diffstat (limited to 'include/config.h')
-rw-r--r--include/config.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/include/config.h b/include/config.h
index a7c063298b..ab2e5bf23b 100644
--- a/include/config.h
+++ b/include/config.h
@@ -5261,6 +5261,19 @@
#undef CONFIG_ZEPHYR
#endif
+/*
+ * Define the following to drive CCD_MODE_ODL when a DTS accessory is
+ * connected to the CCD USBC port.
+ *
+ * GPIO_CCD_MODE_ODL should be configured with GPIO_ODR_HIGH flag
+ */
+#undef CONFIG_ASSERT_CCD_MODE_ON_DTS_CONNECT
+
+/*
+ * The USB port used for CCD. Defaults to 0/C0.
+ */
+#define CONFIG_CCD_USBC_PORT_NUMBER 0
+
/*****************************************************************************/
/*
* Include board and core configs, since those hold the CONFIG_ constants for a