Received: from eggs.gnu.org ([2001:4830:134:3::10]:50452) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UjwAm-0003tL-VI for qemu-devel@nongnu.org; Tue, 04 Jun 2013 14:41:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UjwAg-0003Hq-T0 for qemu-devel@nongnu.org; Tue, 04 Jun 2013 14:41:32 -0400 Received: from zose-mta15.web4all.fr ([178.33.204.94]:53710) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UjwAg-0003Hi-NS for qemu-devel@nongnu.org; Tue, 04 Jun 2013 14:41:26 -0400 Message-ID: <51AE34D0.8080208@tribudubois.net> Date: Tue, 04 Jun 2013 20:41:20 +0200 From: Jean-Christophe DUBOIS MIME-Version: 1.0 References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v5 4/4] Add qtest support for i.MX I2C device emulation. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Crosthwaite Cc: Peter Maydell , peter.chubb@nicta.com.au, qemu-devel@nongnu.org, Jan Kiszka , =?ISO-8859-1?Q?Andreas_F=E4rber?= On 06/04/2013 05:24 AM, Peter Crosthwaite wrote: > Hi Peter, > > On Tue, Jun 4, 2013 at 1:21 AM, Peter Maydell wrote: >> On 8 May 2013 09:28, Jean-Christophe DUBOIS wrote: >>> This is using a ds1338 RTC chip on the i2c bus. This RTC >>> chip is not present on the real board. >> Ideally this should work by the test driver passing >> a "-device ds1338,something,something" argument to >> instantiate the RTC and connect it to the I2C bus, >> rather than the board doing it if it knows it's being >> run by qtest. Does the i2c interface let us do that? >> > CC Jan, I think he had some success with this in the at24 work, so I > think the answer is yes. And I cant see any reason why not - I2C is > properly QOMified AFAIK. > > Regards, > peter Is there some tutorial or something? How to select the i2C master bus (out of several available)? How to integrate this argument passing in qtest framework? Thanks JC > >>> + >>> + /* check retreived time againt local time */ >> "retrieve", "against" >> >> thanks >> -- PMM >>