Xilinx/qemu

cadence_i2c.c DATA register issue

libolingjl opened this issue · 0 comments

In i2c driver, I use below code to push DATA fifo:
for (int i = 0; i < 14; i++)
REG_DATA = data;
I want the size of the FIFO to be 14 when I finish executing the above statement, because the CPU is much faster than I2C.
But in cadence_i2c.c, each write register triggers the i2c_send, and after the above statement is executed, the FIFO is still empty. This can cause problems for the operation of the drive.