From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from 19.mo5.mail-out.ovh.net ([46.105.35.78] helo=mo5.mail-out.ovh.net) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1VXSsb-0000xs-5C for barebox@lists.infradead.org; Sat, 19 Oct 2013 09:31:29 +0000 Received: from mail31.ha.ovh.net (b9.ovh.net [213.186.33.59]) by mo5.mail-out.ovh.net (Postfix) with SMTP id 20412FF8C88 for ; Sat, 19 Oct 2013 11:31:23 +0200 (CEST) Date: Sat, 19 Oct 2013 11:32:49 +0200 From: Jean-Christophe PLAGNIOL-VILLARD Message-ID: <20131019093249.GB32444@ns203013.ovh.net> References: <20131019092406.GA32444@ns203013.ovh.net> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20131019092406.GA32444@ns203013.ovh.net> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: Re: [PATCH 0/3] add ARM MMCI support To: barebox@lists.infradead.org On 11:24 Sat 19 Oct , Jean-Christophe PLAGNIOL-VILLARD wrote: > Hi, > > to support the ARM AMBA MMCI support we need update the mci support > to only request data length that the controler can handle > > The following changes since commit 8f23a17f9bac836e4a2f4883ca8f886f535449a8: > > Merge branch 'pu/bootloader-spec' (2013-10-14 15:46:10 +0200) > > are available in the git repository at: > I forget there is a bug on qemu that I send this patch to fix diff --git a/hw/sd/pl181.c b/hw/sd/pl181.c index 03875bf..91adbbd 100644 --- a/hw/sd/pl181.c +++ b/hw/sd/pl181.c @@ -344,7 +344,11 @@ static uint64_t pl181_read(void *opaque, hwaddr offset, data engine. DataCnt is decremented after each byte is transferred between the serial engine and the card. We don't emulate this level of detail, so both can be the same. */ - tmp = (s->datacnt + 3) >> 2; + if (s->datactrl & PL181_DATA_DIRECTION) + tmp = s->fifo_len; + else + tmp = s->datacnt; + tmp = (tmp + 3) >> 2; if (s->linux_hack) { s->linux_hack = 0; pl181_fifo_run(s); with this the mci support work Best Regards, J. > > git://git.jcrosoft.org/barebox.git delivery/vexpress_mmci > > for you to fetch changes up to 5de3f3e9a857c7c06322cac70ab5d452267f74ca: > > vexpress: mmc support (2013-10-16 13:28:45 +0800) > > ---------------------------------------------------------------- > Jean-Christophe PLAGNIOL-VILLARD (3): > mci: add max_req_size support > add: mmci drivers > vexpress: mmc support > > arch/arm/boards/vexpress/init.c | 9 +- > arch/arm/mach-vexpress/devices.c | 12 ++- > arch/arm/mach-vexpress/include/mach/devices.h | 5 + > arch/arm/mach-vexpress/v2m.c | 1 + > drivers/mci/Kconfig | 6 ++ > drivers/mci/Makefile | 1 + > drivers/mci/mci-core.c | 32 ++++-- > drivers/mci/mmci.c | 690 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ > drivers/mci/mmci.h | 167 ++++++++++++++++++++++++++++++ > include/linux/amba/mmci.h | 42 ++++++++ > include/mci.h | 1 + > 11 files changed, 956 insertions(+), 10 deletions(-) > create mode 100644 drivers/mci/mmci.c > create mode 100644 drivers/mci/mmci.h > create mode 100644 include/linux/amba/mmci.h > > Best Regards, > J. > > _______________________________________________ > barebox mailing list > barebox@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/barebox _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox