Search code examples
qemui2c

How to emulate an i2c device on QEMU x86?


I am work on QEMU 1.5/1.6, but haven't seen any docs for adding an device on i2c bus.
Can any one help?
Thanks!


Solution

  • OK, nobody interested in this issue.
    I post my own solution. Cause QEMU does not support I2C bus level data transfer, it has delay when transfer multi-touch data from QEMU to guest Linux.
    So we create a shared memory on guest Linux kernel driver, and QEMU transfers the data directly through the shared memory, and it has a good speed.