summaryrefslogtreecommitdiff
path: root/driver/tcpm/stm32gx.h
diff options
context:
space:
mode:
authorScott Collyer <scollyer@google.com>2020-05-17 19:20:25 -0700
committerCommit Bot <commit-bot@chromium.org>2020-09-29 23:52:41 +0000
commitfc9c9ab0f69a5708fbb6efb3422ca4e8668efa4b (patch)
tree44240248daa3d4de92412835bd28ae8747814b4b /driver/tcpm/stm32gx.h
parentcf21f6fc6e182fb39447686934efc2be1d79de7a (diff)
downloadchrome-ec-fc9c9ab0f69a5708fbb6efb3422ca4e8668efa4b.tar.gz
tcpm: Add tpcm driver for stm32gx chips
This CL adds tcpm driver for the STM32Gx family of chips which have a ucpd peripheral for its on-chip type-c/usb-pd block. Ah this phase of development, only the methods required for type-c operation are implemented. BUG=b:167601672 BRANCH=None TEST=verfied type-c attaches properly on quiche Signed-off-by: Scott Collyer <scollyer@google.com> Change-Id: Ia23eb4e346682ab3a9f8c7da2b5519c330b67936 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2206155 Commit-Queue: Scott Collyer <scollyer@chromium.org> Tested-by: Scott Collyer <scollyer@chromium.org> Reviewed-by: Diana Z <dzigterman@chromium.org>
Diffstat (limited to 'driver/tcpm/stm32gx.h')
-rw-r--r--driver/tcpm/stm32gx.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/driver/tcpm/stm32gx.h b/driver/tcpm/stm32gx.h
new file mode 100644
index 0000000000..de6a803d52
--- /dev/null
+++ b/driver/tcpm/stm32gx.h
@@ -0,0 +1,14 @@
+/* Copyright 2020 The Chromium OS Authors. All rights reserved.
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
+ */
+
+/* USB Power delivery port management */
+#ifndef __CROS_EC_DRIVER_TCPM_STM32GX_H
+#define __CROS_EC_DRIVER_TCPM_STM32GX_H
+
+
+extern const struct tcpm_drv stm32gx_tcpm_drv;
+
+
+#endif /* __CROS_EC_DRIVER_TCPM_STM32GX_H */