aboutsummaryrefslogtreecommitdiff
path: root/board/st/common/stusb160x.h
diff options
context:
space:
mode:
Diffstat (limited to 'board/st/common/stusb160x.h')
-rw-r--r--board/st/common/stusb160x.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/board/st/common/stusb160x.h b/board/st/common/stusb160x.h
new file mode 100644
index 0000000000..fe39840b41
--- /dev/null
+++ b/board/st/common/stusb160x.h
@@ -0,0 +1,10 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+/*
+ * Copyright (C) 2020, STMicroelectronics
+ */
+
+#ifdef CONFIG_TYPEC_STUSB160X
+int stusb160x_cable_connected(void);
+#else
+int stusb160x_cable_connected(void) { return -ENODEV; }
+#endif