summaryrefslogtreecommitdiff
path: root/include/sbi_utils/i2c/dw_i2c.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/sbi_utils/i2c/dw_i2c.h')
-rw-r--r--include/sbi_utils/i2c/dw_i2c.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/include/sbi_utils/i2c/dw_i2c.h b/include/sbi_utils/i2c/dw_i2c.h
new file mode 100644
index 0000000..88703e0
--- /dev/null
+++ b/include/sbi_utils/i2c/dw_i2c.h
@@ -0,0 +1,21 @@
+/*
+ * SPDX-License-Identifier: BSD-2-Clause
+ *
+ * Copyright (c) 2022 StarFive Technology Co., Ltd.
+ *
+ * Author: Minda Chen <minda.chen@starfivetech.com>
+ */
+
+#ifndef __DW_I2C_H__
+#define __DW_I2C_H__
+
+#include <sbi_utils/i2c/i2c.h>
+
+int dw_i2c_init(struct i2c_adapter *, int nodeoff);
+
+struct dw_i2c_adapter {
+ unsigned long addr;
+ struct i2c_adapter adapter;
+};
+
+#endif