From owner-freebsd-mips@FreeBSD.ORG Sat Apr 6 23:24:37 2013 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id CAC12EDD; Sat, 6 Apr 2013 23:24:37 +0000 (UTC) (envelope-from ray@freebsd.org) Received: from smtp.dlink.ua (smtp.dlink.ua [193.138.187.146]) by mx1.freebsd.org (Postfix) with ESMTP id 85C3A74A; Sat, 6 Apr 2013 23:24:36 +0000 (UTC) Received: from rnote.ddteam.net (7-127-135-95.pool.ukrtel.net [95.135.127.7]) (Authenticated sender: ray) by smtp.dlink.ua (Postfix) with ESMTPSA id E2B8BC4927; Sun, 7 Apr 2013 02:24:34 +0300 (EEST) Date: Sun, 7 Apr 2013 02:24:28 +0300 From: Aleksandr Rybalko To: Adrian Chadd Subject: Re: [PATCH] MMC/SD SPI-mode driver Message-Id: <20130407022428.86a66c6a.ray@freebsd.org> In-Reply-To: References: <20130407011307.9a9a9d64.ray@freebsd.org> Organization: FreeBSD.ORG X-Mailer: Sylpheed 3.1.2 (GTK+ 2.24.5; amd64-portbld-freebsd9.0) X-Operating-System: FreeBSD Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: Dmytro , freebsd-mips@freebsd.org X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 06 Apr 2013 23:24:37 -0000 On Sat, 6 Apr 2013 15:28:09 -0700 Adrian Chadd wrote: > On 6 April 2013 15:13, Aleksandr Rybalko wrote: > > > > > Yeah, found :) > > here it is http://zrouter.org/hg/FreeBSD/head/rev/a92b653f5b46 > > Yup. We just need a bit more wrapped around this. Ie, bringing it > in/out of the SPI mode. > > The other question is how we implement it. You've implemented a "get > block" device method. That's a very atheros chipset specific hack just > to get accelerated flash IO. Is there perhaps a better way to approach > this? As I see, no way to put data back to flash. > > What about the 8 versus 32 bit shifting that I see in the driver? Are > we able to actually shift 32 bits at a time? Currently we do 1 bit shifting :))) Pure, 1-bit control. Maybe you (as Atheros guy) know how to shift more :))) > > > Adrian -- Aleksandr Rybalko