From mboxrd@z Thu Jan 1 00:00:00 1970 From: Anton Vorontsov Subject: Re: Is anyone working on SD/MMC driver for i.MX35 ? Date: Mon, 5 Apr 2010 22:21:03 +0400 Message-ID: <20100405182103.GB3316@oksana.dev.rtsoft.ru> References: <20100401125739.GE2045@bluebox.local> <20100401132017.GA30804@buzzloop.caiaq.de> <20100401132234.GG2045@bluebox.local> <20100402012932.GE13989@pengutronix.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Return-path: Received: from mail-bw0-f209.google.com ([209.85.218.209]:45045 "EHLO mail-bw0-f209.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751847Ab0DESVI (ORCPT ); Mon, 5 Apr 2010 14:21:08 -0400 Received: by bwz1 with SMTP id 1so2973990bwz.21 for ; Mon, 05 Apr 2010 11:21:06 -0700 (PDT) Content-Disposition: inline In-Reply-To: <20100402012932.GE13989@pengutronix.de> Sender: linux-mmc-owner@vger.kernel.org List-Id: linux-mmc@vger.kernel.org To: Wolfram Sang Cc: "Hans J. Koch" , linux-mmc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Daniel Mack , John Ogness On Fri, Apr 02, 2010 at 03:29:32AM +0200, Wolfram Sang wrote: > On Thu, Apr 01, 2010 at 03:22:35PM +0200, Hans J. Koch wrote: > > On Thu, Apr 01, 2010 at 03:20:17PM +0200, Daniel Mack wrote: > > > On Thu, Apr 01, 2010 at 02:57:40PM +0200, Hans J. Koch wrote: > > > > I need to get the MMC interface of an i.MX35 to work in the near future. > > > > To avoid duplicate work, I'd like to know if anybody already started > > > > work on this. > > > > > > Is the controller very different from the one which is already supported > > > for MX31? > > > > Yep. Completely different beast. Unfortunately. > > (CCing linux-mmc) > > And it is a mess, really :( > > The kernel already has an esdhc-driver (and Anton already worked around a > number of hardware-bugs), but is tied into an of-driver because the core was > also used on PowerPC. There, it utilizes a 32-bit-byte-swaper which is not > needed on ARM. So, one has to rip all that out, generalize the sdhc-platform > support (possibly also abstract the quirk support) and make sure nothing > breaks. FYI, there is sdhci-pltfm driver, + some patches to add quirks support: http://lkml.org/lkml/2010/3/16/337 These patches are already in the -mm tree. Thanks, -- Anton Vorontsov email: cbouatmailru@gmail.com irc://irc.freenode.net/bd2 From mboxrd@z Thu Jan 1 00:00:00 1970 From: cbouatmailru@gmail.com (Anton Vorontsov) Date: Mon, 5 Apr 2010 22:21:03 +0400 Subject: Is anyone working on SD/MMC driver for i.MX35 ? In-Reply-To: <20100402012932.GE13989@pengutronix.de> References: <20100401125739.GE2045@bluebox.local> <20100401132017.GA30804@buzzloop.caiaq.de> <20100401132234.GG2045@bluebox.local> <20100402012932.GE13989@pengutronix.de> Message-ID: <20100405182103.GB3316@oksana.dev.rtsoft.ru> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On Fri, Apr 02, 2010 at 03:29:32AM +0200, Wolfram Sang wrote: > On Thu, Apr 01, 2010 at 03:22:35PM +0200, Hans J. Koch wrote: > > On Thu, Apr 01, 2010 at 03:20:17PM +0200, Daniel Mack wrote: > > > On Thu, Apr 01, 2010 at 02:57:40PM +0200, Hans J. Koch wrote: > > > > I need to get the MMC interface of an i.MX35 to work in the near future. > > > > To avoid duplicate work, I'd like to know if anybody already started > > > > work on this. > > > > > > Is the controller very different from the one which is already supported > > > for MX31? > > > > Yep. Completely different beast. Unfortunately. > > (CCing linux-mmc) > > And it is a mess, really :( > > The kernel already has an esdhc-driver (and Anton already worked around a > number of hardware-bugs), but is tied into an of-driver because the core was > also used on PowerPC. There, it utilizes a 32-bit-byte-swaper which is not > needed on ARM. So, one has to rip all that out, generalize the sdhc-platform > support (possibly also abstract the quirk support) and make sure nothing > breaks. FYI, there is sdhci-pltfm driver, + some patches to add quirks support: http://lkml.org/lkml/2010/3/16/337 These patches are already in the -mm tree. Thanks, -- Anton Vorontsov email: cbouatmailru at gmail.com irc://irc.freenode.net/bd2