1 /* SPDX-License-Identifier: BSD-2-Clause */ 2 /* 3 * Copyright (C) 2020 Foundries.io 4 * Jorge Ramirez-Ortiz <jorge@foundries.io> 5 */ 6 #ifndef __DRIVERS_IMX_I2C_H 7 #define __DRIVERS_IMX_I2C_H 8 9 #include <stdint.h> 10 #include <tee_api_types.h> 11 12 TEE_Result imx_i2c_write(uint8_t bid, uint8_t chip, const uint8_t *p, int l); 13 TEE_Result imx_i2c_read(uint8_t bid, uint8_t chip, uint8_t *p, int l); 14 TEE_Result imx_i2c_probe(uint8_t bid, uint8_t chip); 15 TEE_Result imx_i2c_init(uint8_t bid, int bps); 16 17 #endif /*__DRIVERS_IMX_I2C_H*/ 18