From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7394 invoked by alias); 7 Nov 2008 16:22:34 -0000 Received: (qmail 7341 invoked by uid 22791); 7 Nov 2008 16:22:33 -0000 X-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org Received: from londo.lunn.ch (HELO londo.lunn.ch) (80.238.139.98) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 07 Nov 2008 16:21:43 +0000 Received: from lunn by londo.lunn.ch with local (Exim 3.36 #1 (Debian)) id 1KyTys-00037N-00; Fri, 07 Nov 2008 17:14:42 +0100 Date: Fri, 07 Nov 2008 16:22:00 -0000 From: Andrew Lunn To: vibisreenivasan Cc: eCos Devel Subject: Re: i2c driver for at91sam7x Message-ID: <20081107161442.GS20110@lunn.ch> References: <1226070563.4223.2.camel@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1226070563.4223.2.camel@localhost.localdomain> User-Agent: Mutt/1.5.18 (2008-05-17) X-IsSubscribed: yes Mailing-List: contact ecos-devel-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: ecos-devel-owner@ecos.sourceware.org X-SW-Source: 2008-11/txt/msg00006.txt.bz2 On Fri, Nov 07, 2008 at 08:39:23PM +0530, vibisreenivasan wrote: > hello, > Is there any one working on i2c bus driver for at91sam7x. I know eCosCentric have one, but you need to pay for that. Other people have mentioned writing i2c drivers as well. However, you need to be careful. The i2c hardware is broken. The Linux kernel marks it as such. See: http://www.at91.com/samphpbb/viewtopic.php?t=4665&sid=1032a7cdc95b571dc784adb204d78d33 >From what i understand, if you are doing transfers of 1 byte, it is O.K, but multiple byte transfers can break. Writing a GPIO based driver should be reasonably easy as far as i understand and does not suffer from these problems. Andrew