mirror of
https://github.com/riscv-software-src/opensbi.git
synced 2025-08-24 23:41:23 +01:00

The i2c driver subsystem does not need any extra data, so it can use `struct fdt_driver` directly. It always initializes the driver for a specific DT node. Signed-off-by: Samuel Holland <samuel.holland@sifive.com> Reviewed-by: Anup Patel <anup@brainfault.org>
21 lines
395 B
C
21 lines
395 B
C
/*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*
|
|
* Copyright (c) 2021 YADRO
|
|
*
|
|
* Authors:
|
|
* Nikita Shubin <n.shubin@yadro.com>
|
|
*/
|
|
|
|
#ifndef __FDT_I2C_H__
|
|
#define __FDT_I2C_H__
|
|
|
|
#include <sbi_utils/fdt/fdt_driver.h>
|
|
#include <sbi_utils/i2c/i2c.h>
|
|
|
|
/** Get I2C adapter identified by nodeoff */
|
|
int fdt_i2c_adapter_get(const void *fdt, int nodeoff,
|
|
struct i2c_adapter **out_adapter);
|
|
|
|
#endif
|