mirror of
https://github.com/Fishwaldo/opensbi.git
synced 2025-03-29 02:01:21 +00:00
Starfive JH7110 I2C IP is synopsys designware. Minimum StarFIve I2C driver to read/send bytes over I2C bus. This allows querying information and perform operation of onboard PMIC, as well as power-off and reset. Signed-off-by: Minda Chen <minda.chen@starfivetech.com> Reviewed-by: Anup Patel <anup@brainfault.org>
21 lines
372 B
C
21 lines
372 B
C
/*
|
|
* 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
|