xref: /rk3399_ARM-atf/include/drivers/marvell/i2c.h (revision 61f72a34250d063da67f4fc2b0eb8c3fda3376be)
1 /*
2  * Copyright (C) 2018 Marvell International Ltd.
3  *
4  * SPDX-License-Identifier:     BSD-3-Clause
5  * https://spdx.org/licenses
6  */
7 
8 #ifndef _I2C_H_
9 #define _I2C_H_
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);
19 #endif
20