Skip to content

ARM: shmobile: Lager/Koelsch MMCIF/SDHI LPAE DMA prototype V2

Magnus Damm linux-sh 2 versions – New

Get series with b4
b4 am 20140612094209.4132.78270.sendpatchset@w520

Versions newest first · linked by author and title

  1. v2 Latest7 patches 0 repliesNew
  2. v17 patches 3 repliesSuperseded

Changes in v2 from the cover letter

- Updated patch 02/07 to correctly calculate the transfer length
- Updated patch 07/07 to allow use together with Audio DMAC

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7mmc: sdhi: enable .dma_rx_offset for platform prototypedrivers/mmc/host/sh_mobile_sdhi.c include/linux/mmc/sh_mobile_sdhi.h+2 -00 replies
2/7DMA: shdma: 40-bit address prototypedrivers/dma/sh/shdma.h drivers/dma/sh/shdmac.c include/linux/sh_dma.h+44 -80 replies
3/7ARM: shmobile: Lager SYS-DMAC prototypearch/arm/mach-shmobile/board-lager-reference.c+93 -00 replies
4/7ARM: shmobile: Lager SYS-DMAC and MMCIF prototypearch/arm/mach-shmobile/board-lager-reference.c+25 -10 replies
5/7ARM: shmobile: Lager SYS-DMAC and SDHI prototypearch/arm/mach-shmobile/board-lager-reference.c+36 -00 replies
6/7ARM: shmobile: Koelsch SYS-DMAC prototypearch/arm/mach-shmobile/board-koelsch-reference.c+93 -00 replies
7/7ARM: shmobile: Koelsch SYS-DMAC and SDHI prototypearch/arm/mach-shmobile/board-koelsch-reference.c+60 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 00/07] ARM: shmobile: Lager/Koelsch MMCIF/SDHI LPAE DMA prototype V2

ARM: shmobile: Lager/Koelsch MMCIF/SDHI LPAE DMA prototype V2

[PATCH v2 01/07] mmc: sdhi: enable .dma_rx_offset for platform prototype [PATCH v2 02/07] DMA: shdma: 40-bit address prototype
[PATCH v2 03/07] ARM: shmobile: Lager SYS-DMAC prototype [PATCH v2 04/07] ARM: shmobile: Lager SYS-DMAC and MMCIF prototype [PATCH v2 05/07] ARM: shmobile: Lager SYS-DMAC and SDHI prototype [PATCH v2 06/07] ARM: shmobile: Koelsch SYS-DMAC prototype [PATCH v2 07/07] ARM: shmobile: Koelsch SYS-DMAC and SDHI prototype

These patches add DMAC prototype support for MMCIF and SDHI on Lager and SDHI on Koelsch. 40-bit physical address support in the DMAC has been hacked in as a prototype. DMA support for the SDHI driver has also been modified on a prototype level.

Written to show how to make use of platform devices for DMA support until the DT bindings for the DMA hardware have been stabilized.

Not for upstream merge.

Changes since V1:
- Updated patch 02/07 to correctly calculate the transfer length
- Updated patch 07/07 to allow use together with Audio DMAC

Thanks to Geert for his constructive review and feedback!

Depends on the following public SDHI patches by Morimoto-san:
[PATCH] mmc: block: add block number limitation flag for lultiple block read [PATCH] mmc: sdhi: tidyup mmc_data setting for R-Car SDHI [PATCH] mmc: tmio: care about DMA tx/rx addr offset

---

Written on top of renesas-devel-v3.15-20140611

 arch/arm/mach-shmobile/board-koelsch-reference.c |  154 +++++++++++++++++++++
 arch/arm/mach-shmobile/board-lager-reference.c   |  155 +++++++++++++++++++++-
 drivers/dma/sh/shdma.h                           |    4 
 drivers/dma/sh/shdmac.c                          |   46 +++++-
 drivers/mmc/host/sh_mobile_sdhi.c                |    1 
 include/linux/mmc/sh_mobile_sdhi.h               |    1 
 include/linux/sh_dma.h                           |    2 
 7 files changed, 353 insertions(+), 10 deletions(-)