summaryrefslogtreecommitdiff
path: root/zephyr/shim/include/usbc/tcpc_nct38xx.h
diff options
context:
space:
mode:
Diffstat (limited to 'zephyr/shim/include/usbc/tcpc_nct38xx.h')
-rw-r--r--zephyr/shim/include/usbc/tcpc_nct38xx.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/zephyr/shim/include/usbc/tcpc_nct38xx.h b/zephyr/shim/include/usbc/tcpc_nct38xx.h
new file mode 100644
index 0000000000..fa60d1caa9
--- /dev/null
+++ b/zephyr/shim/include/usbc/tcpc_nct38xx.h
@@ -0,0 +1,18 @@
+/* Copyright 2021 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.
+ */
+
+#ifndef __CROS_EC_TCPC_NCT38XX_H
+#define __CROS_EC_TCPC_NCT38XX_H
+
+/**
+ * @brief Get the NCT38XX GPIO device from the TCPC port enumeration
+ *
+ * @param port The enumeration of TCPC port
+ *
+ * @return NULL if failed, otherwise a pointer to NCT38XX GPIO device
+ */
+const struct device *nct38xx_get_gpio_device_from_port(const int port);
+
+#endif /* __CROS_EC_TCPC_NCT38XX_H */