Re: [Qemu-devel] [PATCH v2 4/4] Add qtest support for i.MX I2C device emulation.

2013-05-04 Thread Jean-Christophe DUBOIS
On 05/04/2013 06:53 PM, Andreas Färber wrote: Am 04.05.2013 16:09, schrieb Jean-Christophe DUBOIS: +#include "qemu/bswap.h" Is this one needed? No, I will remove it. +enum IMXI2CRegisters { +IMX_I2C_IADR = 0x00, +IMX_I2C_IFDR = 0x04, +IMX_I2C_I2CR = 0x08, +IMX_I2C_I2SR = 0x

Re: [Qemu-devel] [PATCH v2 4/4] Add qtest support for i.MX I2C device emulation.

2013-05-04 Thread Andreas Färber
Am 04.05.2013 16:09, schrieb Jean-Christophe DUBOIS: > This is using a ds1338 RTC chip on the i2c bus. This RTC > chip is nop present on the real board > > Signed-off-by: Jean-Christophe DUBOIS > --- > tests/Makefile | 3 + > tests/ds1338-test.c| 64 ++ > tests/libqos/

[Qemu-devel] [PATCH v2 4/4] Add qtest support for i.MX I2C device emulation.

2013-05-04 Thread Jean-Christophe DUBOIS
This is using a ds1338 RTC chip on the i2c bus. This RTC chip is nop present on the real board Signed-off-by: Jean-Christophe DUBOIS --- tests/Makefile | 3 + tests/ds1338-test.c| 64 ++ tests/libqos/i2c-imx.c | 224 + te