i2c: Update drivers

Adds support for 8 byte transfers needed by touch driver changes.
This commit is contained in:
CTCaer
2020-03-13 10:25:27 +02:00
parent 9697067466
commit 144d6fd3f6
4 changed files with 44 additions and 9 deletions

View File

@@ -39,6 +39,7 @@
void i2c_init(u32 idx);
int i2c_send_buf_small(u32 idx, u32 x, u32 y, u8 *buf, u32 size);
int i2c_recv_buf(u8 *buf, u32 size, u32 idx, u32 x);
int i2c_recv_buf_small(u8 *buf, u32 size, u32 idx, u32 x, u32 y);
int i2c_send_byte(u32 idx, u32 x, u32 y, u8 b);
u8 i2c_recv_byte(u32 idx, u32 x, u32 y);