From owner-freebsd-arm@FreeBSD.ORG Fri Mar 2 17:19:44 2007 Return-Path: X-Original-To: freebsd-arm@FreeBSD.org Delivered-To: freebsd-arm@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 7637716A403 for ; Fri, 2 Mar 2007 17:19:44 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (vc4-2-0-87.dsl.netrack.net [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id 1B20313C46B for ; Fri, 2 Mar 2007 17:19:43 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.13.4/8.13.4) with ESMTP id l22HHiPg028793; Fri, 2 Mar 2007 10:17:44 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Fri, 02 Mar 2007 10:17:44 -0700 (MST) Message-Id: <20070302.101744.115917142.imp@bsdimp.com> To: krassi@bulinfo.net From: Warner Losh In-Reply-To: <45E83CAB.1090005@bulinfo.net> References: <45E83CAB.1090005@bulinfo.net> X-Mailer: Mew version 3.3 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0 (harmony.bsdimp.com [127.0.0.1]); Fri, 02 Mar 2007 10:17:44 -0700 (MST) Cc: freebsd-arm@FreeBSD.org Subject: Re: IIC support? X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Mar 2007 17:19:44 -0000 > I have problems to access the iic eeprom from userland. Even after set > SCAN_IICBUS in iicbus.c nothing has been detected. I have made some > tests from the bootloader to read/write from/to the eeprom and they work. > Is there any known problems with TWI or any differences between board > settings? The IIC bus is not a self enumerating bus. Bad things happen when you go out and try to 'probe' it, although often you can get away with that. FreeBSD takes a conservative approach. You need hints for each iic device on bus that you have on your board. Warner