Konstantin Porotchkin | 73cd881 | 2018-02-26 16:06:35 +0200 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2018 Marvell International Ltd. |
| 3 | * |
| 4 | * SPDX-License-Identifier: BSD-3-Clause |
| 5 | * https://spdx.org/licenses |
| 6 | */ |
| 7 | |
Antonio Nino Diaz | 5eb8837 | 2018-11-08 10:20:19 +0000 | [diff] [blame] | 8 | #ifndef I2C_H |
| 9 | #define I2C_H |
Konstantin Porotchkin | 73cd881 | 2018-02-26 16:06:35 +0200 | [diff] [blame] | 10 | |
| 11 | |
| 12 | void i2c_init(void); |
| 13 | |
| 14 | int i2c_read(uint8_t chip, |
| 15 | unsigned int addr, int alen, uint8_t *buffer, int len); |
| 16 | |
| 17 | int i2c_write(uint8_t chip, |
| 18 | unsigned int addr, int alen, uint8_t *buffer, int len); |
Antonio Nino Diaz | 5eb8837 | 2018-11-08 10:20:19 +0000 | [diff] [blame] | 19 | |
| 20 | #endif /* I2C_H */ |