summaryrefslogtreecommitdiff
path: root/include/sbi_utils/i2c/dw_i2c.h
blob: 88703e057ff4bed44d385516e562e9771949d6be (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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