From owner-freebsd-mips@FreeBSD.ORG Tue Feb 16 10:37:58 2010 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4248B106566B for ; Tue, 16 Feb 2010 10:37:58 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-iw0-f175.google.com (mail-iw0-f175.google.com [209.85.223.175]) by mx1.freebsd.org (Postfix) with ESMTP id 0FFB68FC13 for ; Tue, 16 Feb 2010 10:37:57 +0000 (UTC) Received: by iwn5 with SMTP id 5so2624615iwn.9 for ; Tue, 16 Feb 2010 02:37:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=VOhZYAbeORi1XCpW5SFZtFUvVSGAL4NwI2S1NkDywVg=; b=Agz5lM62/GN6K5pl087XhkhVh+xIBdgkTYcX9lkzNlWrIpYE+2HHFCMf9Rrx44Z4U6 N/ititatNApVAQg4HhmOJgSDVxZXsfI76A5yO2gBB3Y+sMWN6lX0RGPL7qfQrzgZ9NmR gG7H/0k9zqN9zQ0km2MBnum1CgvrmBr1rFmug= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=T1OafGZIgaODFXyKtEuFmWduW79aO57D1gcGcybcnFVw8QloPQ/Eu2WbMAy9vwdFdP 4mcuq0ctMB7uxfn5UPdqJj+0BNZrPn3bmRYMGte+tYmhMpbjxdztzjS/WLZyDTUnGr8p IKseq9DxQyDs224BFgP1jYn1K80esreDCJVyc= MIME-Version: 1.0 Received: by 10.231.182.142 with SMTP id cc14mr7732824ibb.81.1266316677511; Tue, 16 Feb 2010 02:37:57 -0800 (PST) Date: Tue, 16 Feb 2010 18:37:57 +0800 Message-ID: From: Adrian Chadd To: freebsd-mips@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Subject: RSPro hack for SPI flash + RTC X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Feb 2010 10:37:58 -0000 I've hacked up support to enable the SPI flash and RTC. The flash side works - I'll test the RTC side more thoroughly later. It simply treats the bus has having one CS that's either high or low and cs=0 is CS0=low w/ cs=1 is CS0=high. Anything else on the SPI bus won't work anyway given the CS0 wiring. I don't expect this to be committed; it's just a proof of concept to test being able to test the device. http://people.freebsd.org/~adrian/rspro/head-spirtc-hack-r203909.diff Then uncomment the RTC in AR71XX.hints and set cs=1 instead of cs=0. Adrian