From owner-freebsd-embedded@FreeBSD.ORG Sun Dec 14 17:15:18 2008 Return-Path: Delivered-To: freebsd-embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4E7E1106564A; Sun, 14 Dec 2008 17:15:18 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id 121CE8FC08; Sun, 14 Dec 2008 17:15:17 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.14.2/8.14.1) with ESMTP id mBEHDjUg014928; Sun, 14 Dec 2008 10:13:45 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Sun, 14 Dec 2008 09:13:57 -0700 (MST) Message-Id: <20081214.091357.1649769204.imp@bsdimp.com> To: brix@freebsd.org From: "M. Warner Losh" In-Reply-To: <20081214145807.GA18293@tirith.brixandersen.dk> References: <20081214145807.GA18293@tirith.brixandersen.dk> X-Mailer: Mew version 5.2 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: freebsd-embedded@freebsd.org Subject: Re: iicbus(4) speed selection X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 Dec 2008 17:15:18 -0000 In message: <20081214145807.GA18293@tirith.brixandersen.dk> Henrik Brix Andersen writes: : Hi, : : One of the parameters to our iicbus_reset method is a speed selection, : which can be either IIC_SLOW, IIC_FAST or IIC_FASTEST. : : Both arm/at91/at91_twi.c and dev/pcf/pcf.c interpret these as 1.5kb/s, : 45kb/s and 90kb/s respectively, which has me wondering. Knowing I2C, I : would have expected something like 10kb/s, 100kb/s and 400kb/s. : : Does anybody know why these speeds were selected when implementing the : above mentioned drivers? Are new drivers required to match these : speeds? These speeds were pulled out of the air. I copied pcf's conventions. I think that really on the at91_twi the speeds were set in the TWI's hardware and the comments are just wrong. Warner