From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30913 invoked by alias); 8 Feb 2012 09:55:25 -0000 Received: (qmail 30906 invoked by uid 22791); 8 Feb 2012 09:55:25 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from hagrid.ecoscentric.com (HELO mail.ecoscentric.com) (212.13.207.197) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 08 Feb 2012 09:55:02 +0000 Received: from localhost (hagrid.ecoscentric.com [127.0.0.1]) by mail.ecoscentric.com (Postfix) with ESMTP id E51A02F7800A for ; Wed, 8 Feb 2012 09:55:00 +0000 (GMT) Received: from mail.ecoscentric.com ([127.0.0.1]) by localhost (hagrid.ecoscentric.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id d-4wVYCMPta1; Wed, 8 Feb 2012 09:55:00 +0000 (GMT) From: bugzilla-daemon@bugs.ecos.sourceware.org To: ecos-bugs@ecos.sourceware.org Subject: [Bug 1001397] I2C driver for Kinetic microcontrollers X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: eCos X-Bugzilla-Component: Patches and contributions X-Bugzilla-Keywords: X-Bugzilla-Severity: enhancement X-Bugzilla-Who: ilijak@siva.com.mk X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: low X-Bugzilla-Assigned-To: unassigned@bugs.ecos.sourceware.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: In-Reply-To: References: X-Bugzilla-URL: http://bugs.ecos.sourceware.org/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Date: Wed, 08 Feb 2012 09:55:00 -0000 Message-Id: <20120208095459.3F5722F78001@mail.ecoscentric.com> Mailing-List: contact ecos-bugs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: ecos-bugs-owner@sourceware.org X-SW-Source: 2012/txt/msg00231.txt.bz2 Please do not reply to this email. Use the web interface provided at: http://bugs.ecos.sourceware.org/show_bug.cgi?id=1001397 --- Comment #15 from Ilija Kocho 2012-02-08 09:54:55 GMT --- (In reply to comment #14) > (In reply to comment #13) > > -Can I2C clock be defined on device basis like at SPI? > > Yes, I think it should be possible to change the bus speed when the device > takes over the mastership of the bus, I shall look into that. > > > Next is general, could it be possible to provide user with option to set I2C > > speed (clock) rather than prescaler value? > > I can't see any way to translate the SCL/SDA values that are need to calculate > the i2c speed into the MUL + ICR values that need to go into the frequency > divider register; the RM just provides a one big LUT for this. Yeah, it's kind of reverse calculation. I had similar problem with SPI and I use a brute force algorithm. But some SPI devices (example MMC) want to set speed on their own so having this calculation is necessary anyway. In I2C world it may be not the case (frankly, I have no insight) so it could be just "nice" but not mandatory. Ilija -- Configure bugmail: http://bugs.ecos.sourceware.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.