summaryrefslogtreecommitdiff
path: root/zephyr/shim/include/usbc/tcpc_raa489000.h
diff options
context:
space:
mode:
Diffstat (limited to 'zephyr/shim/include/usbc/tcpc_raa489000.h')
-rw-r--r--zephyr/shim/include/usbc/tcpc_raa489000.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/zephyr/shim/include/usbc/tcpc_raa489000.h b/zephyr/shim/include/usbc/tcpc_raa489000.h
new file mode 100644
index 0000000000..47e7706ae1
--- /dev/null
+++ b/zephyr/shim/include/usbc/tcpc_raa489000.h
@@ -0,0 +1,21 @@
+/* Copyright 2022 The ChromiumOS Authors
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
+ */
+
+#include "driver/tcpm/raa489000.h"
+
+#include <zephyr/devicetree.h>
+
+#define RAA489000_TCPC_COMPAT renesas_raa489000
+
+#define TCPC_CONFIG_RAA489000(id) \
+ { \
+ .bus_type = EC_BUS_TYPE_I2C, \
+ .i2c_info = { \
+ .port = I2C_PORT_BY_DEV(id), \
+ .addr_flags = DT_REG_ADDR(id), \
+ }, \
+ .drv = &raa489000_tcpm_drv, \
+ .flags = DT_PROP(id, tcpc_flags), \
+ },