summaryrefslogtreecommitdiff
path: root/zephyr/shim/include/usbc/ppc.h
diff options
context:
space:
mode:
Diffstat (limited to 'zephyr/shim/include/usbc/ppc.h')
-rw-r--r--zephyr/shim/include/usbc/ppc.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/zephyr/shim/include/usbc/ppc.h b/zephyr/shim/include/usbc/ppc.h
new file mode 100644
index 0000000000..a52b0cafa1
--- /dev/null
+++ b/zephyr/shim/include/usbc/ppc.h
@@ -0,0 +1,14 @@
+/* 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 ZEPHYR_CHROME_USBC_PPC_H
+#define ZEPHYR_CHROME_USBC_PPC_H
+
+#include <device.h>
+#include <devicetree.h>
+
+#define PPC_USBC_PORT(id) DT_REG_ADDR(DT_PARENT(id))
+
+#endif /* ZEPHYR_CHROME_USBC_PPC_H */