[PATCH 0/3] add ARM MMCI support

Jean-Christophe PLAGNIOL-VILLARD plagnioj at jcrosoft.com
Sat Oct 19 05:32:49 EDT 2013


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 at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox



More information about the barebox mailing list