Xilinx / qemu

Xilinx's fork of Quick EMUlator (QEMU) with improved support and modelling for the Xilinx platforms.

Home Page:https://xilinx-wiki.atlassian.net/wiki/spaces/A/pages/821395464/QEMU+User+Documentation

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cadence_i2c.c DATA register issue

libolingjl opened this issue · comments

commented

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.